Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/lcms: ChangeLog lcms-1.19.ebuild
Date: Sat, 26 Feb 2011 18:18:47
Message-Id: 20110226181837.3CBF320054@flycatcher.gentoo.org
1 arfrever 11/02/26 18:18:37
2
3 Modified: ChangeLog lcms-1.19.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS, don't install .a files in Python site-packages directories (bug #356601).
6
7 (Portage version: 2.2.0_alpha25_p8/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.125 media-libs/lcms/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/ChangeLog?rev=1.125&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/ChangeLog?rev=1.125&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/ChangeLog?r1=1.124&r2=1.125
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/lcms/ChangeLog,v
19 retrieving revision 1.124
20 retrieving revision 1.125
21 diff -u -r1.124 -r1.125
22 --- ChangeLog 12 Dec 2010 10:09:25 -0000 1.124
23 +++ ChangeLog 26 Feb 2011 18:18:37 -0000 1.125
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-libs/lcms
26 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/ChangeLog,v 1.124 2010/12/12 10:09:25 ssuominen Exp $
28 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/ChangeLog,v 1.125 2011/02/26 18:18:37 arfrever Exp $
30 +
31 + 26 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
32 + lcms-1.19.ebuild, +files/lcms-1.19-disable_static_modules.patch:
33 + Set SUPPORT_PYTHON_ABIS, don't install .a files in Python site-packages
34 + directories (bug #356601).
35
36 *lcms-2.1 (12 Dec 2010)
37
38
39
40
41 1.10 media-libs/lcms/lcms-1.19.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild?rev=1.10&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild?rev=1.10&content-type=text/plain
45 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild?r1=1.9&r2=1.10
46
47 Index: lcms-1.19.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v
50 retrieving revision 1.9
51 retrieving revision 1.10
52 diff -u -r1.9 -r1.10
53 --- lcms-1.19.ebuild 28 Sep 2010 16:19:42 -0000 1.9
54 +++ lcms-1.19.ebuild 26 Feb 2011 18:18:37 -0000 1.10
55 @@ -1,9 +1,13 @@
56 -# Copyright 1999-2010 Gentoo Foundation
57 +# Copyright 1999-2011 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v 1.9 2010/09/28 16:19:42 ssuominen Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/media-libs/lcms/lcms-1.19.ebuild,v 1.10 2011/02/26 18:18:37 arfrever Exp $
61
62 -EAPI=2
63 -inherit libtool multilib
64 +EAPI="3"
65 +PYTHON_DEPEND="python? 2"
66 +SUPPORT_PYTHON_ABIS="1"
67 +RESTRICT_PYTHON_ABIS="3.* *-jython"
68 +
69 +inherit autotools eutils multilib python
70
71 DESCRIPTION="A lightweight, speed optimized color management engine"
72 HOMEPAGE="http://www.littlecms.com/"
73 @@ -20,7 +24,20 @@
74 DEPEND="${RDEPEND}
75 python? ( >=dev-lang/swig-1.3.31 )"
76
77 +pkg_setup() {
78 + if use python; then
79 + python_pkg_setup
80 + fi
81 +}
82 +
83 src_prepare() {
84 + # Python bindings are built/installed manually.
85 + sed -e "/SUBDIRS =/s/ python//" -i Makefile.am
86 +
87 + epatch "${FILESDIR}/${P}-disable_static_modules.patch"
88 +
89 + eautoreconf
90 +
91 # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
92 if use python; then
93 cd python
94 @@ -38,6 +55,23 @@
95 $(use_with zlib)
96 }
97
98 +src_compile() {
99 + default
100 +
101 + if use python; then
102 + python_copy_sources python
103 +
104 + building() {
105 + emake \
106 + LCMS_PYEXECDIR="$(python_get_sitedir)" \
107 + LCMS_PYINCLUDE="$(python_get_includedir)" \
108 + LCMS_PYLIB="$(python_get_libdir)" \
109 + PYTHON_VERSION="$(python_get_version)"
110 + }
111 + python_execute_function -s --source-dir python building
112 + fi
113 +}
114 +
115 src_install() {
116 emake \
117 DESTDIR="${D}" \
118 @@ -45,6 +79,20 @@
119 libdir=/usr/$(get_libdir) \
120 install || die
121
122 + if use python; then
123 + installation() {
124 + emake \
125 + DESTDIR="${D}" \
126 + LCMS_PYEXECDIR="$(python_get_sitedir)" \
127 + LCMS_PYLIB="$(python_get_libdir)" \
128 + PYTHON_VERSION="$(python_get_version)" \
129 + install
130 + }
131 + python_execute_function -s --source-dir python installation
132 +
133 + python_clean_installation_image
134 + fi
135 +
136 insinto /usr/share/lcms/profiles
137 doins testbed/*.icm
138
139 @@ -52,3 +100,15 @@
140
141 find "${D}" -name '*.la' -exec rm -f '{}' +
142 }
143 +
144 +pkg_postinst() {
145 + if use python; then
146 + python_mod_optimize lcms.py
147 + fi
148 +}
149 +
150 +pkg_postrm() {
151 + if use python; then
152 + python_mod_cleanup lcms.py
153 + fi
154 +}