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 net-libs/gupnp-igd: ChangeLog gupnp-igd-0.1.7.ebuild
Date: Sat, 26 Feb 2011 20:03:08
Message-Id: 20110226200253.1E4F920054@flycatcher.gentoo.org
1 arfrever 11/02/26 20:02:53
2
3 Modified: ChangeLog gupnp-igd-0.1.7.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS, don't install .a, .la, .pyc and .pyo files in Python site-packages directories, call python_mod_optimize() and python_mod_cleanup() (bug #356611).
6
7 (Portage version: 2.2.0_alpha25_p8/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.27 net-libs/gupnp-igd/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gupnp-igd/ChangeLog?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gupnp-igd/ChangeLog?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gupnp-igd/ChangeLog?r1=1.26&r2=1.27
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/ChangeLog,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -u -r1.26 -r1.27
22 --- ChangeLog 26 Feb 2011 19:31:10 -0000 1.26
23 +++ ChangeLog 26 Feb 2011 20:02:53 -0000 1.27
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-libs/gupnp-igd
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/ChangeLog,v 1.26 2011/02/26 19:31:10 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/ChangeLog,v 1.27 2011/02/26 20:02:53 arfrever Exp $
29 +
30 + 26 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + gupnp-igd-0.1.7.ebuild, +files/gupnp-igd-0.1.7-disable_static_modules.patch:
32 + Set SUPPORT_PYTHON_ABIS, don't install .a, .la, .pyc and .pyo files in Python
33 + site-packages directories, call python_mod_optimize() and
34 + python_mod_cleanup() (bug #356611).
35
36 26 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
37 gupnp-igd-0.1.7.ebuild:
38
39
40
41 1.11 net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild?rev=1.11&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild?rev=1.11&content-type=text/plain
45 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild?r1=1.10&r2=1.11
46
47 Index: gupnp-igd-0.1.7.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild,v
50 retrieving revision 1.10
51 retrieving revision 1.11
52 diff -u -r1.10 -r1.11
53 --- gupnp-igd-0.1.7.ebuild 26 Feb 2011 19:31:10 -0000 1.10
54 +++ gupnp-igd-0.1.7.ebuild 26 Feb 2011 20:02:53 -0000 1.11
55 @@ -1,9 +1,11 @@
56 # Copyright 1999-2011 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild,v 1.10 2011/02/26 19:31:10 arfrever Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp-igd/gupnp-igd-0.1.7.ebuild,v 1.11 2011/02/26 20:02:53 arfrever Exp $
60
61 EAPI="3"
62 PYTHON_DEPEND="python? 2:2.5"
63 +SUPPORT_PYTHON_ABIS="1"
64 +RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
65
66 inherit autotools eutils python
67
68 @@ -26,13 +28,20 @@
69
70 pkg_setup() {
71 if use python; then
72 - python_set_active_version 2
73 python_pkg_setup
74 fi
75 }
76
77 src_prepare() {
78 epatch "${FILESDIR}"/${P}-make-382.patch
79 + epatch "${FILESDIR}"/${P}-disable_static_modules.patch
80 +
81 + # Disable byte-compilation of Python modules.
82 + echo "#!/bin/sh" > py-compile
83 +
84 + # Python bindings are built/installed manually.
85 + sed -e "/PYTHON_SUBDIR =/s/ python//" -i Makefile.am
86 +
87 eautoreconf
88 }
89
90 @@ -44,7 +53,47 @@
91 --with-html-dir=/usr/share/doc/${PF}/html
92 }
93
94 +src_compile() {
95 + default
96 +
97 + if use python; then
98 + python_copy_sources python
99 +
100 + building() {
101 + emake \
102 + PYTHON_INCLUDES="-I$(python_get_includedir)" \
103 + pyexecdir="$(python_get_sitedir)"
104 + }
105 + python_execute_function -s --source-dir python building
106 + fi
107 +}
108 +
109 src_install() {
110 emake DESTDIR="${D}" install || die
111 - dodoc AUTHORS NEWS README TODO
112 +
113 + if use python; then
114 + installation() {
115 + emake \
116 + DESTDIR="${D}" \
117 + pyexecdir="$(python_get_sitedir)" \
118 + install
119 + }
120 + python_execute_function -s --source-dir python installation
121 +
122 + python_clean_installation_image
123 + fi
124 +
125 + dodoc AUTHORS NEWS README TODO || die
126 +}
127 +
128 +pkg_postinst() {
129 + if use python; then
130 + python_mod_optimize gupnp
131 + fi
132 +}
133 +
134 +pkg_postrm() {
135 + if use python; then
136 + python_mod_cleanup gupnp
137 + fi
138 }