diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/restkit |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/restkit')
-rw-r--r-- | dev-python/restkit/Manifest | 6 | ||||
-rw-r--r-- | dev-python/restkit/files/setup.patch | 23 | ||||
-rw-r--r-- | dev-python/restkit/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/restkit/restkit-4.2.2.ebuild | 50 |
4 files changed, 94 insertions, 0 deletions
diff --git a/dev-python/restkit/Manifest b/dev-python/restkit/Manifest new file mode 100644 index 000000000000..9d1383a8f00c --- /dev/null +++ b/dev-python/restkit/Manifest @@ -0,0 +1,6 @@ +AUX setup.patch 843 SHA256 0499f32d84001db049fbff5f1737bc0c4e23624d161e5090ab022225602fbda1 SHA512 200c112cb264271d8c1f043acb22ac476d09a0fc325b74658a950939f71edb8fad84a0fbc5f11335152fe5591be98a14df63f57458b84d35c2511a2079778387 WHIRLPOOL 930ce34c70d9d2093b2002e8e97bf8a9603eb5965211620552d7684da4a0a5578cafe873190914cdccb60eaf72a41ac16ed6bbd449a8b167dd03bed94073f13e +DIST restkit-4.2.2.tar.gz 1275904 SHA256 c0bda8eb7c643b5e818b612dab49121393abc8589c6cbe9b84085079d598599d SHA512 5ed08535e1a54b5594d97b059d8662ab4bc19c68e71a30719c4a533cba0f2d0e18872119752c62136563a32281e8f747414fbf843fd97dba138107ffcb5d1e4b WHIRLPOOL 6a6e336fc1ce5a6499a9886d6a131d7b9e117323467da62ff11278ae1713254d7ebc05a71221ccb9b3f092999902a94282397b9aa983c89758e39221d9dbee96 +EBUILD restkit-4.2.2.ebuild 1302 SHA256 a95d7400b5eeae69d9e021d9084429004619a8eac1054491ed26f79df0ba2588 SHA512 83822a9eae558476d2f9eb46c125df75d0ffda07638b9d4b54e4fc8c88186f3fc9f03b04727fb283b31aac8f177266e7ee46593747e6874da591733c403813f8 WHIRLPOOL 0eb1bd987236a1a84b9a038bbed8b5d747841d76829c1ce62cf9d3ab1703707e8e44adc8c921b102a6aa037a8eae359dd07bc79419bd06b78bc0c95b83ebe910 +MISC ChangeLog 2590 SHA256 3585b6c1d4a182e05bfaaa4023818811d40c02510530832e1618fa771c4a6d40 SHA512 6b5d2f9f2b944b499019dca5f0127837605e126f7aa7015d2b9d9b02968e3cd33c7462f6504ac74d64b592d1c9ce933a47303f75914285d14f48358424ea0427 WHIRLPOOL 627c8dba71dbe26001d40e05fd606556d57b97f17894ce9fc54980b664d047d6de252dd4445179a5902ecd270f9cfb5eeea681eba0d8d7ed2057db2cc4ab6c63 +MISC ChangeLog-2015 4231 SHA256 f17e70d999b3c94a6582be714d49ca1ace33141c184bbd05cfd551dea5744995 SHA512 bd08e6328c8eb034eb739adf9479d3150dc0f4f5b8e309fb751204fdce4604b0bae4cd970e524c842544bd8bf93349479dfdb86440c7d9b9c9d87f5248ef1f93 WHIRLPOOL 5290cbf4da5ccec6b8ece3467b4438a96f472930ed675549574ae00d54f8f05aab5688fc8b8b8323b639078c2cc5028399c6a1206bc0f8e34d22a9408f6dd6f9 +MISC metadata.xml 520 SHA256 dab5fa43393d34719d14818ca8c881f97fd2b9523baa1c317ea0158434e87b06 SHA512 6e5652c44b93cb00a07485b337e4be168e0728ee49485692bb6b3cdc5725f78191ca891059197f3665a9f1ac1f65074843b7a2fa7cfc4ef0d92d52033f685acb WHIRLPOOL 8402f673a9e08a95b86cb5c69dc53cb99f99e9fac1cfcec1934bb95dfefc9a88a57a54f8dab82e0a9d1b4e21e300250765cda8be4904ffcd4a96509cd69d4f5a 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..6322e79afeb5 --- /dev/null +++ b/dev-python/restkit/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>dev-zero@gentoo.org</email> + <name>Tiziano Müller</name> + </maintainer> + <use> + <flag name="cli">Install the restcli command line interface/tool, based on <pkg>dev-python/ipython</pkg></flag> + </use> + <upstream> + <remote-id type="pypi">restkit</remote-id> + <remote-id type="github">benoitc/restkit</remote-id> + </upstream> +</pkgmetadata> 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..0302d85a8b47 --- /dev/null +++ b/dev-python/restkit/restkit-4.2.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 pypy ) + +inherit distutils-r1 + +DESCRIPTION="A HTTP ressource kit for Python" +HOMEPAGE="https://github.com/benoitc/restkit" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ppc64 ~s390 ~sh 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 +} |