1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_DEPEND="python? 2"
8 RESTRICT_PYTHON_ABIS="3.*"
10 inherit distutils eutils python toolchain-funcs
12 DESCRIPTION="UPnP client library and a simple UPnP client"
13 SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
14 HOMEPAGE="http://miniupnp.free.fr/"
17 KEYWORDS="~amd64 ~x86"
22 epatch "${FILESDIR}"/${P}-cflags.diff
23 use python && distutils_src_prepare
29 use python && distutils_src_compile
33 emake PREFIX="${D}" install || die "install failed"
34 dodoc README Changelog.txt || die "install failed"
35 doman man3/* || die "install failed"
36 use python && distutils_src_install