commit:     885ad128e0e797732b642b92f6d48693ae3bbe1a
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Aug 26 07:55:31 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 07:55:31 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=885ad128

dev-python/line_profiler: New ebuild wirtten by me

Package-Manager: portage-2.2.20.1

 dev-python/line_profiler/ChangeLog                 | 10 +++++++
 dev-python/line_profiler/line_profiler-1.0.ebuild  |  1 +
 dev-python/line_profiler/line_profiler-9999.ebuild | 35 ++++++++++++++++++++++
 dev-python/line_profiler/metadata.xml              | 18 +++++++++++
 4 files changed, 64 insertions(+)

diff --git a/dev-python/line_profiler/ChangeLog 
b/dev-python/line_profiler/ChangeLog
new file mode 100644
index 0000000..61d0896
--- /dev/null
+++ b/dev-python/line_profiler/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/line_profiler
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Id$
+
+*line_profiler-1.0 (26 Aug 2015)
+*line_profiler-9999 (26 Aug 2015)
+
+  26 Aug 2015; Marius Brehler <[email protected]>
+  +line_profiler-1.0.ebuild, +line_profiler-9999.ebuild, +metadata.xml:
+  dev-python/line_profiler: New ebuild wirtten by me

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 120000
index 0000000..fb2359a
--- /dev/null
+++ b/dev-python/line_profiler/line_profiler-1.0.ebuild
@@ -0,0 +1 @@
+line_profiler-9999.ebuild
\ No newline at end of file

diff --git a/dev-python/line_profiler/line_profiler-9999.ebuild 
b/dev-python/line_profiler/line_profiler-9999.ebuild
new file mode 100644
index 0000000..51b1bd9
--- /dev/null
+++ b/dev-python/line_profiler/line_profiler-9999.ebuild
@@ -0,0 +1,35 @@
+# 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";
+
+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
+
+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/metadata.xml 
b/dev-python/line_profiler/metadata.xml
new file mode 100644
index 0000000..ea55839
--- /dev/null
+++ b/dev-python/line_profiler/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>sci</herd>
+  <maintainer>
+    <email>[email protected]</email>
+    <name>Marius Brehler</name>
+  </maintainer>
+  <longdescription>
+    line_profiler is a module for doing line-by-line profiling of
+    functions. kernprof is a convenient script for running either
+    line_profiler or the Python standard library's cProfile or profile
+    modules, depending on what is available.
+  </longdescription>
+  <upstream>
+    <remote-id type="pypi">line_profiler</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to