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/enable |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/enable')
-rw-r--r-- | dev-python/enable/Manifest | 11 | ||||
-rw-r--r-- | dev-python/enable/enable-4.4.1.ebuild | 68 | ||||
-rw-r--r-- | dev-python/enable/enable-4.5.1.ebuild | 76 | ||||
-rw-r--r-- | dev-python/enable/files/enable-4.4.1-swig.patch | 93 | ||||
-rw-r--r-- | dev-python/enable/files/enable-4.5.1-doc.patch | 24 | ||||
-rw-r--r-- | dev-python/enable/files/enable-4.5.1-gcc-5.patch | 22 | ||||
-rw-r--r-- | dev-python/enable/files/enable-4.5.1-version.patch | 31 | ||||
-rw-r--r-- | dev-python/enable/metadata.xml | 19 |
8 files changed, 344 insertions, 0 deletions
diff --git a/dev-python/enable/Manifest b/dev-python/enable/Manifest new file mode 100644 index 000000000000..a1311fe3fd0b --- /dev/null +++ b/dev-python/enable/Manifest @@ -0,0 +1,11 @@ +AUX enable-4.4.1-swig.patch 2367 SHA256 e93bf98c6f8ad32aaf49f7db37112d2a2f5a1f4f96f0ef714b6a1d556f741c24 SHA512 a53e89d392346a6d3c1ea0fea102c37101fcc3cba2cbe25221202caed9b770caab84e91096a40c08ce5888fd927299e903eec403e2b60ea6df7887aad5569582 WHIRLPOOL 4ff75db98040dc7aa355b29a64c08d5dbe2cd7ce6c648d5d7a2d46055444598ce2203be55bb0bafee4dda9ff68617439f59638cb375435b4f917a3033d651b6c +AUX enable-4.5.1-doc.patch 917 SHA256 ac72f01d992803815bd8e44ade7744508b0dd92eea389f86ffee737646184809 SHA512 6025233ce500d324d75a23535ceb0dac50b7d5955fc76803c156d3813a157fe8ec4d855913a6aed9c966d594fed4c7c36d6af6a175155ee2190f9c56f7d3b177 WHIRLPOOL 4285181d58fa64f1c86c8f47eb58454cd84ae7225ebd9303fa47823209210ffd0451f415fd636249937d73dcd4d43b0d40d63373d18c476be4441e27e9a70950 +AUX enable-4.5.1-gcc-5.patch 741 SHA256 e99d0dbfdf3f2bccda46db1a40b8dcb6ba1aedebe879d1cbd6bc69522d03cc85 SHA512 697201de95e2202d20cce40ddef063e91f64c1e10fb88c8b65db61ab18f8ee5a7c6c680684ea1c15b39c9ed67fc527ae833eab3ad21c34105704ae5377746bd6 WHIRLPOOL 0d95828029aba1d8ec8bafbf5586e95aab33c6bada048a9c9c55eddb90b938861c0b9481a754fa887d3d8d2dbd7a2348ddb14d9f6c4d9589c0c7941d19c85e90 +AUX enable-4.5.1-version.patch 1297 SHA256 2499ffd86438b2be5fa1f2f09e3fae2a345d1a4a9821dc16045459987767c35b SHA512 b198640bc503ace1aed8ae8c67dc500647d2679e3e516ae62cd1800b8aade433e776db2be5d519b1ea8e0ed2f47e3285102e5a6e1ef89bdc46cf753bbd214150 WHIRLPOOL 82a1f0bb19a4387ce2684189a82b4f2d8b2b15e9e88fbc119e4253bf4db22acb4033dac4d87bd7cbbae9e716f57596583eb67a424423e44a4a94367a60dd705e +DIST enable-4.4.1.tar.gz 2507048 SHA256 6bdba2754410b89d6c0531482a20b930c2a3965d843f374eda7e1e1902a03bdb SHA512 72c879f19e26a4311b900cb4665969b9f806ce47b23c214a25e3ec308cc5300b6d71084a793215b05302fbeba09e13a4561e661c3bddb700d529bd31cfeb4dff WHIRLPOOL be172d97a979270b3a355436a323f72e00eb1fe1544cfd73091f6d56eded44b463198c48bbb8dbabc06e9a417cf24fdd898eecae316376cd1b9845cd4af03d02 +DIST enable-4.5.1.tar.gz 2571975 SHA256 9a7e7c82872969bf11eed5347c735ba7703b6af01274ad4bd3a7c8d89b0da164 SHA512 1095a4490f4918756dd33864aaba2636c294c3b177d3f500d98a355ec86ef86ab211d33cdec95c2d37e7e1df41622acf2c8ecf524a1d93cc39797804c49e6971 WHIRLPOOL 3bda72d5228adb106ec654aacdb34c91285afa40ff676c520119415a6517c1c2b595cbdea6122f70e07365fca18d4bfcd0696cc4dbf1c815165a41418d1b9d71 +EBUILD enable-4.4.1.ebuild 1676 SHA256 0cc09a10646cceffec9538764b412aface00484fa3df30d4fde8da6e0f3ed139 SHA512 7a7d927748de3fc99909524322934958d385f2c692ebe96a57884dedb04d0b59e367e1c4c5518098c2aaadaaa8b120ef28b970a25b5d255ed414fdd564658690 WHIRLPOOL 007336a7493472144522e78a77fda35b2cf220fcdde4547f29ec86529494c75ea08fa0f6c840678bde835d25b44d594a0afea47fc34a59e46822ae3f56226a16 +EBUILD enable-4.5.1.ebuild 1956 SHA256 add38617d7c2062dc17a60ba51c0aa505139be94cd61e2c6548c376ece56bb33 SHA512 75faa7fd99ffd3ee7ede05a444ea1d59ac54d2f35295a62ba307ec61036c80e8c5fa0cebf36af37840a19be03acd2421bd895205750266dcf346262571e0d9fc WHIRLPOOL d8919a07851ee8fdbdf3033861c0c1ed33bb0db3588275ef5f567258a62e0124a729c99ce435460228fb9fd5a262b0ffbf8f850aacee4cb6eedf782e5d718302 +MISC ChangeLog 4014 SHA256 3a77640d277216d84923f6e32abb8f3d71a285cd65770baf0fcf372d4ffa1329 SHA512 3ceda621f788e6ef73e354174e11dd38c3ce4609a401786ab303c8b1fce0f20daca348310c0b51f4bfd4ff959cb5aaf09027098086a09998e82096383e63bacc WHIRLPOOL 21f65d296e0d58c42ded3b762aca26dee5b44a32765625b4ca407573af06dbce08afc391c0cdab259b686abb7b31bce449e7e3797d513d638d4955324f1673d3 +MISC ChangeLog-2015 4595 SHA256 32f5cc3a0441a27b744810045d4930df720796332e35baf8fe4bb593ad28d52e SHA512 4f3555bbf9999494d877abb339d7c28fc967bc24ba98efbaafcd2685dfcd338e24ddce9203ef485cd96085ab7d3a4db674e900a941014654194b6a53c5f39b6c WHIRLPOOL a82840eba0e70cb21afef6cd492acea940c0ff5abd3b6c1f2089fdb47a551a76ab852822c4fcc4a092e536b3317ca6fcabfde21ba0562c774ae4229da777d579 +MISC metadata.xml 714 SHA256 58f13825f45ae9c17d3e8ab13187796a776e04454c2d5e0c37baec342919fc15 SHA512 24af77a3c81ffb8d105fc73f48fd6a3d5729601d8c24bae4c952265af928b7ea89f1d0c069f058439e10fc3694ae75b0e83121f1de7266d3b57b94af67cb0dc3 WHIRLPOOL cc8ef043c528173285ec472ec8bc5f8549b3e8684cf712d7b538792c1850e192f282945de2146ad6daf9611c97a043bc6819b6d8b888bf5223cb4b6bbeed456e diff --git a/dev-python/enable/enable-4.4.1.ebuild b/dev-python/enable/enable-4.4.1.ebuild new file mode 100644 index 000000000000..68fe4fd77629 --- /dev/null +++ b/dev-python/enable/enable-4.4.1.ebuild @@ -0,0 +1,68 @@ +# 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 virtualx flag-o-matic + +DESCRIPTION="Enthought Tool Suite: Drawing and interaction packages" +HOMEPAGE="http://code.enthought.com/projects/enable/ https://pypi.python.org/pypi/enable https://github.com/enthought/enable" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/reportlab[${PYTHON_USEDEP}] + >=dev-python/traitsui-4[${PYTHON_USEDEP}] + >=media-libs/freetype-2 + virtual/opengl + virtual/glu + x11-libs/libX11" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-lang/swig:0 + dev-python/cython[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + dev-python/nose[${PYTHON_USEDEP}] + media-fonts/font-cursor-misc + media-fonts/font-misc-misc + )" + +DISTUTILS_IN_SOURCE_BUILD=1 + +PATCHES=( "${FILESDIR}"/${P}-swig.patch ) + +python_prepare_all() { + append-cflags -fno-strict-aliasing + + sed -e 's:html_favicon = "et.ico":html_favicon = "_static/et.ico":' \ + -i docs/source/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + pushd "${BUILD_DIR}"/lib > /dev/null + # https://github.com/enthought/enable/issues/158 + PYTHONPATH=.:kiva \ + VIRTUALX_COMMAND="nosetests" virtualmake + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/enable/enable-4.5.1.ebuild b/dev-python/enable/enable-4.5.1.ebuild new file mode 100644 index 000000000000..ffa29e06d113 --- /dev/null +++ b/dev-python/enable/enable-4.5.1.ebuild @@ -0,0 +1,76 @@ +# 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 virtualx flag-o-matic + +DESCRIPTION="Enthought Tool Suite: Drawing and interaction packages" +HOMEPAGE="http://code.enthought.com/projects/enable/ https://pypi.python.org/pypi/enable https://github.com/enthought/enable" +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/enthought/enable/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + dev-python/apptools[${PYTHON_USEDEP}] + dev-python/kiwisolver[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/reportlab[${PYTHON_USEDEP}] + >=dev-python/traitsui-4[${PYTHON_USEDEP}] + >=media-libs/freetype-2 + virtual/opengl + virtual/glu + x11-libs/libX11" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-lang/swig:0 + dev-python/cython[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + dev-python/nose[${PYTHON_USEDEP}] + media-fonts/font-cursor-misc + media-fonts/font-misc-misc + )" + +DISTUTILS_IN_SOURCE_BUILD=1 + +PATCHES=( + "${FILESDIR}"/${PN}-4.4.1-swig.patch + "${FILESDIR}"/${P}-gcc-5.patch + "${FILESDIR}"/${P}-doc.patch + "${FILESDIR}"/${P}-version.patch + ) + +python_prepare_all() { + append-cflags -fno-strict-aliasing + + sed -e 's:html_favicon = "et.ico":html_favicon = "_static/et.ico":' \ + -i docs/source/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + pushd "${BUILD_DIR}"/lib > /dev/null + # https://github.com/enthought/enable/issues/158 + PYTHONPATH=.:kiva \ + VIRTUALX_COMMAND="nosetests" virtualmake --verbose + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/enable/files/enable-4.4.1-swig.patch b/dev-python/enable/files/enable-4.4.1-swig.patch new file mode 100644 index 000000000000..a82f3af1c7e2 --- /dev/null +++ b/dev-python/enable/files/enable-4.4.1-swig.patch @@ -0,0 +1,93 @@ +From f0e399174c5f55eb3a72860c620fdd5193ad57da Mon Sep 17 00:00:00 2001 +From: Jonathan Stickel <jjstickel@gmail.com> +Date: Wed, 25 Mar 2015 14:05:01 -0600 +Subject: [PATCH] fixes for recent swig + +--- + kiva/agg/src/affine_matrix.i | 4 ++-- + kiva/agg/src/constants.i | 4 ++-- + kiva/agg/src/hit_test.i | 4 ++-- + kiva/agg/src/rgba.i | 4 ++-- + 4 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/kiva/agg/src/affine_matrix.i b/kiva/agg/src/affine_matrix.i +index 2f30e51..7c05a6a 100644 +--- a/kiva/agg/src/affine_matrix.i ++++ b/kiva/agg/src/affine_matrix.i +@@ -157,7 +157,7 @@ namespace agg24 + }; + }; + +-%pythoncode { ++%pythoncode %{ + def is_sequence(arg): + try: + len(arg) +@@ -184,7 +184,7 @@ class AffineMatrix(_AffineMatrix): + """ + self.multiply(other) + return self +-} ++%} + + %extend agg24::trans_affine + { +diff --git a/kiva/agg/src/constants.i b/kiva/agg/src/constants.i +index b680cae..78f9d0c 100644 +--- a/kiva/agg/src/constants.i ++++ b/kiva/agg/src/constants.i +@@ -44,7 +44,7 @@ + unsigned path_cmd(unsigned c); + unsigned path_flags(unsigned c); + +-%pythoncode { ++%pythoncode %{ + + #---------------------------------------------------------------------------- + # +@@ -141,4 +141,4 @@ interp_enum_map = {} + for key,value in interp_string_map.items(): + interp_enum_map[value] = key + +-} ++%} +diff --git a/kiva/agg/src/hit_test.i b/kiva/agg/src/hit_test.i +index 76de0c9..2cfb1cf 100644 +--- a/kiva/agg/src/hit_test.i ++++ b/kiva/agg/src/hit_test.i +@@ -22,7 +22,7 @@ namespace kiva + } + + %pythoncode +-{ ++%{ + from numpy import shape, transpose, zeros, rank, reshape, int32 + + def points_in_polygon(pts, poly_pts, use_winding=False): +@@ -92,4 +92,4 @@ def points_in_polygon(pts, poly_pts, use_winding=False): + else: + _agg.points_in_polygon(pts, poly_pts, results) + return results +-} ++%} +diff --git a/kiva/agg/src/rgba.i b/kiva/agg/src/rgba.i +index f7624b8..183014f 100644 +--- a/kiva/agg/src/rgba.i ++++ b/kiva/agg/src/rgba.i +@@ -74,7 +74,7 @@ namespace agg24 + } + + +-%pythoncode { ++%pythoncode %{ + def is_sequence(arg): + try: + len(arg) +@@ -90,6 +90,6 @@ class Rgba(_Rgba): + if len(args) not in [3,4]: + raise ValueError, "array argument must be 1x3 or 1x4" + _Rgba.__init__(self,*args) +-} ++%} + + %clear double r, double g, double b, double a; diff --git a/dev-python/enable/files/enable-4.5.1-doc.patch b/dev-python/enable/files/enable-4.5.1-doc.patch new file mode 100644 index 000000000000..c9cc1ff2e3cc --- /dev/null +++ b/dev-python/enable/files/enable-4.5.1-doc.patch @@ -0,0 +1,24 @@ +From 41134b03b96b741d95554846841c189313052265 Mon Sep 17 00:00:00 2001 +From: John Wiggins <jwiggins@enthought.com> +Date: Thu, 1 Oct 2015 20:40:07 +0200 +Subject: [PATCH] Read the docs version directly from enable._version + +--- + docs/source/conf.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/docs/source/conf.py b/docs/source/conf.py +index 10b7552..995e315 100644 +--- a/docs/source/conf.py ++++ b/docs/source/conf.py +@@ -41,8 +41,8 @@ + # The default replacements for |version| and |release|, also used in various + # other places throughout the built documents. + d = {} +-execfile(os.path.join('..', '..', 'enable', '__init__.py'), d) +-version = release = d['__version__'] ++execfile(os.path.join('..', '..', 'enable', '_version.py'), d) ++version = release = d['full_version'] + + # There are two options for replacing |today|: either, you set today to some + # non-false value, then it is used: diff --git a/dev-python/enable/files/enable-4.5.1-gcc-5.patch b/dev-python/enable/files/enable-4.5.1-gcc-5.patch new file mode 100644 index 000000000000..b18b8eae7bb7 --- /dev/null +++ b/dev-python/enable/files/enable-4.5.1-gcc-5.patch @@ -0,0 +1,22 @@ +From 55a74ccfc33764499497022dd3649be4bb1091ed Mon Sep 17 00:00:00 2001 +From: Nathan Ringo <tikiking1@users.noreply.github.com> +Date: Wed, 10 Jun 2015 22:06:57 -0500 +Subject: [PATCH] Fixes #200 + +--- + kiva/agg/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kiva/agg/setup.py b/kiva/agg/setup.py +index 5b4d458..c6e290a 100644 +--- a/kiva/agg/setup.py ++++ b/kiva/agg/setup.py +@@ -170,7 +170,7 @@ def get_ft2_sources((lib_name, build_info), build_dir): + f = os.popen("g++ --version") + line0 = f.readline() + f.close() +- m = re.match(r'.+?\s(3|4)\.\d+', line0) ++ m = re.match(r'.+?\s([3-5])\.\d+', line0) + if int(m.group(1)) < 4: + use_32bit_workaround = True + diff --git a/dev-python/enable/files/enable-4.5.1-version.patch b/dev-python/enable/files/enable-4.5.1-version.patch new file mode 100644 index 000000000000..1dd3fe42775e --- /dev/null +++ b/dev-python/enable/files/enable-4.5.1-version.patch @@ -0,0 +1,31 @@ +From f91c824ebad74e8c23e62fe3390842c5fe322aee Mon Sep 17 00:00:00 2001 +From: itziakos <ioannist@enthought.com> +Date: Wed, 20 May 2015 22:52:42 +0100 +Subject: [PATCH] check the enable._version.py when installing from source + +--- + setup.py | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/setup.py b/setup.py +index f765f51..3328b93 100644 +--- a/setup.py ++++ b/setup.py +@@ -92,13 +92,14 @@ def write_version_py(filename): + fullversion = VERSION + if os.path.exists('.git'): + git_revision, dev_num = git_version() +- elif os.path.exists('kiva/_version.py'): ++ # All packages are synced with the enable version ++ elif os.path.exists('enable/_version.py'): + # must be a source distribution, use existing version file + try: +- from kiva._version import git_revision, full_version ++ from enable._version import git_revision, full_version + except ImportError: + raise ImportError("Unable to import git_revision. Try removing " +- "kiva/_version.py and the build directory " ++ "enable/_version.py and the build directory " + "before building.") + + match = re.match(r'.*?\.dev(?P<dev_num>\d+)', full_version) diff --git a/dev-python/enable/metadata.xml b/dev-python/enable/metadata.xml new file mode 100644 index 000000000000..63ecca60e3b3 --- /dev/null +++ b/dev-python/enable/metadata.xml @@ -0,0 +1,19 @@ +<?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> + <longdescription lang="en"> + The Enable project from the Enthought Tool Suite provides two + related multi-platform packages for drawing GUI objects: + * Enable: An object drawing library that supports containment and + event notification. + * Kiva: A multi-platform DisplayPDF vector drawing engine. + </longdescription> + <upstream> + <remote-id type="github">enthought/enable</remote-id> + <remote-id type="pypi">enable</remote-id> + </upstream> +</pkgmetadata> |