summaryrefslogtreecommitdiff
path: root/dev-python/sh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/sh
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/sh')
-rw-r--r--dev-python/sh/Manifest9
-rw-r--r--dev-python/sh/files/sh-1.12.9-python2-unicode-tests.patch22
-rw-r--r--dev-python/sh/metadata.xml22
-rw-r--r--dev-python/sh/sh-1.11-r1.ebuild25
-rw-r--r--dev-python/sh/sh-1.11.ebuild25
-rw-r--r--dev-python/sh/sh-1.12.9.ebuild29
6 files changed, 132 insertions, 0 deletions
diff --git a/dev-python/sh/Manifest b/dev-python/sh/Manifest
new file mode 100644
index 000000000000..dda48fd88371
--- /dev/null
+++ b/dev-python/sh/Manifest
@@ -0,0 +1,9 @@
+AUX sh-1.12.9-python2-unicode-tests.patch 674 SHA256 6efee7fb2669dcbd66847df042c740d10b4109e8742b24e76aafbbefdf657a29 SHA512 c33cc195c54232dc7790aba2b34750f623a00ada51f55fc5da3ff9979f2c83359a904e47c0c3ded9f016ff256fafe5099be824261d91af0603f2d714c01e2342 WHIRLPOOL 45013d97834a4ff8f05130f1b3cf34bd3e0e9bbc5f0ef8381beafb0f1d8b84ca8bfbf556e8f4758b6fb2b4dc6b393457996174241c721706227f0393284a85f0
+DIST sh-1.11.tar.gz 36821 SHA256 590fb9b84abf8b1f560df92d73d87965f1e85c6b8330f8a5f6b336b36f0559a4 SHA512 ccaf178384b5a609c00bb44796a6bec088750414385f19b2d8ffcb93cc8f5ddb6bf82fb966d2bf519651f6efed54258a3c6542a9827d01e6be64af8cb8f86d3d WHIRLPOOL 9d13a3364ec467b492fb5818ae00e3a02f81aa779319382450df76a3041efb047dac82bd249cb51bf819664a5e7a8f9def3a672b8eb2edaa24f2a2aa80d66129
+DIST sh-1.12.9.tar.gz 54077 SHA256 579aa19bae7fe86b607df1afaf4e8537c453d2ce3d84e1d3957e099359a51677 SHA512 378ebfe148de6d1fb0f6488a42a39570f1fde6bb2d3ce40cbe29a6920e102f4c31d38a686663e52b2968099d85a0b5867e112c5d53ca0a4527a2f2bc9e607d35 WHIRLPOOL af177f97f21db7df68a8645fc5da83721ae10961df1ff441a816b028bdd4177b1f197d541c91cb1542c4cedf19eb6bcd1ac0576ccd2cce8ec6d5e0e4e19adbb5
+EBUILD sh-1.11-r1.ebuild 512 SHA256 05c89a1277aad435eb4554cf6301647cab5abb753d8aa9f8128e3726c1e7f9f9 SHA512 5b96da77018fe1f8b5104ad20e22affc65b4b7a10f55909891d1b7a06b80c89c5c27d4e8f63a4c8386e6c52f0a5cff16ba603cc9f539168e14f03e33562f7e5b WHIRLPOOL d9ea1c0804b5251a8dd44581dad070cae6cb79b1da11e80057ad1c0325c7f009b1d57a1953577e597f2bae273c0380a349d26c41f6aa2e7a073aacf6929dad5c
+EBUILD sh-1.11.ebuild 508 SHA256 5c37c46f1be7d2173802e2c05e81b2228b83dc95058578036eeab7d604003b00 SHA512 54f6375f364482039f95fedf21ce556b9daa94302b1e36a06b733025b16411b9f01bc538bde5456d4b99d95b3a163a85e49781031971cb6589729ddc0ea41726 WHIRLPOOL 447f8626bc1e9972117be1f7b21bef822d2ee4de2821a395e5cfbb85fbdd0f6be6f5bd3c26b1e2029e27e5818de91bb8f1e65ad830e71cb629d72b38e2279cf0
+EBUILD sh-1.12.9.ebuild 580 SHA256 662cc3737628174e5473864545264e01f9fc0b5726262cf33a7f4417b8c3a376 SHA512 4f03c4674f5b06a513ba95d71348c6641dab0d26e0081a984717a7b4815e4db5016c73e726c08c6a4afe6c4fec32b3b675fb5fe22116212032fa9ee965f868aa WHIRLPOOL 48101bf29cc0c9c43a1dcac4a572d151e04d4a2ef5323cdddaac2b7bf75ae5773e1d322bfd214746d848543669edf2e8e77db562c9347835ddc4d21c438d7df7
+MISC ChangeLog 2725 SHA256 64e91e7c4d039965c9187e062b3be1547f556f8c1e3cd657e1096b865991d1ee SHA512 ad12e05303905a205ee36e24b931984e227f7ad5a51e9576200c8caaccc4c9c3eb7187021fae0c9a434d784f2d753d837c41b7630400d8bb5d74262e4607fe4b WHIRLPOOL a231402808c1d14d8c668c6cd47e8fd0a7d078fb70634fe601f3d9a2cf418c9597e096d73b7f74252dfba0835578f665b5848321dec95e9d7bfa31b2e2210bb0
+MISC ChangeLog-2015 1471 SHA256 552ed9f21c629cc8cdf058a5b7744498db1791ff4453a1bde966edae8c8ac9ec SHA512 bdeb7cdc37a57754fb106f5d3f94e0cef1ec34df4d65ca9168b3bb5160ca0fec2926e6ae056d35eb1c3bf730cf48c8c7aff46e3c9acd67f76b8309cddb27f5d6 WHIRLPOOL 75e950d9fcf054349b8de67ed5de45b4ad694cd89b9e4fa041e0a4820c16b02eca74b2ab31812410dc81471b0e59169b03f5bcc7495cea10c49de6369803033e
+MISC metadata.xml 676 SHA256 115ec46916929a26a3662ffc9783b6497af86f57a466076a7fd1276fb9f4cfee SHA512 4d4633de70608259eb2bb288af89992c90fe192258ac157d07f2d568922a88b497cf6a3e2961b266603089e55ce7cfcd7ae2831879ed9afce4c3c740479c2756 WHIRLPOOL 02ab243a49dae741e8cde1f61023d45988ad7bb657656278667cf865796cf8f1b3bc321a894e1c4e9b5043fd8b9007c99103d46ed91fd9a51b1792c0964519ca
diff --git a/dev-python/sh/files/sh-1.12.9-python2-unicode-tests.patch b/dev-python/sh/files/sh-1.12.9-python2-unicode-tests.patch
new file mode 100644
index 000000000000..230b16ae5fb1
--- /dev/null
+++ b/dev-python/sh/files/sh-1.12.9-python2-unicode-tests.patch
@@ -0,0 +1,22 @@
+diff --git a/test.py b/test.py
+index 78e00ab..0487594 100644
+--- a/test.py
++++ b/test.py
+@@ -502,7 +502,7 @@ for key in osx_cruft:
+ print(os.environ["HERP"] + " " + str(len(os.environ)))
+ """ % osx_cruft)
+ out = python(py.name, _env=env).strip()
+- self.assertEqual(out, "DERP 1")
++ self.assertEqual(out, u"DERP 12")
+
+ py = create_tmp_test("""
+ import os, sys
+@@ -515,7 +515,7 @@ for key in osx_cruft:
+ print(sh.HERP + " " + str(len(os.environ)))
+ """ % osx_cruft)
+ out = python(py.name, _env=env, _cwd=THIS_DIR).strip()
+- self.assertEqual(out, "DERP 1")
++ self.assertEqual(out, u"DERP 12")
+
+
+ def test_which(self):
diff --git a/dev-python/sh/metadata.xml b/dev-python/sh/metadata.xml
new file mode 100644
index 000000000000..07e719850609
--- /dev/null
+++ b/dev-python/sh/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <longdescription lang="en">
+ sh (previously pbs) is a full-fledged subprocess interface
+ for Python 2.6 - 3.2 that allows you to call any program
+ as if it were a function:
+
+ from sh import ifconfig
+ print ifconfig("eth0")
+
+ sh is not a collection of system commands implemented in Python.
+</longdescription>
+ <upstream>
+ <remote-id type="pypi">sh</remote-id>
+ <remote-id type="github">amoffat/sh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/sh/sh-1.11-r1.ebuild b/dev-python/sh/sh-1.11-r1.ebuild
new file mode 100644
index 000000000000..9bc359e57766
--- /dev/null
+++ b/dev-python/sh/sh-1.11-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=(python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python subprocess interface"
+HOMEPAGE="https://github.com/amoffat/sh"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_test() {
+ ${PYTHON} test.py || die
+}
diff --git a/dev-python/sh/sh-1.11.ebuild b/dev-python/sh/sh-1.11.ebuild
new file mode 100644
index 000000000000..a4e9e8ae7468
--- /dev/null
+++ b/dev-python/sh/sh-1.11.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=(python2_7 python3_4 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python subprocess interface"
+HOMEPAGE="https://github.com/amoffat/sh"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_test() {
+ ${PYTHON} test.py || die
+}
diff --git a/dev-python/sh/sh-1.12.9.ebuild b/dev-python/sh/sh-1.12.9.ebuild
new file mode 100644
index 000000000000..168127d102d9
--- /dev/null
+++ b/dev-python/sh/sh-1.12.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python subprocess interface"
+HOMEPAGE="https://github.com/amoffat/sh"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/sh-1.12.9-python2-unicode-tests.patch"
+)
+
+python_test() {
+ ${PYTHON} test.py || die
+}