summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2010-10-14 15:16:45 +0000
committerPeter Volkov <pva@gentoo.org>2010-10-14 15:16:45 +0000
commit0e4a8bc5a425aed0b170c0a0be98dd9a70e7bd62 (patch)
tree169ccb9f7383e58e16ee93813ccd2fd9587092a3 /net-libs/miniupnpc
parentstable x86, bug 337711 (diff)
downloadgentoo-2-0e4a8bc5a425aed0b170c0a0be98dd9a70e7bd62.tar.gz
gentoo-2-0e4a8bc5a425aed0b170c0a0be98dd9a70e7bd62.tar.bz2
gentoo-2-0e4a8bc5a425aed0b170c0a0be98dd9a70e7bd62.zip
Fix OS detection (added dependency on sys-apps/lsb-release), thank Nikoli for digging this.
(Portage version: 2.1.9.18/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/miniupnpc')
-rw-r--r--net-libs/miniupnpc/ChangeLog9
-rw-r--r--net-libs/miniupnpc/miniupnpc-1.4.20100609-r1.ebuild67
2 files changed, 75 insertions, 1 deletions
diff --git a/net-libs/miniupnpc/ChangeLog b/net-libs/miniupnpc/ChangeLog
index 9ee7193ad417..d583dd987121 100644
--- a/net-libs/miniupnpc/ChangeLog
+++ b/net-libs/miniupnpc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-libs/miniupnpc
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v 1.1 2010/09/15 08:40:36 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/ChangeLog,v 1.2 2010/10/14 15:16:45 pva Exp $
+
+*miniupnpc-1.4.20100609-r1 (14 Oct 2010)
+
+ 14 Oct 2010; Peter Volkov <pva@gentoo.org>
+ +miniupnpc-1.4.20100609-r1.ebuild:
+ Fix OS detection (added dependency on sys-apps/lsb-release), thank Nikoli
+ for digging this.
*miniupnpc-1.4.20100609 (15 Sep 2010)
diff --git a/net-libs/miniupnpc/miniupnpc-1.4.20100609-r1.ebuild b/net-libs/miniupnpc/miniupnpc-1.4.20100609-r1.ebuild
new file mode 100644
index 000000000000..e0d5f64ee896
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-1.4.20100609-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/miniupnpc/miniupnpc-1.4.20100609-r1.ebuild,v 1.1 2010/10/14 15:16:45 pva Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_DEPEND="python? 2"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils 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 ~x86"
+IUSE="python static-libs"
+
+DEPEND="sys-apps/lsb-release"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-Respect-LDFLAGS.patch"
+ epatch "${FILESDIR}/0003-Move-non-used-and-non-installed-test-executables-to-.patch"
+ epatch "${FILESDIR}/0004-Move-minixml-validation-test-to-check-target.patch"
+
+ sed \
+ -e 's/^CFLAGS ?= -O -Wall /CFLAGS += /' \
+ -i Makefile
+
+ if use !static-libs; then
+ sed \
+ -e '/FILESTOINSTALL =/s/ $(LIBRARY)//' \
+ -e '/$(INSTALL) -m 644 $(LIBRARY) $(INSTALLDIRLIB)/d' \
+ -i Makefile
+ fi
+
+ use python && distutils_src_prepare
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) || die
+
+ use python && distutils_src_compile
+}
+
+src_install() {
+ emake \
+ PREFIX="${D}" \
+ INSTALLDIRLIB="${D}usr/$(get_libdir)" \
+ install || die
+
+ dodoc README Changelog.txt || die
+ doman man3/* || die
+
+ use python && distutils_src_install
+}
+
+pkg_postinst() {
+ use python && distutils_pkg_postinst
+}
+
+pkg_postrm() {
+ use python && distutils_pkg_postrm
+}