diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-01-26 20:37:59 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-01-26 21:13:59 +0100 |
commit | de9cc8a0ea2729ab204e28445fe0044aefcbba44 (patch) | |
tree | 453c7a7dc15784826a8b69805a057500f16266b5 /net-libs/miniupnpc | |
parent | net-libs/miniupnpc: Clean old (diff) | |
download | gentoo-de9cc8a0ea2729ab204e28445fe0044aefcbba44.tar.gz gentoo-de9cc8a0ea2729ab204e28445fe0044aefcbba44.tar.bz2 gentoo-de9cc8a0ea2729ab204e28445fe0044aefcbba44.zip |
net-libs/miniupnpc: Bump to 2.0.20161216
Diffstat (limited to 'net-libs/miniupnpc')
-rw-r--r-- | net-libs/miniupnpc/Manifest | 1 | ||||
-rw-r--r-- | net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest index d56546fc0ce7..bbc5435efd50 100644 --- a/net-libs/miniupnpc/Manifest +++ b/net-libs/miniupnpc/Manifest @@ -1,2 +1,3 @@ DIST miniupnpc-1.8.tar.gz 70624 SHA256 bc5f73c7b0056252c1888a80e6075787a1e1e9112b808f863a245483ff79859c SHA512 8eedac9ad473fc952ca8896fe534d6da6b1b234e8b6f35f721394d4c71aca84ed287ca6c4f0455b50d97a45e4cd34e27d99a6813386e0864781364aa607e13d4 WHIRLPOOL 5b76ccbb5ed7daa9bb0d481b424b7c31a5f6dc85c5c812ba10175a29aefc0d3924f3db2aa8c3529d1241be59d67d1d4c702d27aad2de8c8a07fecf3857d73169 DIST miniupnpc-1.9.20151008.tar.gz 83538 SHA256 e444ac3b587ce82709c4d0cfca1fe71f44f9fc433e9f946b12b9e1bfe667a633 SHA512 b13e6044184f47d0f9e78c4c97d2887ab763121b2b21c86652bf3ea1b05335cfbcfd91eecb8d1dcfb5530f2528e6cf3e9c49c742d5e771dba68a774d2c2ad4ca WHIRLPOOL 839b531eb6cae7ada0bbaa0c4230a1f6889f6a288a114262bf6e27aa27638800636127fea3066427fb030e8f449794681d2bffeb8e2d30876d8ef9e4a3ade3cc +DIST miniupnpc-2.0.20161216.tar.gz 85780 SHA256 01e14408d6fc628de9afabc4417b84adeaba4c0ec517e7b8e278cb2993dafd3e SHA512 ed1413fa6cd8eeb0d01e595e5470b255b1119a9bcf28da17765a4a3f0eb2b514409a9bfe9cd041274761b61441389c290754055ff07d599bb653a4efe47e920f WHIRLPOOL fde2dc16f5cfd6e7d066ec49646ac79b6d262988afe928d80aaf47f6b7f868a272ac46d3136c56ed8373e800d1538fe4dd6c34255080e2bd01cc0cb8b56e37fc diff --git a/net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild b/net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild new file mode 100644 index 000000000000..094d2fc1f60f --- /dev/null +++ b/net-libs/miniupnpc/miniupnpc-2.0.20161216.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ~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 +} |