diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-27 15:46:36 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-27 15:46:36 +0000 |
commit | c33525784842a76512d361c05e65bfcc0152945d (patch) | |
tree | ab67e1f2fb84e61023ca5c1e5651eb78c3365a04 /dev-libs | |
parent | Stable on alpha, bug #359627 (diff) | |
download | gentoo-2-c33525784842a76512d361c05e65bfcc0152945d.tar.gz gentoo-2-c33525784842a76512d361c05e65bfcc0152945d.tar.bz2 gentoo-2-c33525784842a76512d361c05e65bfcc0152945d.zip |
Set SUPPORT_PYTHON_ABIS, call python_mod_optimize() and python_mod_cleanup() (bug #312201).
(Portage version: 2.2.0_alpha28_p36/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/redland-bindings/ChangeLog | 9 | ||||
-rw-r--r-- | dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild | 66 |
2 files changed, 68 insertions, 7 deletions
diff --git a/dev-libs/redland-bindings/ChangeLog b/dev-libs/redland-bindings/ChangeLog index 5b62c0357a42..5c2c63a07142 100644 --- a/dev-libs/redland-bindings/ChangeLog +++ b/dev-libs/redland-bindings/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/redland-bindings -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/ChangeLog,v 1.21 2010/07/09 18:57:55 mabi Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/ChangeLog,v 1.22 2011/03/27 15:46:36 arfrever Exp $ + + 27 Mar 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + redland-bindings-1.0.10.1-r1.ebuild: + Set SUPPORT_PYTHON_ABIS, call python_mod_optimize() and python_mod_cleanup() + (bug #312201). 09 Jul 2010; Matti Bickel <mabi@gentoo.org> redland-bindings-1.0.10.1-r1.ebuild: diff --git a/dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild b/dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild index f018149aac7b..5103b957c0ab 100644 --- a/dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild +++ b/dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild @@ -1,9 +1,13 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild,v 1.3 2010/07/09 18:57:55 mabi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/redland-bindings-1.0.10.1-r1.ebuild,v 1.4 2011/03/27 15:46:36 arfrever Exp $ -EAPI=2 -inherit multilib +EAPI=3 +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" + +inherit multilib python DESCRIPTION="Language bindings for Redland" HOMEPAGE="http://librdf.org/bindings/" @@ -16,7 +20,6 @@ IUSE="perl python php ruby" RDEPEND=">=dev-libs/redland-1.0.10-r1 perl? ( dev-lang/perl ) - python? ( dev-lang/python ) php? ( dev-lang/php ) ruby? ( dev-lang/ruby dev-ruby/log4r )" DEPEND="${RDEPEND} @@ -24,6 +27,10 @@ DEPEND="${RDEPEND} sys-apps/sed perl? ( sys-apps/findutils )" +pkg_setup() { + use python && python_pkg_setup +} + src_prepare() { sed -i \ -e "s:lib/python:$(get_libdir)/python:" \ @@ -41,6 +48,37 @@ src_configure() { $(use_with php) \ $(use_with ruby) \ --with-redland=system + + # Python bindings are built/tested/installed manually. + sed -e "/^SUBDIRS =/s/ python//" -i Makefile +} + +src_compile() { + default + + if use python; then + python_copy_sources python + + building() { + emake \ + PYTHON_INCLUDES="-I$(python_get_includedir)" \ + pythondir="$(python_get_sitedir)" + } + python_execute_function -s --source-dir python building + fi +} + +src_test() { + default + + if use python; then + testing() { + emake \ + PYTHON="$(PYTHON)" \ + check + } + python_execute_function -s --source-dir python testing + fi } src_install() { @@ -51,6 +89,24 @@ src_install() { find "${D}" -depth -mindepth 1 -type d -empty -delete fi + if use python; then + installation() { + emake \ + DESTDIR="${D}" \ + pythondir="$(python_get_sitedir)" \ + install + } + python_execute_function -s --source-dir python installation + fi + dodoc AUTHORS ChangeLog NEWS README TODO dohtml {NEWS,README,RELEASE,TODO}.html } + +pkg_postinst() { + use python && python_mod_optimize RDF.py +} + +pkg_postrm() { + use python && python_mod_cleanup RDF.py +} |