[dev-python/pylons] convert to distutils-r1, following upstream
This commit is contained in:
@@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit eutils distutils
|
||||
|
||||
MY_PN="Pylons"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Pylons Web Framework"
|
||||
HOMEPAGE="http://pylonshq.com/ http://pypi.python.org/pypi/Pylons"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="genshi jinja test"
|
||||
|
||||
RDEPEND=">=dev-python/beaker-1.3
|
||||
>=dev-python/decorator-2.3.2
|
||||
>=dev-python/formencode-1.2.1
|
||||
>=dev-python/mako-0.2.4
|
||||
>=dev-python/nose-0.10.4
|
||||
>=dev-python/paste-1.7.2
|
||||
>=dev-python/pastedeploy-1.3.3
|
||||
>=dev-python/pastescript-1.7.3
|
||||
>=dev-python/repoze-lru-0.3
|
||||
>=dev-python/routes-1.12
|
||||
>=dev-python/simplejson-2.0.8
|
||||
>=dev-python/tempita-0.2
|
||||
>=dev-python/weberror-0.10.1
|
||||
>=dev-python/webhelpers-0.6.4
|
||||
>=dev-python/webob-0.9.6.1
|
||||
>=dev-python/webtest-1.1
|
||||
genshi? ( >=dev-python/genshi-0.4.4 )
|
||||
jinja? ( >=dev-python/jinja-2 )"
|
||||
# Dependency on >=dev-python/coverage-2.85 and dev-python/genshi is not with Jython.
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools
|
||||
test? (
|
||||
>=dev-python/coverage-2.85
|
||||
dev-python/genshi
|
||||
>=dev-python/jinja-2.2.1
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# Sabayon: we need this
|
||||
epatch "${FILESDIR}/${P}-new-webob-support.patch"
|
||||
epatch "${FILESDIR}/${P}-new-webob-support-2.patch"
|
||||
|
||||
distutils_src_prepare
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="Pylons"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Pylons Web Framework"
|
||||
HOMEPAGE="http://pylonshq.com/ http://pypi.python.org/pypi/Pylons"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="genshi jinja test"
|
||||
|
||||
RDEPEND=">=dev-python/beaker-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/decorator-2.3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/formencode-1.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/mako-0.2.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-0.10.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/paste-1.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastescript-1.7.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/repoze-lru-0.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-1.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/simplejson-2.0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/tempita-0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/weberror-0.10.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/webhelpers-0.6.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-0.9.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/webtest-1.1[${PYTHON_USEDEP}]
|
||||
genshi? ( >=dev-python/genshi-0.4.4[${PYTHON_USEDEP}] )
|
||||
jinja? ( >=dev-python/jinja-2[${PYTHON_USEDEP}] )"
|
||||
# Dependency on >=dev-python/coverage-2.85 and dev-python/genshi is not with Jython.
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/coverage-2.85[${PYTHON_USEDEP}]
|
||||
dev-python/genshi[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.2.1[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-new-webob-support.patch"
|
||||
"${FILESDIR}/${P}-new-webob-support-2.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
nosetests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user