diff options
author | Davide Pesavento <pesa@gentoo.org> | 2013-11-14 01:02:29 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2013-11-14 01:02:29 +0000 |
commit | 0c66a31566a26e4052ce6182c4740a890477ac5d (patch) | |
tree | aa594f37a4217f9bf7bf8bdf39b5e4f2698e751e /dev-python/pyside-tools | |
parent | Version bump by hendrik, drop old. (diff) | |
download | gentoo-2-0c66a31566a26e4052ce6182c4740a890477ac5d.tar.gz gentoo-2-0c66a31566a26e4052ce6182c4740a890477ac5d.tar.bz2 gentoo-2-0c66a31566a26e4052ce6182c4740a890477ac5d.zip |
Version bump.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)
Diffstat (limited to 'dev-python/pyside-tools')
-rw-r--r-- | dev-python/pyside-tools/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pyside-tools/pyside-tools-0.2.15.ebuild | 98 |
2 files changed, 104 insertions, 1 deletions
diff --git a/dev-python/pyside-tools/ChangeLog b/dev-python/pyside-tools/ChangeLog index caca947b82cd..043819176b23 100644 --- a/dev-python/pyside-tools/ChangeLog +++ b/dev-python/pyside-tools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/pyside-tools # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside-tools/ChangeLog,v 1.27 2013/03/02 20:11:33 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside-tools/ChangeLog,v 1.28 2013/11/14 01:02:29 pesa Exp $ + +*pyside-tools-0.2.15 (14 Nov 2013) + + 14 Nov 2013; Davide Pesavento <pesa@gentoo.org> +pyside-tools-0.2.15.ebuild: + Version bump. 02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> pyside-tools-0.2.14.ebuild: Move Qt dependencies to the new category diff --git a/dev-python/pyside-tools/pyside-tools-0.2.15.ebuild b/dev-python/pyside-tools/pyside-tools-0.2.15.ebuild new file mode 100644 index 000000000000..705abbf43bfe --- /dev/null +++ b/dev-python/pyside-tools/pyside-tools-0.2.15.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside-tools/pyside-tools-0.2.15.ebuild,v 1.1 2013/11/14 01:02:29 pesa Exp $ + +EAPI=4 + +CMAKE_IN_SOURCE_BUILD="1" + +PYTHON_DEPEND="2:2.6 3:3.2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 2.5 3.1 3.3 *-jython 2.7-pypy-*" +PYTHON_TESTS_RESTRICTED_ABIS="3.*" + +VIRTUALX_COMMAND="cmake-utils_src_test" + +inherit eutils cmake-utils python vcs-snapshot virtualx + +DESCRIPTION="PySide development tools (lupdate, rcc, uic)" +HOMEPAGE="http://qt-project.org/wiki/PySide" +SRC_URI="https://github.com/PySide/Tools/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/pyside-1.2.0[X] + >=dev-python/shiboken-1.2.0 + >=dev-qt/qtcore-4.7.0:4 + >=dev-qt/qtgui-4.7.0:4 +" +DEPEND="${RDEPEND} + test? ( virtual/pkgconfig ) +" + +src_prepare() { + epatch "${FILESDIR}"/0.2.13-fix-pysideuic-test-and-install.patch + + python_copy_sources + + preparation() { + if [[ $(python_get_version -l --major) == 3 ]]; then + rm -fr pysideuic/port_v2 + else + rm -fr pysideuic/port_v3 + fi + + sed -i -e "/pkg-config/ s:shiboken:&-python${PYTHON_ABI}:" \ + tests/rcc/run_test.sh || die + } + python_execute_function -s preparation +} + +src_configure() { + configuration() { + local mycmakeargs=( + -DPYTHON_BASENAME="-python${PYTHON_ABI}" + -DPYTHON_SUFFIX="-python${PYTHON_ABI}" + -DSITE_PACKAGE="$(python_get_sitedir)" + $(cmake-utils_use_build test TESTS) + ) + CMAKE_USE_DIR="${BUILDDIR}" cmake-utils_src_configure + } + python_execute_function -s configuration +} + +src_compile() { + compilation() { + CMAKE_USE_DIR="${BUILDDIR}" cmake-utils_src_make + } + python_execute_function -s compilation +} + +src_test() { + testing() { + CMAKE_USE_DIR="${BUILDDIR}" virtualmake + } + python_execute_function -s testing +} + +src_install() { + installation() { + CMAKE_USE_DIR="${BUILDDIR}" cmake-utils_src_install DESTDIR="${T}/images/${PYTHON_ABI}" + } + python_execute_function -s installation + python_merge_intermediate_installation_images "${T}/images" + + dodoc AUTHORS ChangeLog +} + +pkg_postinst() { + python_mod_optimize pysideuic +} + +pkg_postrm() { + python_mod_cleanup pysideuic +} |