blob: 7bfacd49241f987274145701a34e8568a8832871 (
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-2011 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.1 2011/08/09 17:41:19 mgorny Exp $
EAPI=3
SUPPORT_PYTHON_ABIS=1
PYTHON_DEPEND=2
RESTRICT_PYTHON_ABIS="3.*"
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
}
|