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: Wed, 28 Aug 2019 05:36:54
Message-Id: 1566970603.2a77921e1aa2e2404fc3275f0390865e854d8eca.mgorny@gentoo
1 commit: 2a77921e1aa2e2404fc3275f0390865e854d8eca
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 05:20:40 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 05:36:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a77921e
7
8 net-libs/miniupnpc: Bump to 2.1.20190824
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.20190824.ebuild | 56 ++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
17 index 03c38330242..a6c46011e16 100644
18 --- a/net-libs/miniupnpc/Manifest
19 +++ b/net-libs/miniupnpc/Manifest
20 @@ -1 +1,2 @@
21 DIST miniupnpc-2.1.20190625.tar.gz 94461 BLAKE2B 26c881c2ef99640e99a5c9cb138cc88dc29a25cd57fffaeaffcf521ded11402fd34ad1001639cd0659fdef9debd247dded5c1903b69f36b74b059c1e282bcdfb SHA512 d55a959bb2fce2c1747fa95da53d9993220403d2c511b12f489b80a7941b28238561f90a1cd60be9fa2bd62777fbfd3cef370db694b9970f73ccbdf3ef49aa48
22 +DIST miniupnpc-2.1.20190824.tar.gz 94564 BLAKE2B 1569e15bc9a886bdee5192526b83e0a628f0d6c9b4449c547c0c22c2ab1f912b1671d84ead6aa6961161bd99e5f62f8428f3867b8f9ca14e04d5f953e6553d4a SHA512 9ed5fc6fbe6f64fbfa23938043732db1999f3c8585422a660fde04fd9e203d7acf8a5c3f1f1433468ea179f090261702194cf5714601c5c0ed9094250352f175
23
24 diff --git a/net-libs/miniupnpc/miniupnpc-2.1.20190824.ebuild b/net-libs/miniupnpc/miniupnpc-2.1.20190824.ebuild
25 new file mode 100644
26 index 00000000000..daca7228030
27 --- /dev/null
28 +++ b/net-libs/miniupnpc/miniupnpc-2.1.20190824.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=7
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 +}