summaryrefslogtreecommitdiff
blob: cc90e4d83188d2e8ebac262e34e679841866f80e (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
30
31
32
33
34
35
36
37
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
SUPPORT_PYTHON_ABIS=1
PYTHON_DEPEND="python? 2"
RESTRICT_PYTHON_ABIS="3.*"

inherit distutils eutils python toolchain-funcs

DESCRIPTION="UPnP client library and a simple UPnP client"
SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
HOMEPAGE="http://miniupnp.free.fr/"

LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="python"

src_prepare() {
	epatch "${FILESDIR}"/${P}-cflags.diff
	use python && distutils_src_prepare
}

src_compile() {
	tc-export CC
	emake || die
	use python && distutils_src_compile
}

src_install() {
	emake PREFIX="${D}" install || die "install failed"
	dodoc README Changelog.txt || die "install failed"
	doman man3/* || die "install failed"
	use python && distutils_src_install
}