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: Sun, 25 Feb 2018 20:04:45
Message-Id: 1519589075.1e8baecc04fbd88937861b2671dd5cdf8798f7c5.mgorny@gentoo
1 commit: 1e8baecc04fbd88937861b2671dd5cdf8798f7c5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 25 19:29:06 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 25 20:04:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e8baecc
7
8 net-libs/miniupnpc: Bump to 2.0.20180222
9
10 net-libs/miniupnpc/Manifest | 1 +
11 net-libs/miniupnpc/miniupnpc-2.0.20180222.ebuild | 56 ++++++++++++++++++++++++
12 2 files changed, 57 insertions(+)
13
14 diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
15 index de2f1c56dda..3fee459f5ec 100644
16 --- a/net-libs/miniupnpc/Manifest
17 +++ b/net-libs/miniupnpc/Manifest
18 @@ -1,3 +1,4 @@
19 DIST miniupnpc-2.0.20170509.tar.gz 86055 BLAKE2B 7da640c4baac58aa26965a670877953b4c2d27aff08b604366bad6913b30c152d52120099f37c6250eeed97396ff412a4dd6000179070a82eebd3c052596b0d0 SHA512 71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f
20 DIST miniupnpc-2.0.20171212.tar.gz 86607 BLAKE2B fce582c4125192f74f6ffb174295020af1c9b574b2094f5565a5e49641820a2d9cef719de59cb94bfd207182505237c22cf58425e1a7b47f5dfe2eb84c07d3c5 SHA512 d25708f4e2ef7311878ba6d17cb506f4bfe5c9cc6b7a79e4168f143ca9da8b96beb018c42dd735f0b23806668eba2308b7de26d1b506d91c23f79c7ed77399a0
21 DIST miniupnpc-2.0.20180203.tar.gz 86772 BLAKE2B 6959d7033f12d3cbe52bbe1ec2178c068a448441d22501f44a7228b2050b53ff5e955d390ff03071e6f34df2a652040bf5ab23c59aca16dc4379e380dd46fea8 SHA512 b8ebf02ed01c5217a789397b7c224ba21d233cb544ccdfd907fb9c6f49adae6864eb17963b9b9f654ecf3fde864c191fd7d00c5cf614771a7137a030f341f226
22 +DIST miniupnpc-2.0.20180222.tar.gz 87018 BLAKE2B 656ae02ac6e462084252d95e579972d2bbaec24cf44b5910d4fc1a956723a8ed8fecaa428aea361a7ec8a3ff60b82e0d9468ac21d251c16ac8c2b52eafec6ab3 SHA512 0cceeedff6c584d2d7037ff91fbba0fe580fabfda810b9a9ed7c8d8495445339e3ff115d63d4429bcd3eff2b13b123e1bd5855ff1bc9dcd986b968a82c368591
23
24 diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20180222.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20180222.ebuild
25 new file mode 100644
26 index 00000000000..3a1c24a1b10
27 --- /dev/null
28 +++ b/net-libs/miniupnpc/miniupnpc-2.0.20180222.ebuild
29 @@ -0,0 +1,56 @@
30 +# Copyright 1999-2018 Gentoo Foundation
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/16"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~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 +}