diff options
author | Davide Pesavento <pesa@gentoo.org> | 2013-08-15 10:19:36 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2013-08-15 10:19:36 +0000 |
commit | 91520221a88317cf9b63a5eb6ddef1431ce0e0f1 (patch) | |
tree | bac616613b0e975dd2cf29faad156add86c2fd97 /dev-python/pyside | |
parent | Slot dev-java/bcmail to resolve blockers. (diff) | |
download | gentoo-2-91520221a88317cf9b63a5eb6ddef1431ce0e0f1.tar.gz gentoo-2-91520221a88317cf9b63a5eb6ddef1431ce0e0f1.tar.bz2 gentoo-2-91520221a88317cf9b63a5eb6ddef1431ce0e0f1.zip |
Version bump (bug 477844); add designer USE flag.
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)
Diffstat (limited to 'dev-python/pyside')
-rw-r--r-- | dev-python/pyside/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/pyside/metadata.xml | 3 | ||||
-rw-r--r-- | dev-python/pyside/pyside-1.2.0.ebuild | 131 |
3 files changed, 140 insertions, 2 deletions
diff --git a/dev-python/pyside/ChangeLog b/dev-python/pyside/ChangeLog index fc5f4624d6ec..d9af47525ddd 100644 --- a/dev-python/pyside/ChangeLog +++ b/dev-python/pyside/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pyside # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside/ChangeLog,v 1.53 2013/03/08 08:35:15 pesa Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside/ChangeLog,v 1.54 2013/08/15 10:19:36 pesa Exp $ + +*pyside-1.2.0 (15 Aug 2013) + + 15 Aug 2013; Davide Pesavento <pesa@gentoo.org> +pyside-1.2.0.ebuild, + metadata.xml: + Version bump (bug 477844); add designer USE flag. 08 Mar 2013; Davide Pesavento <pesa@gentoo.org> -pyside-1.1.2.ebuild: old diff --git a/dev-python/pyside/metadata.xml b/dev-python/pyside/metadata.xml index 81eaac922968..41f4775f04a5 100644 --- a/dev-python/pyside/metadata.xml +++ b/dev-python/pyside/metadata.xml @@ -3,8 +3,9 @@ <pkgmetadata> <herd>qt</herd> <use> - <flag name="X">Build QtGui, QtDesigner, QtTest and QtUiTools modules</flag> + <flag name="X">Build QtGui and QtTest modules</flag> <flag name="declarative">Build QtDeclarative module</flag> + <flag name="designer">Build QtDesigner and QtUiTools modules</flag> <flag name="help">Build QtHelp module</flag> <flag name="kde">Select <pkg>media-libs/phonon</pkg> as Phonon variant (needed for KDE)</flag> <flag name="multimedia">Build QtMultimedia module</flag> diff --git a/dev-python/pyside/pyside-1.2.0.ebuild b/dev-python/pyside/pyside-1.2.0.ebuild new file mode 100644 index 000000000000..b2aa042706e2 --- /dev/null +++ b/dev-python/pyside/pyside-1.2.0.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside/pyside-1.2.0.ebuild,v 1.1 2013/08/15 10:19:36 pesa Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2} ) + +inherit multilib cmake-utils python-r1 virtualx + +MY_P="${PN}-qt4.8+${PV}" + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="http://qt-project.org/wiki/PySide" +SRC_URI="http://download.qt-project.org/official_releases/${PN}/${MY_P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="X declarative designer help kde multimedia opengl phonon script scripttools sql svg test webkit xmlpatterns" + +REQUIRED_USE=" + declarative? ( X ) + designer? ( X ) + help? ( X ) + multimedia? ( X ) + opengl? ( X ) + phonon? ( X ) + scripttools? ( X script ) + sql? ( X ) + svg? ( X ) + test? ( X ) + webkit? ( X ) +" + +# Minimal supported version of Qt. +QT_PV="4.7.0:4" + +RDEPEND=" + >=dev-python/shiboken-${PV}[${PYTHON_USEDEP}] + >=dev-qt/qtcore-${QT_PV} + X? ( + >=dev-qt/qtgui-${QT_PV}[accessibility] + >=dev-qt/qttest-${QT_PV} + ) + declarative? ( >=dev-qt/qtdeclarative-${QT_PV} ) + designer? ( || ( dev-qt/designer:4 <dev-qt/qtgui-4.8.5:4 ) ) + help? ( >=dev-qt/qthelp-${QT_PV} ) + multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) + opengl? ( >=dev-qt/qtopengl-${QT_PV} ) + phonon? ( + kde? ( media-libs/phonon ) + !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} media-libs/phonon ) ) + ) + script? ( >=dev-qt/qtscript-${QT_PV} ) + sql? ( >=dev-qt/qtsql-${QT_PV} ) + svg? ( >=dev-qt/qtsvg-${QT_PV}[accessibility] ) + webkit? ( >=dev-qt/qtwebkit-${QT_PV} ) + xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) +" +DEPEND="${RDEPEND} + >=dev-qt/qtgui-${QT_PV} +" + +S=${WORKDIR}/${MY_P} + +DOCS=( ChangeLog ) + +src_prepare() { + # Fix generated pkgconfig file to require the shiboken + # library suffixed with the correct python version. + sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \ + libpyside/pyside.pc.in || die + + if use prefix; then + cp "${FILESDIR}"/rpath.cmake . + sed \ + -i '1iinclude(rpath.cmake)' \ + CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_build test TESTS) + $(cmake-utils_use_disable X QtGui) + $(cmake-utils_use_disable X QtTest) + $(cmake-utils_use_disable declarative QtDeclarative) + $(cmake-utils_use_disable designer QtDesigner) + $(cmake-utils_use_disable designer QtUiTools) + $(cmake-utils_use_disable help QtHelp) + $(cmake-utils_use_disable multimedia QtMultimedia) + $(cmake-utils_use_disable opengl QtOpenGL) + $(cmake-utils_use_disable phonon) + $(cmake-utils_use_disable script QtScript) + $(cmake-utils_use_disable scripttools QtScriptTools) + $(cmake-utils_use_disable sql QtSql) + $(cmake-utils_use_disable svg QtSvg) + $(cmake-utils_use_disable webkit QtWebKit) + $(cmake-utils_use_disable xmlpatterns QtXmlPatterns) + ) + + configuration() { + local mycmakeargs=( + -DPYTHON_SUFFIX="-${EPYTHON}" + "${mycmakeargs[@]}" + ) + cmake-utils_src_configure + } + python_foreach_impl configuration +} + +src_compile() { + python_foreach_impl cmake-utils_src_make +} + +src_test() { + local PYTHONDONTWRITEBYTECODE + export PYTHONDONTWRITEBYTECODE + + local VIRTUALX_COMMAND="cmake-utils_src_test" + python_foreach_impl virtualmake +} + +src_install() { + installation() { + cmake-utils_src_install + mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl installation +} |