diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-05-24 00:58:22 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-05-24 00:58:22 +0000 |
commit | e4a242b610dbcd76b716a895e348733774738957 (patch) | |
tree | 2b0dd5a1a393889b35ff12018907a82b06983401 | |
parent | old (diff) | |
download | gentoo-2-e4a242b610dbcd76b716a895e348733774738957.tar.gz gentoo-2-e4a242b610dbcd76b716a895e348733774738957.tar.bz2 gentoo-2-e4a242b610dbcd76b716a895e348733774738957.zip |
Version bump as required by net-p2p/transmission >= 2.52. Build static archive only when requested by USE="static-libs" since it's meant to be controlling building, not only installing.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
-rw-r--r-- | net-libs/miniupnpc/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/miniupnpc/miniupnpc-1.6.20120509.ebuild | 39 |
2 files changed, 48 insertions, 1 deletions
diff --git a/net-libs/miniupnpc/ChangeLog b/net-libs/miniupnpc/ChangeLog index 9edbb72474a3..977048a87f48 100644 --- a/net-libs/miniupnpc/ChangeLog +++ b/net-libs/miniupnpc/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-libs/miniupnpc # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v 1.21 2012/05/24 00:17:05 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v 1.22 2012/05/24 00:58:22 ssuominen Exp $ + +*miniupnpc-1.6.20120509 (24 May 2012) + + 24 May 2012; Samuli Suominen <ssuominen@gentoo.org> + +miniupnpc-1.6.20120509.ebuild: + Version bump as required by net-p2p/transmission >= 2.52. Build static + archive only when requested by USE="static-libs" since it's meant to be + controlling building, not only installing. 24 May 2012; Samuli Suominen <ssuominen@gentoo.org> -miniupnpc-1.5.ebuild: old diff --git a/net-libs/miniupnpc/miniupnpc-1.6.20120509.ebuild b/net-libs/miniupnpc/miniupnpc-1.6.20120509.ebuild new file mode 100644 index 000000000000..dcb81fbdb2b6 --- /dev/null +++ b/net-libs/miniupnpc/miniupnpc-1.6.20120509.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/miniupnpc-1.6.20120509.ebuild,v 1.1 2012/05/24 00:58:22 ssuominen Exp $ + +EAPI=4 +inherit 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" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="kernel_linux static-libs" + +RDEPEND="" +DEPEND="kernel_linux? ( sys-apps/lsb-release sys-apps/which )" + +src_prepare() { + sed -i -e '/CFLAGS.*-O/d' Makefile || die + + if ! use static-libs; then + sed -i \ + -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \ + -e '/$(INSTALL) -m 644 $(LIBRARY) $(INSTALLDIRLIB)/d' \ + Makefile || die + fi +} + +src_compile() { + tc-export CC + emake upnpc-shared $(use static-libs && echo upnpc-static) +} + +src_install() { + emake PREFIX="${D}" INSTALLDIRLIB="${D}/usr/$(get_libdir)" install + dodoc Changelog.txt +} |