aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <della5@iinet.com.au>2012-05-10 19:42:50 +0800
committerIan Delaney <della5@iinet.com.au>2012-05-10 19:42:50 +0800
commit928af62e6e1e935788b871dcf2a56d3971ade6e0 (patch)
treebef1c74e0c8be1549fe5344e08e04ead5912e303
parent[dev-python/isodate] fixed; use of unittest2 (diff)
downloadimprovise-928af62e6e1e935788b871dcf2a56d3971ade6e0.tar.gz
improvise-928af62e6e1e935788b871dcf2a56d3971ade6e0.tar.bz2
improvise-928af62e6e1e935788b871dcf2a56d3971ade6e0.zip
[dev-python/django-evolution] Reduced && refined 0.6.7.ebuild
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
-rw-r--r--dev-python/django-evolution/django-evolution-0.6.7.ebuild31
1 files changed, 14 insertions, 17 deletions
diff --git a/dev-python/django-evolution/django-evolution-0.6.7.ebuild b/dev-python/django-evolution/django-evolution-0.6.7.ebuild
index 676480d..54512b0 100644
--- a/dev-python/django-evolution/django-evolution-0.6.7.ebuild
+++ b/dev-python/django-evolution/django-evolution-0.6.7.ebuild
@@ -9,18 +9,19 @@ RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils eutils
-MY_P="django_evolution"
-MY_PN="${MY_P}-${PV}"
+MY_P=${PN/-/_}-${PV}
+
+#MY_PN="${MY_P}-${PV}"
DESCRIPTION="A Django application that will run cron jobs for other django apps"
HOMEPAGE="http://code.google.com/p/django-evolution/ http://pypi.python.org/pypi/django_evolution/"
-SRC_URI="mirror://pypi/${PN:0:1}/${MY_P}/${MY_PN}.tar.gz"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_P}/${MY_P}.tar.gz"
KEYWORDS="~amd64 ~x86"
IUSE=""
LICENSE="BSD"
SLOT="0"
PYTHON_MODNAME="django_evolution"
-S="${WORKDIR}/${MY_PN}"
+S="${WORKDIR}/${MY_P}"
RDEPEND=""
DEPEND="${RDEPEND}
@@ -34,19 +35,15 @@ src_test() {
python_execute_function testing
}
-src_install() {
- # Rename & remove files to avoid file collisions
- adjust() {
- pushd build-${PYTHON_ABI}/lib/tests/ > /dev/null
- for item in run-pyflakes.py runtests.py settings.py;
- do
- mv $item _$item
- done
- einfo "moved 3 files to avoid collisions" || die
- rm __init__.py || die
- popd > /dev/null
- }
- python_execute_function adjust
+src_install() { distutils_src_install
+ # Optional message
+ local msg="Remove tests to avoid file collisions"
distutils_src_install
+
+ rmtests() {
+ rm -rf ${ED}/$(python_get_sitedir)/tests/ || die
+ }
+# python_execute_function rmtests
+ python_execute_function --action-message "${msg}" rmtests
dodoc docs/*
}