From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-python/restkit/Manifest | 1 + dev-python/restkit/files/setup.patch | 23 +++++++++++++++ dev-python/restkit/metadata.xml | 15 ++++++++++ dev-python/restkit/restkit-4.2.2.ebuild | 51 +++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 dev-python/restkit/Manifest create mode 100644 dev-python/restkit/files/setup.patch create mode 100644 dev-python/restkit/metadata.xml create mode 100644 dev-python/restkit/restkit-4.2.2.ebuild (limited to 'dev-python/restkit') diff --git a/dev-python/restkit/Manifest b/dev-python/restkit/Manifest new file mode 100644 index 000000000000..8f3fdd140ed1 --- /dev/null +++ b/dev-python/restkit/Manifest @@ -0,0 +1 @@ +DIST restkit-4.2.2.tar.gz 1275904 SHA256 c0bda8eb7c643b5e818b612dab49121393abc8589c6cbe9b84085079d598599d SHA512 5ed08535e1a54b5594d97b059d8662ab4bc19c68e71a30719c4a533cba0f2d0e18872119752c62136563a32281e8f747414fbf843fd97dba138107ffcb5d1e4b WHIRLPOOL 6a6e336fc1ce5a6499a9886d6a131d7b9e117323467da62ff11278ae1713254d7ebc05a71221ccb9b3f092999902a94282397b9aa983c89758e39221d9dbee96 diff --git a/dev-python/restkit/files/setup.patch b/dev-python/restkit/files/setup.patch new file mode 100644 index 000000000000..cfa8959539e1 --- /dev/null +++ b/dev-python/restkit/files/setup.patch @@ -0,0 +1,23 @@ +diff -ur restkit-4.2.2.org/setup.py restkit-4.2.2/setup.py +--- setup.py 2013-08-30 23:07:36.000000000 +0800 ++++ setup.py 2015-01-16 21:38:04.342084550 +0800 +@@ -38,11 +38,6 @@ + with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: + long_description = f.read() + +- DATA_FILES = [ +- ('restkit', ["LICENSE", "MANIFEST.in", "NOTICE", "README.rst", +- "THANKS", "TODO.txt"]) +- ] +- + options=dict( + name = 'restkit', + version = version.__version__, +@@ -54,7 +49,6 @@ + url = 'http://benoitc.github.com/restkit', + classifiers = CLASSIFIERS, + packages = find_packages(exclude=['tests']), +- data_files = DATA_FILES, + scripts = SCRIPTS, + zip_safe = False, + entry_points = { diff --git a/dev-python/restkit/metadata.xml b/dev-python/restkit/metadata.xml new file mode 100644 index 000000000000..b3dc00ef318c --- /dev/null +++ b/dev-python/restkit/metadata.xml @@ -0,0 +1,15 @@ + + + + + dev-zero@gentoo.org + Tiziano Müller + + + Install the restcli command line interface/tool, based on dev-python/ipython + + + restkit + benoitc/restkit + + diff --git a/dev-python/restkit/restkit-4.2.2.ebuild b/dev-python/restkit/restkit-4.2.2.ebuild new file mode 100644 index 000000000000..bca76a22e0ae --- /dev/null +++ b/dev-python/restkit/restkit-4.2.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 pypy ) + +inherit distutils-r1 + +DESCRIPTION="A HTTP ressource kit for Python" +HOMEPAGE="http://github.com/benoitc/restkit" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86" +IUSE="+cli doc examples test" + +PY27_USEDEP="$(python_gen_usedep python2_7)" +RDEPEND="cli? ( dev-python/ipython[${PY27_USEDEP}] ) + dev-python/webob[${PYTHON_USEDEP}] + >=dev-python/socketpool-0.5.3[${PYTHON_USEDEP}] + >=dev-python/http-parser-0.8.3[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/epydoc[${PY27_USEDEP}] ) + test? ( ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] )" + +# prevent duplicate install of data files +PATCHES=( "${FILESDIR}"/setup.patch ) + +python_compile_all() { + if use doc ; then + pushd doc > /dev/null + emake html + popd > /dev/null + fi +} + +python_test() { + nosetests tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use cli || rm "${D}"/usr/bin/restcli* || die + use doc && local HTML_DOCS=( doc/_build/html/. ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} -- cgit v1.2.3-65-gdbad