diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-05-31 11:45:36 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-05-31 11:45:36 +0000 |
commit | c5d00af1999bd34d23c780307a08e93b8c5f64bb (patch) | |
tree | 114d0962c2a785ddc1a3bea6d12b5fa9466d0bff /dev-python/pip | |
parent | Stable on amd64 wrt bug #368981 (diff) | |
download | gentoo-2-c5d00af1999bd34d23c780307a08e93b8c5f64bb.tar.gz gentoo-2-c5d00af1999bd34d23c780307a08e93b8c5f64bb.tar.bz2 gentoo-2-c5d00af1999bd34d23c780307a08e93b8c5f64bb.zip |
Initial import from sunrise (bug #317791). Thanks to Michail Denev for the initial ebuild work.
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pip')
-rw-r--r-- | dev-python/pip/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/pip/files/pip-1.0.1-unversioned.patch | 14 | ||||
-rw-r--r-- | dev-python/pip/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/pip/pip-1.0.1.ebuild | 49 |
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/pip/ChangeLog b/dev-python/pip/ChangeLog new file mode 100644 index 000000000000..913f0b46de80 --- /dev/null +++ b/dev-python/pip/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-python/pip +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pip/ChangeLog,v 1.1 2011/05/31 11:45:36 radhermit Exp $ + +*pip-1.0.1 (31 May 2011) + + 31 May 2011; Tim Harder <radhermit@gentoo.org> +pip-1.0.1.ebuild, + +files/pip-1.0.1-unversioned.patch, +metadata.xml: + Initial import from sunrise (bug #317791). Thanks to Michail Denev for the + initial ebuild work. + diff --git a/dev-python/pip/files/pip-1.0.1-unversioned.patch b/dev-python/pip/files/pip-1.0.1-unversioned.patch new file mode 100644 index 000000000000..a479813bac2c --- /dev/null +++ b/dev-python/pip/files/pip-1.0.1-unversioned.patch @@ -0,0 +1,14 @@ + setup.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +--- a/setup.py ++++ b/setup.py +@@ -48,7 +48,7 @@ setup(name="pip", + 'https://github.com/pypa/virtualenv/tarball/master#egg=virtualenv-1.5.2.post2', + ], + packages=['pip', 'pip.commands', 'pip.vcs'], +- entry_points=dict(console_scripts=['pip=pip:main', 'pip-%s=pip:main' % sys.version[:3]]), ++ entry_points=dict(console_scripts=['pip=pip:main']), + test_suite='nose.collector', + tests_require=['nose', 'virtualenv==1.5.2.post2', 'scripttest==1.1.1', 'mock'], + zip_safe=False) diff --git a/dev-python/pip/metadata.xml b/dev-python/pip/metadata.xml new file mode 100644 index 000000000000..ee7e8b2450a8 --- /dev/null +++ b/dev-python/pip/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> +</pkgmetadata> diff --git a/dev-python/pip/pip-1.0.1.ebuild b/dev-python/pip/pip-1.0.1.ebuild new file mode 100644 index 000000000000..58fb35512ac8 --- /dev/null +++ b/dev-python/pip/pip-1.0.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pip/pip-1.0.1.ebuild,v 1.1 2011/05/31 11:45:36 radhermit Exp $ + +EAPI="3" +PYTHON_DEPEND="*" +SUPPORT_PYTHON_ABIS="1" + +inherit bash-completion distutils eutils + +DESCRIPTION="Installs python packages -- replacement for easy_install" +HOMEPAGE="http://www.pip-installer.org/ http://pypi.python.org/pypi/pip/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="bash-completion zsh-completion" + +RDEPEND="dev-python/setuptools" +DEPEND="${RDEPEND}" + +# Tests require a couple libraries not yet in the tree, aren't bundled with +# the default tarball from pypi, and have a couple failures anyway +RESTRICT="test" + +DOCS="docs/configuration.txt docs/how-to-contribute.txt docs/index.txt + docs/news.txt docs/requirement-format.txt" + +src_prepare() { + epatch "${FILESDIR}"/${P}-unversioned.patch + distutils_src_prepare +} + +src_install() { + distutils_src_install + COMPLETION="${T}/completion.tmp" + + if use bash-completion ; then + "$(PYTHON -f)" pip/runner.py completion --bash > "${COMPLETION}" || die + dobashcompletion "${COMPLETION}" ${PN} + fi + + if use zsh-completion ; then + "$(PYTHON -f)" pip/runner.py completion --zsh > "${COMPLETION}" || die + insinto /usr/share/zsh/site-functions + newins "${COMPLETION}" _pip || die + fi +} |