summaryrefslogtreecommitdiff
blob: 57847c9c34548847a1b657d5c1b8db760e6a5d40 (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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/miniupnpc/miniupnpc-1.6.ebuild,v 1.2 2012/02/21 08:29:34 patrick Exp $

EAPI=3
SUPPORT_PYTHON_ABIS=1
PYTHON_DEPEND=2
RESTRICT_PYTHON_ABIS="3.* *-jython"

inherit base distutils

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=""

RDEPEND="|| ( >=net-libs/miniupnpc-1.6-r1
		net-libs/miniupnpc[-python] )
	!net-libs/miniupnpc[python]"
DEPEND="${RDEPEND}"

src_prepare() {
	local PATCHES=(
		"${FILESDIR}"/0001-Link-Python-module-against-the-shared-library.patch
	)

	base_src_prepare
	distutils_src_prepare

	# these will conflict with base miniupnpc ebuild
	# and distutils.eclass is stupid enough to force installing them
	rm -f Changelog.txt README || die
}