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/python-gflags |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-gflags')
-rw-r--r-- | dev-python/python-gflags/Manifest | 6 | ||||
-rw-r--r-- | dev-python/python-gflags/files/python-gflags-3.1.1-script-install.patch | 33 | ||||
-rw-r--r-- | dev-python/python-gflags/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/python-gflags/python-gflags-3.1.1.ebuild | 34 |
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/python-gflags/Manifest b/dev-python/python-gflags/Manifest new file mode 100644 index 000000000000..36ec6dbc4170 --- /dev/null +++ b/dev-python/python-gflags/Manifest @@ -0,0 +1,6 @@ +AUX python-gflags-3.1.1-script-install.patch 1178 SHA256 ee6a136213b2488ff8e32fb70fee2ca75b95d4621242449abb774bab8172ab01 SHA512 7247303c33a845949b1db7104f3170497da980334cb02155501d194eb53eb61ae2231cd4ece06194ca64514271252f8f1fc7c7683cbff2bb8f96d6d4e88123d5 WHIRLPOOL 0864c0243f713b2a95dfe9b41daab7a0fe9e1df9dc23eeba212312b95acb3594efb0dee45f11e485c6b800ac83d4c5bf0e17310debf204cdf4e1617c8da44676 +DIST python-gflags-3.1.1.tar.gz 52633 SHA256 aaff6449ca74320c709052e4664a52337832b2338f4a4267088564f3e98f6c63 SHA512 28009cdc09b94b416af5237d3897d6ab516cc3b6a3eed18a31adb8c199f31a8c7d07b1d69794cb37de84b50eefbde1de57f9f0afaeac0a4747b352f4024ef12c WHIRLPOOL 2b0bdc5150b87d98c07431203c57aa94e535b564ab4cd3a2e307b9d5030360e06172853c9497895c5b42cc5058ac9c4b73d10db14e935f2569693b86cec7de05 +EBUILD python-gflags-3.1.1.ebuild 856 SHA256 ff2d19915e9dc41711c66abd63cb50f6c792f8e42f976bc08070ecbaa0d9b5c9 SHA512 380ec4ea584144f6e7e111283a1ecb08eff940ee13d27dded5ba798bccd8f2bf8c6906c229bddffb764b252d38ab9fa5855b64b8bec658ccdc92d02f34c2ef6a WHIRLPOOL e470e26d5d72a3f9c6f9838d2f6aac9f0374f22f50f63fa76cc7ecff5b537adcc60a39dd5e32d3d5c806516882238c7aab19a30898619b71126e8c6f2649fedd +MISC ChangeLog 4129 SHA256 6fc366b3b19c08b599ebbb87853a544c056b982a8d042aeca37d796055768a22 SHA512 832ef439a65b1cbbe1c64e56ca43696e0c61b362d38e871f094f8a1878ead670d423101f42a27ba8dcd9a8e9cfa5f993d1a8fc3251f77a9da9d6a6b193b150df WHIRLPOOL b5638176077e93cd159a5706015be7178ce78b950b23ed2948eb77eddd226f79db81f1f34ec75c5000c61fc03467935bcfe83d3261cc8f715ad9044629867329 +MISC ChangeLog-2015 4405 SHA256 dd6b6be96a58ce501cfffb918ea8f41665305aa2f9483727f82f7fa1967ae007 SHA512 edd2c1eeeb2d32ee5906f79ecc545b8e98d303b693b0eff4ad7e0dfc7701a5a50700a6c38ecc149cb4189f0718a9ee27d247b78e0fb2cad7d20c95117fcd274f WHIRLPOOL 72686afc36c69c755658e4da42b7623a47bbe632741ed008a99695fd6817eb09854f117b801116f5d48668db6066a75cef0e9b64891b084a64ba6e42f9e9f9b9 +MISC metadata.xml 376 SHA256 cb5aa6f6bf4dd742ee9fe4e8c160c62c5fcabb6df3e304131ffea4302df543b0 SHA512 acea21fc3fc83a3ab1a24f47ed7250c1ffc15ac4507c4c1472716a55b42fa0740b0a5d2eb20cc3dbfeacc575eed67d59b59e722e96dcbfc87672ddf9b9787c26 WHIRLPOOL 8f401ac745f4bbbddb696b050a2f04d4fb9b2c47c77b5db62f48c9ccdf7de87600e589e0994c35d51749938cf41d3e6e84fd7777f2b594fc9f5e71262df59fc3 diff --git a/dev-python/python-gflags/files/python-gflags-3.1.1-script-install.patch b/dev-python/python-gflags/files/python-gflags-3.1.1-script-install.patch new file mode 100644 index 000000000000..4fc791383092 --- /dev/null +++ b/dev-python/python-gflags/files/python-gflags-3.1.1-script-install.patch @@ -0,0 +1,33 @@ +From 3bc427f5ba0b612430066d5da0ba7a67252ebc75 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Tue, 9 May 2017 21:47:08 +0200 +Subject: [PATCH] setup.py: Install the script as 'scripts', rather than + 'data_files' + +Install the Python script using the 'scripts' key rather than +the 'data_files' hack. This ensures that it is installed +in the correct location (respecting install options) and its shebang +is updated to match the correct Python interpreter. + +This is the same patch as I've sent back in 2012, rebased on top +of the newest release. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 647db36..1f9e8cb 100644 +--- a/setup.py ++++ b/setup.py +@@ -39,7 +39,7 @@ setup(name='python-gflags', + author_email='google-gflags@googlegroups.com', + url='https://github.com/google/python-gflags', + packages=['gflags', 'gflags.third_party', 'gflags.third_party.pep257'], +- data_files=[('bin', ['gflags2man.py'])], ++ scripts=['gflags2man.py'], + requires=['six'], + classifiers=[ + 'Programming Language :: Python :: 2.7', +-- +2.13.0.rc2 + diff --git a/dev-python/python-gflags/metadata.xml b/dev-python/python-gflags/metadata.xml new file mode 100644 index 000000000000..6edd7784378b --- /dev/null +++ b/dev-python/python-gflags/metadata.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="github">google/python-gflags</remote-id> + <remote-id type="pypi">python-gflags</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-gflags/python-gflags-3.1.1.ebuild b/dev-python/python-gflags/python-gflags-3.1.1.ebuild new file mode 100644 index 000000000000..476bc2824667 --- /dev/null +++ b/dev-python/python-gflags/python-gflags-3.1.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 pypy ) + +inherit distutils-r1 + +DESCRIPTION="Google's Python argument parsing library" +HOMEPAGE="https://github.com/google/python-gflags" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~sparc ~s390 ~sh x86" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}]" + +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/${P}-script-install.patch +) + +python_test() { + # note: each test needs to be run separately, otherwise they fail + "${PYTHON}" -m gflags._helpers_test -v || die + "${PYTHON}" -m gflags.flags_formatting_test -v || die + "${PYTHON}" -m gflags.flags_unicode_literals_test -v || die +} |