diff options
author | Davide Pesavento <pesa@gentoo.org> | 2015-02-18 18:20:10 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2015-02-18 18:20:10 +0000 |
commit | 67646a8b7bcd7a16bdd3ab126648e1d4abe19e3e (patch) | |
tree | e787a4a15732a3c696ee567c1fd928dc86c99f8c /dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild | |
parent | version bump (diff) | |
download | historical-67646a8b7bcd7a16bdd3ab126648e1d4abe19e3e.tar.gz historical-67646a8b7bcd7a16bdd3ab126648e1d4abe19e3e.tar.bz2 historical-67646a8b7bcd7a16bdd3ab126648e1d4abe19e3e.zip |
Simplify pkg_setup().
Package-Manager: portage-2.2.17/cvs/Linux x86_64
Manifest-Sign-Key: 0xDADED6B2671CB57D!
Diffstat (limited to 'dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild')
-rw-r--r-- | dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild index 8bba5d0bdbaa..2fc9b008badd 100644 --- a/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild +++ b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild,v 1.2 2015/02/11 03:41:40 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20130904-r2.ebuild,v 1.3 2015/02/18 18:20:09 pesa Exp $ EAPI=5 @@ -39,13 +39,7 @@ RDEPEND="${DEPEND}" S=${WORKDIR}/${MY_P}/${PN} pkg_setup() { - MULTIBUILD_VARIANTS=() - if use qt4 ; then - MULTIBUILD_VARIANTS+=( qt4 ) - fi - if use qt5 ; then - MULTIBUILD_VARIANTS+=( qt5 ) - fi + MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) ) } src_prepare() { @@ -66,10 +60,10 @@ src_prepare() { src_configure() { myconfigure() { - if [[ ${MULTIBUILD_VARIANT} = qt4 ]] ; then + if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then eqmake4 fi - if [[ ${MULTIBUILD_VARIANT} = qt5 ]] ; then + if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then eqmake5 fi } @@ -86,22 +80,22 @@ src_install() { use doc && dodoc -r doc/html myinstall() { - if [[ ${MULTIBUILD_VARIANT} = qt4 ]] ; then - insinto /usr/include/qt4/QtSolutions/ + if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then + insinto /usr/include/qt4/QtSolutions doins src/qtsinglecoreapplication.h use X && doins src/{QtSingleApplication,${PN}.h} - insinto /usr/share/qt4/mkspecs/features/ + insinto /usr/share/qt4/mkspecs/features doins "${FILESDIR}"/${PN}.prf dosym ${PN}.prf /usr/share/qt4/mkspecs/features/qtsinglecoreapplication.prf fi - if [[ ${MULTIBUILD_VARIANT} = qt5 ]] ; then - insinto /usr/include/qt5/QtSolutions/ + if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then + insinto /usr/include/qt5/QtSolutions doins src/qtsinglecoreapplication.h use X && doins src/{QtSingleApplication,${PN}.h} - insinto /usr/$(get_libdir)/qt5/mkspecs/features/ + insinto /usr/$(get_libdir)/qt5/mkspecs/features newins "${FILESDIR}"/${PN}5.prf ${PN}.prf dosym ${PN}.prf /usr/$(get_libdir)/qt5/mkspecs/features/qtsinglecoreapplication.prf fi |