diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2010-04-21 23:26:36 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2010-04-21 23:26:36 +0000 |
commit | 0fde0c234677bda2f997407ebc88ea9e537ca1d1 (patch) | |
tree | 77739ec401480af6fe884491fc9eb90417c1d092 /media-libs/libiptcdata | |
parent | cleanup (diff) | |
download | gentoo-2-0fde0c234677bda2f997407ebc88ea9e537ca1d1.tar.gz gentoo-2-0fde0c234677bda2f997407ebc88ea9e537ca1d1.tar.bz2 gentoo-2-0fde0c234677bda2f997407ebc88ea9e537ca1d1.zip |
Add support for multiple python ABI, bug #313531.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libiptcdata')
-rw-r--r-- | media-libs/libiptcdata/ChangeLog | 6 | ||||
-rw-r--r-- | media-libs/libiptcdata/libiptcdata-1.0.4.ebuild | 54 |
2 files changed, 53 insertions, 7 deletions
diff --git a/media-libs/libiptcdata/ChangeLog b/media-libs/libiptcdata/ChangeLog index 0fab1cd90e2a..7dd3ae3f3f56 100644 --- a/media-libs/libiptcdata/ChangeLog +++ b/media-libs/libiptcdata/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/libiptcdata # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/ChangeLog,v 1.15 2010/01/01 12:53:08 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/ChangeLog,v 1.16 2010/04/21 23:26:36 eva Exp $ + + 21 Apr 2010; Gilles Dartiguelongue <eva@gentoo.org> + libiptcdata-1.0.4.ebuild: + Add support for multiple python ABI, bug #313531. 01 Jan 2010; Raúl Porcel <armin76@gentoo.org> libiptcdata-1.0.2.ebuild, libiptcdata-1.0.3.ebuild, libiptcdata-1.0.4.ebuild: diff --git a/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild b/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild index 617e77561ac4..092ebb60c992 100644 --- a/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild +++ b/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild @@ -1,8 +1,12 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild,v 1.2 2010/01/01 12:53:08 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild,v 1.3 2010/04/21 23:26:36 eva Exp $ -inherit eutils +EAPI="3" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit eutils python DESCRIPTION="library for manipulating the International Press Telecommunications Council (IPTC) metadata" @@ -20,15 +24,53 @@ DEPEND="${RDEPEND} nls? ( >=sys-devel/gettext-0.13.1 ) doc? ( >=dev-util/gtk-doc-1 )" -src_compile () { - econf $(use_enable nls) \ +src_prepare() { + # Python bindings are built/tested/installed manually. + sed -e '/SUBDIRS =/s/$(MAYBE_PYTHONLIB)//' -i Makefile.in || die "sed failed" +} + +src_configure () { + python_execute_function -f -q econf \ + $(use_enable nls) \ $(use_enable python) \ $(use_enable doc gtk-doc) - emake || die "emake failed." +} + +src_compile() { + default + + if use python; then + python_copy_sources python + building() { + emake PYTHON_CPPFLAGS=-I$(python_get_includedir) \ + pyexecdir=$(python_get_sitedir) + } + python_execute_function -s --source-dir python building + fi +} + +src_test() { + default + + if use python; then + testing() { + emake test + } + python_execute_function -s --source-dir python testing + fi } src_install () { emake DESTDIR="${D}" install || die "emake install failed." + + if use python; then + installation() { + emake DESTDIR="${D}" pyexecdir=$(python_get_sitedir) install + } + python_execute_function -s --source-dir python installation + python_clean_sitedirs + fi + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed." if use examples; then @@ -37,7 +79,7 @@ src_install () { doins -r python/examples || die "doins 2 failed" fi - find "${D}" -name '*.la' -delete + find "${D}" -name '*.la' -delete || die "failed to remove *.la files" } pkg_postinst() { |