From cdf5cca3d0be8fdaf05a0cc14626669c100bebff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 2 Oct 2015 09:07:54 +0200 Subject: net-libs/miniupnpc: Install missing header file Package-Manager: portage-2.2.20 --- .../miniupnpc/miniupnpc-1.9.20150917-r1.ebuild | 59 ++++++++++++++++++++++ net-libs/miniupnpc/miniupnpc-1.9.20150917.ebuild | 54 -------------------- 2 files changed, 59 insertions(+), 54 deletions(-) create mode 100644 net-libs/miniupnpc/miniupnpc-1.9.20150917-r1.ebuild delete mode 100644 net-libs/miniupnpc/miniupnpc-1.9.20150917.ebuild (limited to 'net-libs/miniupnpc') diff --git a/net-libs/miniupnpc/miniupnpc-1.9.20150917-r1.ebuild b/net-libs/miniupnpc/miniupnpc-1.9.20150917-r1.ebuild new file mode 100644 index 00000000000..0b88b59c188 --- /dev/null +++ b/net-libs/miniupnpc/miniupnpc-1.9.20150917-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib 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/14" +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() { + epatch_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 $(use static-libs && echo upnpc-static) +} + +src_test() { + emake -j1 HAVE_IPV6=$(usex ipv6 yes no) check +} + +src_install() { + emake \ + PREFIX="${D}" \ + INSTALLDIRLIB="${D}usr/$(get_libdir)" \ + install + + # oh no, a missing header! fixed upstream: + # https://github.com/miniupnp/miniupnp/commit/1315c473539d03 + insinto /usr/include/miniupnpc + doins upnpdev.h + + dodoc README Changelog.txt +} diff --git a/net-libs/miniupnpc/miniupnpc-1.9.20150917.ebuild b/net-libs/miniupnpc/miniupnpc-1.9.20150917.ebuild deleted file mode 100644 index 5aa860c22d1..00000000000 --- a/net-libs/miniupnpc/miniupnpc-1.9.20150917.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils multilib 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/14" -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() { - epatch_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 $(use static-libs && echo upnpc-static) -} - -src_test() { - emake -j1 HAVE_IPV6=$(usex ipv6 yes no) check -} - -src_install() { - emake \ - PREFIX="${D}" \ - INSTALLDIRLIB="${D}usr/$(get_libdir)" \ - install - - dodoc README Changelog.txt -} -- cgit v1.2.1