Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libiptcdata: ChangeLog libiptcdata-1.0.4.ebuild
Date: Wed, 21 Apr 2010 23:26:45
Message-Id: 20100421232637.3D88F2C04B@corvid.gentoo.org
1 eva 10/04/21 23:26:37
2
3 Modified: ChangeLog libiptcdata-1.0.4.ebuild
4 Log:
5 Add support for multiple python ABI, bug #313531.
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.16 media-libs/libiptcdata/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libiptcdata/ChangeLog?rev=1.16&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libiptcdata/ChangeLog?rev=1.16&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libiptcdata/ChangeLog?r1=1.15&r2=1.16
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/ChangeLog,v
18 retrieving revision 1.15
19 retrieving revision 1.16
20 diff -u -r1.15 -r1.16
21 --- ChangeLog 1 Jan 2010 12:53:08 -0000 1.15
22 +++ ChangeLog 21 Apr 2010 23:26:36 -0000 1.16
23 @@ -1,6 +1,10 @@
24 # ChangeLog for media-libs/libiptcdata
25 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/ChangeLog,v 1.15 2010/01/01 12:53:08 armin76 Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/ChangeLog,v 1.16 2010/04/21 23:26:36 eva Exp $
28 +
29 + 21 Apr 2010; Gilles Dartiguelongue <eva@g.o>
30 + libiptcdata-1.0.4.ebuild:
31 + Add support for multiple python ABI, bug #313531.
32
33 01 Jan 2010; Raúl Porcel <armin76@g.o> libiptcdata-1.0.2.ebuild,
34 libiptcdata-1.0.3.ebuild, libiptcdata-1.0.4.ebuild:
35
36
37
38 1.3 media-libs/libiptcdata/libiptcdata-1.0.4.ebuild
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild?rev=1.3&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild?rev=1.3&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild?r1=1.2&r2=1.3
43
44 Index: libiptcdata-1.0.4.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild,v
47 retrieving revision 1.2
48 retrieving revision 1.3
49 diff -u -r1.2 -r1.3
50 --- libiptcdata-1.0.4.ebuild 1 Jan 2010 12:53:08 -0000 1.2
51 +++ libiptcdata-1.0.4.ebuild 21 Apr 2010 23:26:36 -0000 1.3
52 @@ -1,8 +1,12 @@
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild,v 1.2 2010/01/01 12:53:08 armin76 Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libiptcdata/libiptcdata-1.0.4.ebuild,v 1.3 2010/04/21 23:26:36 eva Exp $
57
58 -inherit eutils
59 +EAPI="3"
60 +SUPPORT_PYTHON_ABIS="1"
61 +RESTRICT_PYTHON_ABIS="3.*"
62 +
63 +inherit eutils python
64
65 DESCRIPTION="library for manipulating the International Press Telecommunications
66 Council (IPTC) metadata"
67 @@ -20,15 +24,53 @@
68 nls? ( >=sys-devel/gettext-0.13.1 )
69 doc? ( >=dev-util/gtk-doc-1 )"
70
71 -src_compile () {
72 - econf $(use_enable nls) \
73 +src_prepare() {
74 + # Python bindings are built/tested/installed manually.
75 + sed -e '/SUBDIRS =/s/$(MAYBE_PYTHONLIB)//' -i Makefile.in || die "sed failed"
76 +}
77 +
78 +src_configure () {
79 + python_execute_function -f -q econf \
80 + $(use_enable nls) \
81 $(use_enable python) \
82 $(use_enable doc gtk-doc)
83 - emake || die "emake failed."
84 +}
85 +
86 +src_compile() {
87 + default
88 +
89 + if use python; then
90 + python_copy_sources python
91 + building() {
92 + emake PYTHON_CPPFLAGS=-I$(python_get_includedir) \
93 + pyexecdir=$(python_get_sitedir)
94 + }
95 + python_execute_function -s --source-dir python building
96 + fi
97 +}
98 +
99 +src_test() {
100 + default
101 +
102 + if use python; then
103 + testing() {
104 + emake test
105 + }
106 + python_execute_function -s --source-dir python testing
107 + fi
108 }
109
110 src_install () {
111 emake DESTDIR="${D}" install || die "emake install failed."
112 +
113 + if use python; then
114 + installation() {
115 + emake DESTDIR="${D}" pyexecdir=$(python_get_sitedir) install
116 + }
117 + python_execute_function -s --source-dir python installation
118 + python_clean_sitedirs
119 + fi
120 +
121 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed."
122
123 if use examples; then
124 @@ -37,7 +79,7 @@
125 doins -r python/examples || die "doins 2 failed"
126 fi
127
128 - find "${D}" -name '*.la' -delete
129 + find "${D}" -name '*.la' -delete || die "failed to remove *.la files"
130 }
131
132 pkg_postinst() {