From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/ruledispatch/Manifest | 6 +++ .../files/ruledispatch_as_syntax_fix.patch | 49 ++++++++++++++++++++++ dev-python/ruledispatch/metadata.xml | 8 ++++ .../ruledispatch-0.5_pre2306-r2.ebuild | 45 ++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 dev-python/ruledispatch/Manifest create mode 100644 dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch create mode 100644 dev-python/ruledispatch/metadata.xml create mode 100644 dev-python/ruledispatch/ruledispatch-0.5_pre2306-r2.ebuild (limited to 'dev-python/ruledispatch') diff --git a/dev-python/ruledispatch/Manifest b/dev-python/ruledispatch/Manifest new file mode 100644 index 000000000000..88b8bc01391c --- /dev/null +++ b/dev-python/ruledispatch/Manifest @@ -0,0 +1,6 @@ +AUX ruledispatch_as_syntax_fix.patch 1650 SHA256 39de21047c2a9d1e4f17338c2e9d3c3169f064e6cd343474413223b9beeee0b6 SHA512 c8ba8d570f82975195be4478c8309c62372ec1f3693bfa9b1fb5a208a56f0984c62d0f2ad9f27751197f144acf9795d1cc0d1b599bcd494a3ffe017aa9fdd89c WHIRLPOOL 5e93276b018c2635d68acacf61bc8c2e954cf2cc097a5d04bca82f4557985c9303a548945b314b46c320db8b95013eee4c1f69ff25fd6c8b8d7b213aeb977580 +DIST RuleDispatch-0.5a0.dev-r2306.tar.gz 186405 SHA256 0ce33a6ddda379f8a14c12e43286c31b54a24ccb1cf990078a634722c80d01c6 SHA512 5ee5f22b6ba755e79c108925d321ade10c6a2e06c309e753650385d2dfbeb2830eaeccee6b71338ec38598c877625b95acf21b6059faf91e9f6119e533b133b1 WHIRLPOOL 840b2176f61505619cc9fb615577f839523d68fc644b9b0c48b738744c8f20b0e054c23f951541734f52d605eab8967b0488f23145067b15c78c1127db4bbd33 +EBUILD ruledispatch-0.5_pre2306-r2.ebuild 1333 SHA256 ba309aa81c378f8e0e7d7db7b65033f98a77a322587c050e70a40657675ccfbb SHA512 0205352079acbcae91822cb2f523aaf8f9de483f8fe1d9d87eac87f47a531e5c2c01622263f3ad4bf37008fcdaefa2f966759b851c24e30f1dbf9b9729042005 WHIRLPOOL 88a3b6b296d7c6f4481f65d993ae3bd8230672ba7cd36fa07cd9a1054ec242e8f8278f4b79996da5ebe7e0f59abe573a29456d0e0aa8b4b8269c3dafdc778570 +MISC ChangeLog 2505 SHA256 96d844fb3d0d735542f90ae65f3180c664ab10b29ba7b5391aac94893be8e16a SHA512 8215dc776f929c6168d5d2d8407d529f49311226e32ad908827fd7f2c9980d92b05688f84bf8d6e313d6503bb39bacd411c29d265542b672ca62e07d7b8cad0c WHIRLPOOL 846e246aca435a09f65644c63691e1f58deb7bf0ad5cd91ad3e87c3c5beac4d319ea4fb60f63ef7a012895d2fd7904f4931b4052652f385d5d98ae107b153f95 +MISC ChangeLog-2015 2687 SHA256 95ac4dede5b435c37debe0745bc582ece67770f2065a18d0282adff087c449de SHA512 0d8557e0ed80c86d18e069c862bd707075982f2f3aa2cadf805c77e9da7ecd0ba8d1ce1f1df1bf6bd1ad17fd3f77c29f3dc9b5da9fba09046011cc30b45b3ded WHIRLPOOL c8e8ff80972a482a9ca9f95ddb702b07afdfb38f4eb0e0cf6bcfe9e8fb59d5eae9430c03475876ef3e99e34b09ee61ae4d2d2e51da1ce8fbae51f36e254d2314 +MISC metadata.xml 236 SHA256 4709fa7f17a11d5eae6dd884b488d3c6eb8f85e9b63fe3684b4f234d3b9b14a9 SHA512 0f2c2a0401b53543eac90eafdd4d11c5913be07f47b968e2892ca92c265adbd9564f02a491ff2607d7031194ba3e50c7720851537341b1541120821c487147a3 WHIRLPOOL d73790bb41c2cefb5e2f7b163fc95a79b9674d9808ca34cef58fbc8c5a765023a0be285508a2e7f5f70eadc5725cf8d63553d599e4b367f52fac3374de347abb diff --git a/dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch b/dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch new file mode 100644 index 000000000000..47960b3c23f5 --- /dev/null +++ b/dev-python/ruledispatch/files/ruledispatch_as_syntax_fix.patch @@ -0,0 +1,49 @@ +Added by: Jesus Rivero (Neurogeek) +On: 25 Jul 2009 +Per Upstream bug: https://bugs.launchpad.net/ubuntu/+source/ruledispatch/+bug/342916 + +diff -uNr RuleDispatch.orig/src/dispatch/__init__.py RuleDispatch/src/dispatch/__init__.py +--- RuleDispatch.orig/src/dispatch/__init__.py 2009-07-25 13:25:08.000000000 +0000 ++++ RuleDispatch/src/dispatch/__init__.py 2009-07-25 13:27:19.000000000 +0000 +@@ -95,7 +95,7 @@ + return decorate_assignment(callback) + + +-def as(*decorators): ++def as_(*decorators): + """Use Python 2.4 decorators w/Python 2.2+ + + Example: +Files RuleDispatch.orig/src/dispatch/__init__.pyc and RuleDispatch/src/dispatch/__init__.pyc differ +Files RuleDispatch.orig/src/dispatch/interfaces.pyc and RuleDispatch/src/dispatch/interfaces.pyc differ +diff -uNr RuleDispatch.orig/src/dispatch/predicates.py RuleDispatch/src/dispatch/predicates.py +--- RuleDispatch.orig/src/dispatch/predicates.py 2009-07-25 13:25:08.000000000 +0000 ++++ RuleDispatch/src/dispatch/predicates.py 2009-07-25 13:27:58.000000000 +0000 +@@ -236,7 +236,7 @@ + + return or_, (EXPR_GETTER_ID,) + +- [as(classmethod)] ++ [as_(classmethod)] + def immediate(klass,seq): + for item in seq: + if item: +@@ -260,7 +260,7 @@ + + return and_, (EXPR_GETTER_ID,) + +- [as(classmethod)] ++ [as_(classmethod)] + def immediate(klass,seq): + for item in seq: + if not item: +@@ -278,7 +278,7 @@ + return get(argIds[2]) + return ifelse, (EXPR_GETTER_ID,) + +- [as(classmethod)] ++ [as_(classmethod)] + def immediate(klass,seq): + if seq[1]: return seq[0] + return seq[2] + diff --git a/dev-python/ruledispatch/metadata.xml b/dev-python/ruledispatch/metadata.xml new file mode 100644 index 000000000000..9e5274c5b4ae --- /dev/null +++ b/dev-python/ruledispatch/metadata.xml @@ -0,0 +1,8 @@ + + + + + python@gentoo.org + Python + + diff --git a/dev-python/ruledispatch/ruledispatch-0.5_pre2306-r2.ebuild b/dev-python/ruledispatch/ruledispatch-0.5_pre2306-r2.ebuild new file mode 100644 index 000000000000..1c538b5e6057 --- /dev/null +++ b/dev-python/ruledispatch/ruledispatch-0.5_pre2306-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils versionator flag-o-matic + +MY_PN="RuleDispatch" +MY_P="${MY_PN}-$(get_version_component_range 1-2)a0.dev-$(get_version_component_range 3-)" +MY_P="${MY_P/pre/r}" + +DESCRIPTION="Rule-based Dispatching and Generic Functions" +HOMEPAGE="http://peak.telecommunity.com/" +# http://svn.eby-sarna.com/RuleDispatch/ +SRC_URI="mirror://gentoo/${MY_P}.tar.gz" + +LICENSE="|| ( PSF-2.4 ZPL )" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=">=dev-python/pyprotocols-1.0_pre2306[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +S="${WORKDIR}/${MY_PN}" + +PATCHES=( "${FILESDIR}/${PN}_as_syntax_fix.patch" ) + +python_configure_all() { + append-flags -fno-strict-aliasing +} + +python_test() { + cd "${BUILD_DIR}/lib" || die + # parallel build makes a salad; einfo msg lets us see what's occuring + for test in dispatch/tests/test_*.py; do + "${PYTHON}" $test && einfo "Tests $test passed under ${EPYTHON}" \ + || die "Tests failed under ${EPYTHON}" + done + # doctest appears old and unmaintained, left for just in case + # "${PYTHON}" dispatch/tests/doctest.py + einfo "Tests passed under ${EPYTHON}" +} -- cgit v1.2.3