diff options
author | Davide Pesavento <pesa@gentoo.org> | 2013-12-29 19:49:57 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2013-12-29 19:49:57 +0000 |
commit | 651b98ae6662a0d8a5a484062bbe734cbad40638 (patch) | |
tree | 2e209043c86947b32cf69ec6eabef82b1d6b2237 | |
parent | Stable for amd64, wrt bug #491138 (diff) | |
download | historical-651b98ae6662a0d8a5a484062bbe734cbad40638.tar.gz historical-651b98ae6662a0d8a5a484062bbe734cbad40638.tar.bz2 historical-651b98ae6662a0d8a5a484062bbe734cbad40638.zip |
Initial commit of the Qt Build Suite. Ebuild by me.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x17A85C72
-rw-r--r-- | dev-util/qbs/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/qbs/Manifest | 24 | ||||
-rw-r--r-- | dev-util/qbs/metadata.xml | 8 | ||||
-rw-r--r-- | dev-util/qbs/qbs-1.1.1.ebuild | 100 |
4 files changed, 141 insertions, 0 deletions
diff --git a/dev-util/qbs/ChangeLog b/dev-util/qbs/ChangeLog new file mode 100644 index 000000000000..11a5c2259fc6 --- /dev/null +++ b/dev-util/qbs/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-util/qbs +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/qbs/ChangeLog,v 1.1 2013/12/29 19:49:45 pesa Exp $ + +*qbs-1.1.1 (29 Dec 2013) + + 29 Dec 2013; Davide Pesavento <pesa@gentoo.org> +metadata.xml, + +qbs-1.1.1.ebuild: + Initial commit of the Qt Build Suite. Ebuild by me. diff --git a/dev-util/qbs/Manifest b/dev-util/qbs/Manifest new file mode 100644 index 000000000000..e0e57beea1af --- /dev/null +++ b/dev-util/qbs/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST qbs-1.1.1.src.tar.gz 583367 SHA256 469e6c9c9fbe6475dd7f26c43e24fe08ce6715effa69680cbc2c7c06c2e1fe4e SHA512 4837d9344d37e87421d0664297f6816365fb61487f55b1fbf0bbb88a6e4248049ccc48c21563f23970c2a70da1a7038cdbb91b3a92550e5ee23c09af8a36ccb0 WHIRLPOOL 2e813b3ce77b2cb2b312cef53d733cba050276c959f2eeab5478d7ea1902659519078c0a36d0eac46236afc7dea81429ca0cfd995fffaa384aa724cafb6fd1f7 +EBUILD qbs-1.1.1.ebuild 2011 SHA256 50e587d72a763156030602b8f1c6b85cae4b4c30586db52860584071e3007638 SHA512 25cb2ba72177b4ccee0f935f5c69a95501f8d8fc2ca90aab0b0f4a3fdbeb91fda7e5b1429ad974420b36bf0646bca85a3db10e1c01e133d7cb41137afdcbdf84 WHIRLPOOL 523d8a4009d378b7b91f3d914942b827be6002e0e19796cb14487f10a1214e7e3e140a6a995e2674c0580321aa7efab22c83028e963a884637f49bcd0addd793 +MISC ChangeLog 361 SHA256 88595d2f2ca2f894f71c2485f2a6b0cd5ab575e5c92f74eb856cb2e32160f944 SHA512 f8519f23feebce13cb943ddbdcc2054a9eb617dc918e2b25ad04c9d55e5bbbc9c51c36ac58274e8cf49b601f3bb13c0fe2e00fb41e0454e61d1cd522bb6a4e5e WHIRLPOOL 596e457b5a6d28aac6e20c5b4360a4d97249f3cac36846aad9619b2f7dd83c5d85f8462975ff0534b0f2dcfd1fba649b378d7c0dbde5578e26f2b080901027f0 +MISC metadata.xml 232 SHA256 c04b80148079991f251c443c4df8614eca28da6517707c411d01caec9a997480 SHA512 855d6c235609952ec1bf003de70e6fea7becc0a840286448a4aab9a638727a52b57063d005754aa2f90000ff499a609a74a80c703f2773982c30c1f4cacd97cb WHIRLPOOL 4a7dbc30e5dde6e4fc691c4d0298796c18fe3b93e13dacf9f85447b43af3eb733df6f414c1ce8af90eb51f7fb425afe80a7d92b728dc93ad25a79b66efd37695 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQIcBAEBCAAGBQJSwHzlAAoJENXLsxwXqFxyQBQP/j4RwPtvUZYAmLe66iNjIF1L +15tKvcmSNjNKt+7Lrrjc3z35HwsR82O8W4OPuok/o/2LGzkiYz86jpvbTVxMCk26 +DGjU+vfpnQtAUMELACbG+Oawmwfo1jgBZ96m3ujbJcTOGQyivej0iZ88LHKnWQfG +3ogrAgFWXUqGKF+uvduh65EHc571VGrP6L9N21zSWflPsBtytuRnG2H5ZGz5dZhp +ofWBZOK/G4LIrbF9qUdnm6dXlW9fT0PkcyiqkrZtQH67ij+NMHC27XOT1ACM8h/O +NFew7iv+XxHH2J9a7BArrYNQkxC+E/hw169QEv+J+2nLVtFHfoVzIwlZOwU/bDF2 +gMNGpEqNA+c0SPa0IX0mh579+Q8IPtTS/r1OQ9+CFkTZAwr1lKYBmPn7WJGHA8kC +GJRQCc9HHJ9ulFiG4CnUiRdW5clGDc7OJ3DvoCaJR2TnXBgNkuSxvOV6prc/zZAO +KauhmqkA9liqUwHJ6RFkDfWqcDpnJ32qR0lJ2CBXBTKlGOmr32Xcl8EuF0sztc5D +3Kc8eD9VzAuUnccFuWY0mwXr/43ly3u7wOge50V0uMYnkCDT0EP7O69uyyPaMYCQ +8g4J03uJKBfdNAL1M4IQ6tzsAITpRmL5zQLAojxYBZVxeUV9+mAuojGG7qBGjjVg +f3XRuQf5YHBG0nQFjcGJ +=B/Ui +-----END PGP SIGNATURE----- diff --git a/dev-util/qbs/metadata.xml b/dev-util/qbs/metadata.xml new file mode 100644 index 000000000000..9efe89cedbc6 --- /dev/null +++ b/dev-util/qbs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>qt</herd> +<use> + <flag name="gui">Build QBS graphical configuration tool</flag> +</use> +</pkgmetadata> diff --git a/dev-util/qbs/qbs-1.1.1.ebuild b/dev-util/qbs/qbs-1.1.1.ebuild new file mode 100644 index 000000000000..21316740091d --- /dev/null +++ b/dev-util/qbs/qbs-1.1.1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/qbs/qbs-1.1.1.ebuild,v 1.1 2013/12/29 19:49:45 pesa Exp $ + +EAPI=5 + +inherit multilib qmake-utils + +DESCRIPTION="Qt Build Suite" +HOMEPAGE="http://qt-project.org/wiki/qbs" +SRC_URI="http://download.qt-project.org/official_releases/${PN}/${PV}/${P}.src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc gui +qt4 qt5 test" + +RDEPEND=" + qt4? ( + >=dev-qt/qtcore-4.8:4 + >=dev-qt/qtscript-4.8:4 + gui? ( >=dev-qt/qtgui-4.8:4 ) + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtscript:5 + dev-qt/qtxml:5 + gui? ( dev-qt/qtwidgets:5 ) + ) +" +DEPEND="${RDEPEND} + doc? ( + qt4? ( >=dev-qt/qthelp-4.8:4 ) + qt5? ( dev-qt/qthelp:5 ) + ) + test? ( + qt4? ( >=dev-qt/qttest-4.8:4 ) + qt5? ( dev-qt/qttest:5 ) + ) +" + +REQUIRED_USE="^^ ( qt4 qt5 )" + +S=${WORKDIR}/${P}.src + +src_prepare() { + # fix hardcoded libdir + sed -i -e "s:/lib/qbs:/$(get_libdir)/qbs:" \ + src/lib/tools/preferences.cpp || die + sed -i -e "/target\.path/ s:lib/:$(get_libdir)/:" \ + src/plugins/plugins.pri || die + + if ! use gui; then + sed -i -e '/SUBDIRS += config-ui/d' \ + src/app/app.pro || die + fi + + if ! use test; then + sed -i -e '/SUBDIRS = auto/d' \ + tests/tests.pro || die + fi +} + +src_configure() { + local myqmakeargs=( + -recursive + CONFIG+=disable_rpath + QBS_INSTALL_PREFIX="${EPREFIX}/usr" + QBS_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" + ) + + if use qt4; then + eqmake4 "${myqmakeargs[@]}" + elif use qt5; then + eqmake5 "${myqmakeargs[@]}" + fi +} + +src_test() { + export HOME=${T} + export LD_LIBRARY_PATH=${S}/lib + + einfo "Setting up test environment in ${T}" + "${S}"/bin/qbs detect-toolchains || die + "${S}"/bin/qbs setup-qt "${EROOT}"usr/bin/qmake qbs_autotests || die + + default +} + +src_install() { + emake INSTALL_ROOT="${D}" install + + # install documentation + if use doc; then + emake docs + dodoc doc/qbs.qch + docompress -x /usr/share/doc/${PF}/qbs.qch + dohtml -r doc/html/* + fi +} |