Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/line_profiler/
Date: Wed, 23 Sep 2015 10:20:03
Message-Id: 1442990576.ec6467ba827183d75a60172cef8165a1d7fa67a7.jlec@gentoo
1 commit: ec6467ba827183d75a60172cef8165a1d7fa67a7
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Wed Sep 23 06:42:56 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 23 06:42:56 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ec6467ba
7
8 dev-python/line_profiler: Replace symlink
9
10 dev-python/line_profiler/line_profiler-1.0.ebuild | 30 +++++++++++++++++++++-
11 dev-python/line_profiler/line_profiler-9999.ebuild | 11 ++------
12 2 files changed, 31 insertions(+), 10 deletions(-)
13
14 diff --git a/dev-python/line_profiler/line_profiler-1.0.ebuild b/dev-python/line_profiler/line_profiler-1.0.ebuild
15 deleted file mode 120000
16 index fb2359a..0000000
17 --- a/dev-python/line_profiler/line_profiler-1.0.ebuild
18 +++ /dev/null
19 @@ -1 +0,0 @@
20 -line_profiler-9999.ebuild
21 \ No newline at end of file
22
23 diff --git a/dev-python/line_profiler/line_profiler-1.0.ebuild b/dev-python/line_profiler/line_profiler-1.0.ebuild
24 new file mode 100644
25 index 0000000..bec34f5
26 --- /dev/null
27 +++ b/dev-python/line_profiler/line_profiler-1.0.ebuild
28 @@ -0,0 +1,29 @@
29 +# Copyright 1999-2015 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=5
34 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Line-by-line profiling for Python"
39 +HOMEPAGE="https://github.com/rkern/line_profiler"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +KEYWORDS="~amd64"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +IUSE="test"
46 +
47 +DEPEND="
48 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
49 + "
50 +
51 +python_test() {
52 + distutils_install_for_testing
53 + cd "${TEST_DIR}"/lib || die
54 + cp "${S}"/setup.py "${TEST_DIR}"/lib/ || die
55 + cp -r "${S}"/tests "${TEST_DIR}"/lib/ || die
56 + py.test || die
57 +}
58
59 diff --git a/dev-python/line_profiler/line_profiler-9999.ebuild b/dev-python/line_profiler/line_profiler-9999.ebuild
60 index 51b1bd9..52f8cef 100644
61 --- a/dev-python/line_profiler/line_profiler-9999.ebuild
62 +++ b/dev-python/line_profiler/line_profiler-9999.ebuild
63 @@ -5,18 +5,11 @@
64 EAPI=5
65 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
66
67 -inherit distutils-r1
68 +inherit distutils-r1 git-r3
69
70 DESCRIPTION="Line-by-line profiling for Python"
71 HOMEPAGE="https://github.com/rkern/line_profiler"
72 -
73 -if [ ${PV} == "9999" ] ; then
74 - inherit git-r3
75 - EGIT_REPO_URI="https://github.com/rkern/${PN}.git git://github.com/rkern/${PN}.git"
76 -else
77 - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
78 - KEYWORDS="~amd64"
79 -fi
80 +EGIT_REPO_URI="https://github.com/rkern/${PN}.git git://github.com/rkern/${PN}.git"
81
82 LICENSE="BSD"
83 SLOT="0"