From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ECA06138010 for ; Sat, 8 Sep 2012 20:54:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F1F2E030B; Sat, 8 Sep 2012 20:52:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EC803E0138 for ; Sat, 8 Sep 2012 20:52:49 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BF8433D508 for ; Sat, 8 Sep 2012 20:52:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F0ADAE543D for ; Sat, 8 Sep 2012 20:52:47 +0000 (UTC) From: "Davide Pesavento" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" Message-ID: <1347137555.9d081a65b68641e6a333e31d3f189600c6289d5c.pesa@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: dev-python/shiboken/ X-VCS-Repository: proj/qt X-VCS-Files: dev-python/shiboken/Manifest dev-python/shiboken/shiboken-1.1.2.ebuild X-VCS-Directories: dev-python/shiboken/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: 9d081a65b68641e6a333e31d3f189600c6289d5c X-VCS-Branch: master Date: Sat, 8 Sep 2012 20:52:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eac24bbd-6e4f-4dfd-a71e-eac3790188e4 X-Archives-Hash: ffe9def92408e439c1f22ed4e5476f96 commit: 9d081a65b68641e6a333e31d3f189600c6289d5c Author: Davide Pesavento gmail com> AuthorDate: Sat Sep 8 20:52:35 2012 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Sat Sep 8 20:52:35 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=9d081a65 [dev-python/shiboken] Version bump. (Portage version: 2.2.0_alpha124/git/Linux x86_64, unsigned Manifest commit) --- dev-python/shiboken/Manifest | 1 + dev-python/shiboken/shiboken-1.1.2.ebuild | 93 +++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 0 deletions(-) diff --git a/dev-python/shiboken/Manifest b/dev-python/shiboken/Manifest new file mode 100644 index 0000000..05238dd --- /dev/null +++ b/dev-python/shiboken/Manifest @@ -0,0 +1 @@ +DIST shiboken-1.1.2.tar.bz2 1067457 SHA256 8f9e8fbe7b3667aafdf6bc88663d28f43999d7ccbfdc3e63aa791db1a554a9dd SHA512 520818743497d82ca2e111a617176068d9daf47b96e8a545949ca644f000d2281dac4d0bd1c12af7822a4895b4019a6e1a76eca47121e792669be0f5ba6f6bd6 WHIRLPOOL b85747663a969c8bac711d55ca4b20de03715777289ef453d6c88354e1ede39f1a3f9c1286ddbcb130570cd49bbfd4f299b46aca822b6f6edcf23e039db9c126 diff --git a/dev-python/shiboken/shiboken-1.1.2.ebuild b/dev-python/shiboken/shiboken-1.1.2.ebuild new file mode 100644 index 0000000..a38f20a --- /dev/null +++ b/dev-python/shiboken/shiboken-1.1.2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/shiboken/shiboken-1.1.1.ebuild,v 1.6 2012/07/27 21:31:46 steev Exp $ + +EAPI=4 + +PYTHON_DEPEND="2:2.6 3:3.2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 2.5 3.1 *-jython 2.7-pypy-*" + +inherit multilib cmake-utils python + +DESCRIPTION="A tool for creating Python bindings for C++ libraries" +HOMEPAGE="http://www.pyside.org/" +SRC_URI="http://www.pyside.org/files/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND=" + >=dev-libs/libxml2-2.6.32 + >=dev-libs/libxslt-1.1.19 + >=x11-libs/qt-core-4.7.0:4 + >=x11-libs/qt-xmlpatterns-4.7.0:4 + !dev-python/apiextractor + !dev-python/generatorrunner +" +DEPEND="${RDEPEND} + test? ( + >=x11-libs/qt-gui-4.7.0:4 + >=x11-libs/qt-test-4.7.0:4 + )" + +DOCS=( AUTHORS ChangeLog ) + +src_prepare() { + # Fix inconsistent naming of libshiboken.so and ShibokenConfig.cmake, + # caused by the usage of a different version suffix with python >= 3.2 + sed -i -e "/get_config_var('SOABI')/d" \ + cmake/Modules/FindPython3InterpWithDebug.cmake || die + + if use prefix; then + cp "${FILESDIR}"/rpath.cmake . + sed \ + -i '1iinclude(rpath.cmake)' \ + CMakeLists.txt || die + fi +} + +src_configure() { + configuration() { + local mycmakeargs=( + -DPYTHON_EXECUTABLE="$(PYTHON -a)" + -DPYTHON_SUFFIX="-python${PYTHON_ABI}" + $(cmake-utils_use_build test TESTS) + ) + + if [[ $(python_get_version -l --major) == 3 ]]; then + mycmakeargs+=( + -DUSE_PYTHON3=ON + -DPYTHON3_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON3_LIBRARY="$(python_get_library)" + ) + fi + + CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_configure + } + python_execute_function configuration +} + +src_compile() { + compilation() { + CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_make + } + python_execute_function compilation +} + +src_test() { + testing() { + CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_test + } + python_execute_function testing +} + +src_install() { + installation() { + CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_install + mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-python${PYTHON_ABI}}.pc || die + } + python_execute_function installation +}