commit:     ec6467ba827183d75a60172cef8165a1d7fa67a7
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Sep 23 06:42:56 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Sep 23 06:42:56 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=ec6467ba

dev-python/line_profiler: Replace symlink

 dev-python/line_profiler/line_profiler-1.0.ebuild  | 30 +++++++++++++++++++++-
 dev-python/line_profiler/line_profiler-9999.ebuild | 11 ++------
 2 files changed, 31 insertions(+), 10 deletions(-)

diff --git a/dev-python/line_profiler/line_profiler-1.0.ebuild 
b/dev-python/line_profiler/line_profiler-1.0.ebuild
deleted file mode 120000
index fb2359a..0000000
--- a/dev-python/line_profiler/line_profiler-1.0.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-line_profiler-9999.ebuild
\ No newline at end of file

diff --git a/dev-python/line_profiler/line_profiler-1.0.ebuild 
b/dev-python/line_profiler/line_profiler-1.0.ebuild
new file mode 100644
index 0000000..bec34f5
--- /dev/null
+++ b/dev-python/line_profiler/line_profiler-1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="Line-by-line profiling for Python"
+HOMEPAGE="https://github.com/rkern/line_profiler";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+KEYWORDS="~amd64"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+DEPEND="
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )
+       "
+
+python_test() {
+       distutils_install_for_testing
+       cd "${TEST_DIR}"/lib || die
+       cp "${S}"/setup.py "${TEST_DIR}"/lib/ || die
+       cp -r "${S}"/tests "${TEST_DIR}"/lib/ || die
+       py.test || die
+}

diff --git a/dev-python/line_profiler/line_profiler-9999.ebuild 
b/dev-python/line_profiler/line_profiler-9999.ebuild
index 51b1bd9..52f8cef 100644
--- a/dev-python/line_profiler/line_profiler-9999.ebuild
+++ b/dev-python/line_profiler/line_profiler-9999.ebuild
@@ -5,18 +5,11 @@
 EAPI=5
 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
 
-inherit distutils-r1
+inherit distutils-r1 git-r3
 
 DESCRIPTION="Line-by-line profiling for Python"
 HOMEPAGE="https://github.com/rkern/line_profiler";
-
-if [ ${PV} == "9999" ] ; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/rkern/${PN}.git 
git://github.com/rkern/${PN}.git"
-else
-       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-       KEYWORDS="~amd64"
-fi
+EGIT_REPO_URI="https://github.com/rkern/${PN}.git 
git://github.com/rkern/${PN}.git"
 
 LICENSE="BSD"
 SLOT="0"

Reply via email to