1 |
commit: a7eede626c2d327cb84eb5ef987b0e1c35579786 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 13 13:57:34 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 13 15:09:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7eede62 |
7 |
|
8 |
net-libs/miniupnpc: Bump to 2.1.20190210 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
net-libs/miniupnpc/Manifest | 1 + |
13 |
net-libs/miniupnpc/miniupnpc-2.1.20190210.ebuild | 56 ++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest |
17 |
index a677cb63c06..3ad3871db3f 100644 |
18 |
--- a/net-libs/miniupnpc/Manifest |
19 |
+++ b/net-libs/miniupnpc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST miniupnpc-2.0.20180503.tar.gz 88207 BLAKE2B 1d6c6396e805eae3c53263a6856cc119033a645da29471b31705fdee8465808361057804496821f845112fb8490d351f67a5d5c9e1fef522fc6e6df8d4ac34c1 SHA512 68dcf76fe62223de80610afd392f14f46af2465796c3d4d46daa0c6f1f7e99034368b2484e260e718d42eef480644a684e83d4c0f32a6108fdd544cfc48443a3 |
22 |
+DIST miniupnpc-2.1.20190210.tar.gz 94125 BLAKE2B 1cb8e4cd4d015d82eb15eec20e93b14a9f280aeabfc54e96ff9511db7fddf9713b9bffd0893c17f29beede29c6bfe73e6a459f7b20c9e4b33c88753b39cb7a0e SHA512 51f662c2a7a78cd99a793ff8b89097d895c80aaca696109c06106f8bb2601465207e068a410134cc66a61b4c0e11d4635bac6e9efdfe3fe8c4f813ac9e7a2fc2 |
23 |
|
24 |
diff --git a/net-libs/miniupnpc/miniupnpc-2.1.20190210.ebuild b/net-libs/miniupnpc/miniupnpc-2.1.20190210.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..b170db612f2 |
27 |
--- /dev/null |
28 |
+++ b/net-libs/miniupnpc/miniupnpc-2.1.20190210.ebuild |
29 |
@@ -0,0 +1,56 @@ |
30 |
+# Copyright 1999-2019 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="UPnP client library and a simple UPnP client" |
38 |
+HOMEPAGE="http://miniupnp.free.fr/" |
39 |
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0/17" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" |
44 |
+IUSE="ipv6 kernel_linux static-libs" |
45 |
+ |
46 |
+RDEPEND="" |
47 |
+DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ eapply_user |
51 |
+ |
52 |
+ # These bins are not installed, upnpc-static requires building static lib |
53 |
+ sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die |
54 |
+ # Prevent gzipping manpage. |
55 |
+ sed -i -e '/gzip/d' Makefile || die |
56 |
+ |
57 |
+ if ! use static-libs; then |
58 |
+ sed -i \ |
59 |
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \ |
60 |
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \ |
61 |
+ Makefile || die |
62 |
+ fi |
63 |
+} |
64 |
+ |
65 |
+# Upstream cmake causes more trouble than it fixes, |
66 |
+# so we'll just stay with the Makefile for now. |
67 |
+ |
68 |
+src_compile() { |
69 |
+ tc-export CC AR |
70 |
+ emake upnpc-shared $(usex static-libs upnpc-static '') |
71 |
+} |
72 |
+ |
73 |
+src_test() { |
74 |
+ emake -j1 HAVE_IPV6=$(usex ipv6) check |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ emake \ |
79 |
+ DESTDIR="${D}" \ |
80 |
+ PREFIX="${EPREFIX}/usr" \ |
81 |
+ INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \ |
82 |
+ install |
83 |
+ |
84 |
+ dodoc README Changelog.txt |
85 |
+} |