blob: 483b07cde8a8c759449f8c9ac0a0585794711a1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnatpmp/libnatpmp-20131126.ebuild,v 1.1 2013/11/27 14:54:07 blueness Exp $
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-20130911.patch
epatch "${FILESDIR}"/respect-libdir-20120821.patch
use static-libs || epatch "${FILESDIR}"/remove-static-lib-20130911.patch
tc-export CC
}
src_install() {
emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
dodoc Changelog.txt README
doman natpmpc.1
}
|