diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild')
-rw-r--r-- | net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild b/net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild new file mode 100644 index 000000000000..4dea416d72bd --- /dev/null +++ b/net-libs/libnatpmp/libnatpmp-20140401-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit eutils toolchain-funcs multilib + +DESCRIPTION="An alternative protocol to UPnP IGD specification" +HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html" +SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="static-libs" + +src_prepare() { + epatch "${FILESDIR}"/respect-FLAGS-20140401.patch + epatch "${FILESDIR}"/respect-libdir-20120821.patch + use static-libs || epatch "${FILESDIR}"/remove-static-lib-20130911.patch + tc-export CC +} + +src_install() { + # Override HEADERS for missing declspec.h wrt #506832 + emake HEADERS='declspec.h natpmp.h' PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install + + dodoc Changelog.txt README + doman natpmpc.1 +} |