commit:     23e06320bf451aaae83cf921a5ade33a3128e3f1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 13 07:43:34 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 13 07:56:45 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23e06320

net-libs/miniupnpc: Bump to 2.0.20171212

 net-libs/miniupnpc/Manifest                      |  1 +
 net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild | 54 ++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
index 9368d234d47..73dfab0496a 100644
--- a/net-libs/miniupnpc/Manifest
+++ b/net-libs/miniupnpc/Manifest
@@ -1,2 +1,3 @@
 DIST miniupnpc-2.0.20170509.tar.gz 86055 BLAKE2B 
7da640c4baac58aa26965a670877953b4c2d27aff08b604366bad6913b30c152d52120099f37c6250eeed97396ff412a4dd6000179070a82eebd3c052596b0d0
 SHA512 
71ec052ef6c8ad0d529e467ddae6eae19a93b9816174eeac753aa90e036cc2f00cf7e8d1cdb188ef8280849a988fe2995e37b63f8e2a361e021c1d1b306bff6f
 DIST miniupnpc-2.0.20171102.tar.gz 86363 BLAKE2B 
755cc85bbac7f7c9b480612c12c46c09eaa7089dc9f458027805ffb4836631efafbead4bbb5e5313d1267e3110bc4b24c726c34250da3afd1ab0f1f96d53a654
 SHA512 
5af68a58bef587ea5cc405155b1aca4438de3b56d5fb7e11945edd79e5cbdbf44c708b7f1ad3c3fde6bf4710de69782acf30cfcce327c5a906f4eb8f76a6ba37
+DIST miniupnpc-2.0.20171212.tar.gz 86607 BLAKE2B 
fce582c4125192f74f6ffb174295020af1c9b574b2094f5565a5e49641820a2d9cef719de59cb94bfd207182505237c22cf58425e1a7b47f5dfe2eb84c07d3c5
 SHA512 
d25708f4e2ef7311878ba6d17cb506f4bfe5c9cc6b7a79e4168f143ca9da8b96beb018c42dd735f0b23806668eba2308b7de26d1b506d91c23f79c7ed77399a0

diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild 
b/net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild
new file mode 100644
index 00000000000..918bc210cea
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-2.0.20171212.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="http://miniupnp.free.fr/";
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0/16"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="ipv6 kernel_linux static-libs"
+
+RDEPEND=""
+DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )"
+
+src_prepare() {
+       eapply_user
+
+       # These bins are not installed, upnpc-static requires building static 
lib
+       sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
+
+       if ! use static-libs; then
+               sed -i \
+                       -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
+                       -e '/$(INSTALL) -m 644 $(LIBRARY) 
$(DESTDIR)$(INSTALLDIRLIB)/d' \
+                       Makefile || die
+       fi
+}
+
+# Upstream cmake causes more trouble than it fixes,
+# so we'll just stay with the Makefile for now.
+
+src_compile() {
+       tc-export CC AR
+       emake upnpc-shared $(usex static-libs upnpc-static '')
+}
+
+src_test() {
+       emake -j1 HAVE_IPV6=$(usex ipv6) check
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               PREFIX="${EPREFIX}/usr" \
+               INSTALLDIRLIB="${EPREFIX}/usr/$(get_libdir)" \
+               install
+
+       dodoc README Changelog.txt
+}

Reply via email to