Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/miniupnpc/
Date: Sat, 05 May 2018 19:21:16
Message-Id: 1525548066.f6d58a50b3faad10fad4771b7880730d2ef37889.mgorny@gentoo
1 commit: f6d58a50b3faad10fad4771b7880730d2ef37889
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 5 19:19:32 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 5 19:21:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d58a50
7
8 net-libs/miniupnpc: Revert "Drop old"
9
10 net-libs/miniupnpc/Manifest | 3 ++
11 net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild | 54 +++++++++++++++++++++++
12 net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild | 54 +++++++++++++++++++++++
13 net-libs/miniupnpc/miniupnpc-2.0.20180203.ebuild | 56 ++++++++++++++++++++++++
14 4 files changed, 167 insertions(+)
15
16 diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
17 index ba0abf13e70..abc66c8cfb4 100644
18 --- a/net-libs/miniupnpc/Manifest
19 +++ b/net-libs/miniupnpc/Manifest
20 @@ -1,2 +1,5 @@
21 +DIST miniupnpc-2.0.20170509.tar.gz 86055 BLAKE2B 7da640c4baac58aa26965a670877953b4c2d27aff08b604366bad6913b30c152d52120099f37c6250eeed97396ff412a4dd6000179070a82eebd3c052596b0d0 SHA512 71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f
22 +DIST miniupnpc-2.0.20171212.tar.gz 86607 BLAKE2B fce582c4125192f74f6ffb174295020af1c9b574b2094f5565a5e49641820a2d9cef719de59cb94bfd207182505237c22cf58425e1a7b47f5dfe2eb84c07d3c5 SHA512 d25708f4e2ef7311878ba6d17cb506f4bfe5c9cc6b7a79e4168f143ca9da8b96beb018c42dd735f0b23806668eba2308b7de26d1b506d91c23f79c7ed77399a0
23 +DIST miniupnpc-2.0.20180203.tar.gz 86772 BLAKE2B 6959d7033f12d3cbe52bbe1ec2178c068a448441d22501f44a7228b2050b53ff5e955d390ff03071e6f34df2a652040bf5ab23c59aca16dc4379e380dd46fea8 SHA512 b8ebf02ed01c5217a789397b7c224ba21d233cb544ccdfd907fb9c6f49adae6864eb17963b9b9f654ecf3fde864c191fd7d00c5cf614771a7137a030f341f226
24 DIST miniupnpc-2.0.20180222.tar.gz 87018 BLAKE2B 656ae02ac6e462084252d95e579972d2bbaec24cf44b5910d4fc1a956723a8ed8fecaa428aea361a7ec8a3ff60b82e0d9468ac21d251c16ac8c2b52eafec6ab3 SHA512 0cceeedff6c584d2d7037ff91fbba0fe580fabfda810b9a9ed7c8d8495445339e3ff115d63d4429bcd3eff2b13b123e1bd5855ff1bc9dcd986b968a82c368591
25 DIST miniupnpc-2.0.20180503.tar.gz 88207 BLAKE2B 1d6c6396e805eae3c53263a6856cc119033a645da29471b31705fdee8465808361057804496821f845112fb8490d351f67a5d5c9e1fef522fc6e6df8d4ac34c1 SHA512 68dcf76fe62223de80610afd392f14f46af2465796c3d4d46daa0c6f1f7e99034368b2484e260e718d42eef480644a684e83d4c0f32a6108fdd544cfc48443a3
26
27 diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild
28 new file mode 100644
29 index 00000000000..72c1c30a7f7
30 --- /dev/null
31 +++ b/net-libs/miniupnpc/miniupnpc-2.0.20170509.ebuild
32 @@ -0,0 +1,54 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit toolchain-funcs
39 +
40 +DESCRIPTION="UPnP client library and a simple UPnP client"
41 +HOMEPAGE="http://miniupnp.free.fr/"
42 +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0/16"
46 +KEYWORDS="amd64 arm ~arm64 hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
47 +IUSE="ipv6 kernel_linux static-libs"
48 +
49 +RDEPEND=""
50 +DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
51 +
52 +src_prepare() {
53 + eapply_user
54 +
55 + # These bins are not installed, upnpc-static requires building static lib
56 + sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
57 +
58 + if ! use static-libs; then
59 + sed -i \
60 + -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
61 + -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \
62 + Makefile || die
63 + fi
64 +}
65 +
66 +# Upstream cmake causes more trouble than it fixes,
67 +# so we'll just stay with the Makefile for now.
68 +
69 +src_compile() {
70 + tc-export CC AR
71 + emake upnpc-shared $(usex static-libs upnpc-static '')
72 +}
73 +
74 +src_test() {
75 + emake -j1 HAVE_IPV6=$(usex ipv6) check
76 +}
77 +
78 +src_install() {
79 + emake \
80 + DESTDIR="${D}" \
81 + PREFIX="${EPREFIX}/usr" \
82 + INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \
83 + install
84 +
85 + dodoc README Changelog.txt
86 +}
87
88 diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild
89 new file mode 100644
90 index 00000000000..fbb26a0941e
91 --- /dev/null
92 +++ b/net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild
93 @@ -0,0 +1,54 @@
94 +# Copyright 1999-2018 Gentoo Foundation
95 +# Distributed under the terms of the GNU General Public License v2
96 +
97 +EAPI=6
98 +
99 +inherit toolchain-funcs
100 +
101 +DESCRIPTION="UPnP client library and a simple UPnP client"
102 +HOMEPAGE="http://miniupnp.free.fr/"
103 +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
104 +
105 +LICENSE="BSD"
106 +SLOT="0/16"
107 +KEYWORDS="amd64 arm ~arm64 hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
108 +IUSE="ipv6 kernel_linux static-libs"
109 +
110 +RDEPEND=""
111 +DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
112 +
113 +src_prepare() {
114 + eapply_user
115 +
116 + # These bins are not installed, upnpc-static requires building static lib
117 + sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
118 +
119 + if ! use static-libs; then
120 + sed -i \
121 + -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
122 + -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \
123 + Makefile || die
124 + fi
125 +}
126 +
127 +# Upstream cmake causes more trouble than it fixes,
128 +# so we'll just stay with the Makefile for now.
129 +
130 +src_compile() {
131 + tc-export CC AR
132 + emake upnpc-shared $(usex static-libs upnpc-static '')
133 +}
134 +
135 +src_test() {
136 + emake -j1 HAVE_IPV6=$(usex ipv6) check
137 +}
138 +
139 +src_install() {
140 + emake \
141 + DESTDIR="${D}" \
142 + PREFIX="${EPREFIX}/usr" \
143 + INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \
144 + install
145 +
146 + dodoc README Changelog.txt
147 +}
148
149 diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20180203.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20180203.ebuild
150 new file mode 100644
151 index 00000000000..3a1c24a1b10
152 --- /dev/null
153 +++ b/net-libs/miniupnpc/miniupnpc-2.0.20180203.ebuild
154 @@ -0,0 +1,56 @@
155 +# Copyright 1999-2018 Gentoo Foundation
156 +# Distributed under the terms of the GNU General Public License v2
157 +
158 +EAPI=6
159 +
160 +inherit toolchain-funcs
161 +
162 +DESCRIPTION="UPnP client library and a simple UPnP client"
163 +HOMEPAGE="http://miniupnp.free.fr/"
164 +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
165 +
166 +LICENSE="BSD"
167 +SLOT="0/16"
168 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
169 +IUSE="ipv6 kernel_linux static-libs"
170 +
171 +RDEPEND=""
172 +DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
173 +
174 +src_prepare() {
175 + eapply_user
176 +
177 + # These bins are not installed, upnpc-static requires building static lib
178 + sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
179 + # Prevent gzipping manpage.
180 + sed -i -e '/gzip/d' Makefile || die
181 +
182 + if ! use static-libs; then
183 + sed -i \
184 + -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
185 + -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d' \
186 + Makefile || die
187 + fi
188 +}
189 +
190 +# Upstream cmake causes more trouble than it fixes,
191 +# so we'll just stay with the Makefile for now.
192 +
193 +src_compile() {
194 + tc-export CC AR
195 + emake upnpc-shared $(usex static-libs upnpc-static '')
196 +}
197 +
198 +src_test() {
199 + emake -j1 HAVE_IPV6=$(usex ipv6) check
200 +}
201 +
202 +src_install() {
203 + emake \
204 + DESTDIR="${D}" \
205 + PREFIX="${EPREFIX}/usr" \
206 + INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \
207 + install
208 +
209 + dodoc README Changelog.txt
210 +}