1 |
commit: d26c6f43ce44592702e93e9cbb0bb1900ec8c32d |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 3 11:20:05 2011 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 3 11:20:05 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=d26c6f43 |
7 |
|
8 |
dev-python/libnatpmp: Fix build against system library |
9 |
|
10 |
(Portage version: 2.1.10.3/git/Linux x86_64, signed Manifest commit with key 0xD0455535) |
11 |
|
12 |
--- |
13 |
dev-python/libnatpmp/ChangeLog | 4 +++ |
14 |
dev-python/libnatpmp/Manifest | 11 ++++---- |
15 |
.../libnatpmp/files/link-against-system-lib.patch | 12 +++++++++ |
16 |
dev-python/libnatpmp/libnatpmp-20110715.ebuild | 25 +++++++------------ |
17 |
4 files changed, 31 insertions(+), 21 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/libnatpmp/ChangeLog b/dev-python/libnatpmp/ChangeLog |
20 |
index d185eb2..e2fdc67 100644 |
21 |
--- a/dev-python/libnatpmp/ChangeLog |
22 |
+++ b/dev-python/libnatpmp/ChangeLog |
23 |
@@ -1,5 +1,9 @@ |
24 |
|
25 |
|
26 |
+ 03 Aug 2011; Anthony G. Basile <blueness@g.o> |
27 |
+ libnatpmp-20110715.ebuild, +files/link-against-system-lib.patch: |
28 |
+ Fix build against system library |
29 |
+ |
30 |
*libnatpmp-20110715 (03 Aug 2011) |
31 |
|
32 |
03 Aug 2011; Anthony G. Basile <blueness@g.o> |
33 |
|
34 |
diff --git a/dev-python/libnatpmp/Manifest b/dev-python/libnatpmp/Manifest |
35 |
index a484454..e365bba 100644 |
36 |
--- a/dev-python/libnatpmp/Manifest |
37 |
+++ b/dev-python/libnatpmp/Manifest |
38 |
@@ -1,14 +1,15 @@ |
39 |
-----BEGIN PGP SIGNED MESSAGE----- |
40 |
Hash: SHA256 |
41 |
|
42 |
+AUX link-against-system-lib.patch 536 RMD160 34cec3a3eb972468c2329d40b4e421cfc60f4a30 SHA1 ebade41308e57bfa0690d854045287ea12d7687c SHA256 47809598d8d7c3b407785de3a27b99d4a3463be52706da7df55ce51a980b9658 |
43 |
DIST libnatpmp-20110715.tar.gz 17943 RMD160 df9c656fdaa2782863670c334c840ff2ceab3e6b SHA1 87338bbbe07c627d33c5935b92b9f2c7622fe885 SHA256 853364242b2ad21ada841de484ad702f609d822690816a0c04a324f5963bed58 |
44 |
-EBUILD libnatpmp-20110715.ebuild 874 RMD160 f8568dd685788354cafd8e3c45da3f4224ffa37d SHA1 931b00f43ba25af4ff186af770ab980c0af93852 SHA256 c7aa43cde3b78ea31a903639cdea02bc49b32cf63313f118eb318e6fcc70be63 |
45 |
-MISC ChangeLog 155 RMD160 1159c37412f1db55405fd34a4e960f696a81f4e6 SHA1 fdafaf7ef0ef1d6d408e8be71ee99fda3e6df21e SHA256 1e9430f6e7abe9bc32b4278f3ffeec1df44595a7eefbcbd55c2553f079c4e7d8 |
46 |
+EBUILD libnatpmp-20110715.ebuild 692 RMD160 df2b364d62c8ff675d5273b52972c1ffaca32629 SHA1 29ad12d60b0e4f9036605eb11205f6864343d08c SHA256 17ebcb8e1d78dde6a0d4819b50f18d64f0906e0a4995a3cf7c252ce80e6d84b9 |
47 |
+MISC ChangeLog 313 RMD160 bb52015339f6360dc0b80b5dc02f87df577b5f8d SHA1 3dd4d85d8ce17cf270f16841db89c1ca8132526d SHA256 3ba17c6337a2c01a64c79f77d9b2603ff7b3f3101a2ec1158283c763e3bfee46 |
48 |
MISC metadata.xml 260 RMD160 fbefa5d68419d2a2c7f16e2be1b7d32bdf550da6 SHA1 2ae3d90be714fe96cb79937e2e9ecc1a7b4bf7a1 SHA256 7b301cfccb3820f218f51a1a3acafb5a640a92dff1155c2ad4cc955b6c3351fb |
49 |
-----BEGIN PGP SIGNATURE----- |
50 |
Version: GnuPG v2.0.17 (GNU/Linux) |
51 |
|
52 |
-iEYEAREIAAYFAk45EIcACgkQl5yvQNBFVTXh5wCglzxqsrIQzE/xPb37JNM9WwTI |
53 |
-4+8AnjOjsi73U8PiQXqxxCU55cEQXNDh |
54 |
-=B/3l |
55 |
+iEYEAREIAAYFAk45LuUACgkQl5yvQNBFVTWVeACfdewuV6H466DrOo/C/nQDeHMF |
56 |
+uNwAoIs5771BmMWp5PNEGZnZACyhJLn3 |
57 |
+=QbXr |
58 |
-----END PGP SIGNATURE----- |
59 |
|
60 |
diff --git a/dev-python/libnatpmp/files/link-against-system-lib.patch b/dev-python/libnatpmp/files/link-against-system-lib.patch |
61 |
new file mode 100644 |
62 |
index 0000000..cdb64a9 |
63 |
--- /dev/null |
64 |
+++ b/dev-python/libnatpmp/files/link-against-system-lib.patch |
65 |
@@ -0,0 +1,12 @@ |
66 |
+diff -Naur libnatpmp-20110715.orig//setup.py libnatpmp-20110715/setup.py |
67 |
+--- libnatpmp-20110715.orig//setup.py 2009-06-04 17:37:06.000000000 -0400 |
68 |
++++ libnatpmp-20110715/setup.py 2011-08-03 06:55:11.000000000 -0400 |
69 |
+@@ -8,7 +8,7 @@ |
70 |
+ setup(name="libnatpmp", version="1.0", |
71 |
+ ext_modules=[ |
72 |
+ Extension(name="libnatpmp", sources=["libnatpmpmodule.c"], |
73 |
+- extra_objects=["libnatpmp.a"], |
74 |
++ libraries=["natpmp"], |
75 |
+ define_macros=[('ENABLE_STRNATPMPERR', None)] |
76 |
+ )] |
77 |
+ ) |
78 |
|
79 |
diff --git a/dev-python/libnatpmp/libnatpmp-20110715.ebuild b/dev-python/libnatpmp/libnatpmp-20110715.ebuild |
80 |
index c6c4e70..50339c5 100644 |
81 |
--- a/dev-python/libnatpmp/libnatpmp-20110715.ebuild |
82 |
+++ b/dev-python/libnatpmp/libnatpmp-20110715.ebuild |
83 |
@@ -3,14 +3,12 @@ |
84 |
# $Header: $ |
85 |
|
86 |
EAPI=3 |
87 |
-SUPPORT_PYTHON_ABIS=1 |
88 |
PYTHON_DEPEND=2 |
89 |
RESTRICT_PYTHON_ABIS="3.*" |
90 |
|
91 |
-inherit distutils |
92 |
-#inherit base distutils |
93 |
+inherit eutils distutils |
94 |
|
95 |
-DESCRIPTION="Python client for libnatpmp, An alternative protocol to UPnP IGD." |
96 |
+DESCRIPTION="Python module for libnatpmp, An alternative protocol to UPnP IGD." |
97 |
HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html" |
98 |
SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz" |
99 |
|
100 |
@@ -22,15 +20,10 @@ IUSE="" |
101 |
DEPEND="net-libs/libnatpmp" |
102 |
RDEPEND="${DEPEND}" |
103 |
|
104 |
-#src_prepare() { |
105 |
-# local PATCHES=( |
106 |
-# "${FILESDIR}"/0001-Link-Python-module-against-the-shared-library.patch |
107 |
-# ) |
108 |
-# |
109 |
-# base_src_prepare |
110 |
-# distutils_src_prepare |
111 |
-# |
112 |
-# # these will conflict with base miniupnpc ebuild |
113 |
-# # and distutils.eclass is stupid enough to force installing them |
114 |
-# rm -f Changelog.txt README || die |
115 |
-#} |
116 |
+src_prepare() { |
117 |
+ epatch "${FILESDIR}"/link-against-system-lib.patch |
118 |
+ distutils_src_prepare |
119 |
+ |
120 |
+ #These were installed by net-libs/libnatpmp |
121 |
+ rm -f Changelog.txt README || die |
122 |
+} |