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/jpype |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/jpype')
-rw-r--r-- | dev-python/jpype/Manifest | 7 | ||||
-rw-r--r-- | dev-python/jpype/files/jpype-gcc6-noexcept.patch | 57 | ||||
-rw-r--r-- | dev-python/jpype/jpype-0.6.1.ebuild | 39 | ||||
-rw-r--r-- | dev-python/jpype/jpype-0.6.2.ebuild | 39 | ||||
-rw-r--r-- | dev-python/jpype/metadata.xml | 19 |
5 files changed, 161 insertions, 0 deletions
diff --git a/dev-python/jpype/Manifest b/dev-python/jpype/Manifest new file mode 100644 index 000000000000..d41d6cb7393d --- /dev/null +++ b/dev-python/jpype/Manifest @@ -0,0 +1,7 @@ +AUX jpype-gcc6-noexcept.patch 1792 SHA256 660d21fefa01f5e66f8fa1d9e1646fa56988ca4216d1c19fc74bdd57c0502bb9 SHA512 cab22d5247a30cce362fc7ad705aa8595a79636715f64e78c274061b9cf6a2ba679bbfd4c0ff20e195a59ed2c6a33170fe69021ab9675890ac75296b24280e03 WHIRLPOOL 7831d8c19081cb0e5c8fdd6fceb2ef29e39bf191d10c5c977f6be9003bc57c04f5cb4b79a1bedb9572a370847b8fb70f877114435135b0791bf57b30479c3176 +DIST jpype-0.6.1.zip 251407 SHA256 63ad841bae8d4a75e657f867122ef569ef6e9545d6880d30da63930bc74816e5 SHA512 e3cdae95a394f5b57049f444e4da442a75938279f77d74304ac6a45bf00eb4110d3a63b5580e30d82777764f195f848639f6b4e973e48510d0f5cd60c475ce2f WHIRLPOOL 5ae85f6a1e52f8fc26242f8772f467df06bca15447db9ac3881e1688bb86966aa3eeb542ad228779b286be3b7ece46cba13b15835bb6914eb2861122f614429f +DIST jpype-0.6.2.zip 260812 SHA256 f1138b3836a1e236b2d9d18e223c5ee9bcc0fd3c9ecd482b6f02104db69bc40d SHA512 f4ce5fe6e0f920f6c17bc8815c09fb54909f105fb4cf022856482680f24305a002ce00354cf44c730b34220d12f1d926971b246d0a938bb411401b0656486091 WHIRLPOOL 26e3686beb9cd62e9e7bd5d53b7b960e571767690e8c26b4022efece2f3de4f9a0349e561ee46267db542404077b7d2d985b226fc27c56864858cb7cbd8d36d8 +EBUILD jpype-0.6.1.ebuild 912 SHA256 addcaf0132d2f36d4cdc43fd86013f2e2832ab42fc99b71062480d14a7baa281 SHA512 5e42a3fd00a3d0ec95ae9ad08c03f475335ae2e6c553e40e6db0aa26e97c3f2bbc025bab4f1849d2573adabb68f59ddfed02dca74c1119c910b92c0a84b69883 WHIRLPOOL 93acdbe0133a876982ce7237126e0dcbaeecd5fc858b66eaba830ed2cb44dd7940b31a2285ea99d4f668db18f233515ffa64df9ea57540c805b9d18c8a50617a +EBUILD jpype-0.6.2.ebuild 914 SHA256 f214735b8727a5d7abe33b1ee4ec35919bf029e121677b13e6fe410c0ee61710 SHA512 ae57797f9aa411ed0c07f0902ea25953a2d31b8bf06b2ba1822d236700a0d5ba86c89e253afaba9388276f2dd266561d47478db05d94b42c362e6253459f5a97 WHIRLPOOL d22ceb2c891da1fd92dc2f675f8ff12501423b9cb814f88f7b77e99fa5ced6c2c9ee20b110b0db7f478a0e75fd3b74a7ebbe027998c0cf19645b939f7f9e1182 +MISC ChangeLog 1214 SHA256 cd480f47ceeef4279a152840323e67d458c06d7ad2a36322a251af29d51f2126 SHA512 54f0938be6a5948bff5561a9804ff6686b814603ea7ac528fee8a63e608a3c0d0b4d2101f710a8406c10e3c95a90c1b46af95cf43283af6c05c0db0b05f161f9 WHIRLPOOL 595c9bb89ba3a36bcd4687226b7ea2efa01baa6f76e4d15cb04944a15aba111cf5608c8034f4a84003391007087d69481fa7198a2b86a9861c1b42fdb9463bd0 +MISC metadata.xml 529 SHA256 ada3d722093acd0de89d36d14d91026ab175a39cf2a4ce6195d23cdb0e4a3c68 SHA512 20e1dbd02171941eb65d78af65539692ab39c21e7d800a730f96c4186ef3e9cb01d499b6a938c04fd1da424fa253b12799b0209523054db4837ddaec3aab4b23 WHIRLPOOL b601f4afb4fe80790de7081b69fcb2d72952f7026f35232ff7648314791273537ec8f288c3bb7306f707fda77bb8f03e478e3cab316f193413a48b81180ff96f diff --git a/dev-python/jpype/files/jpype-gcc6-noexcept.patch b/dev-python/jpype/files/jpype-gcc6-noexcept.patch new file mode 100644 index 000000000000..710844d35608 --- /dev/null +++ b/dev-python/jpype/files/jpype-gcc6-noexcept.patch @@ -0,0 +1,57 @@ +Bug: https://bugs.gentoo.org/show_bug.cgi?id=608920
+Upstream commit: https://github.com/originell/jpype/commit/3a4fb98938afd9c03070086d1b8fda8841410fa3
+
+From c3578c3488de35236f73b6eb27428b1f1526c45b Mon Sep 17 00:00:00 2001 +From: Peter-Levine <plevine457@gmail.com> +Date: Sat, 11 Feb 2017 23:31:27 -0500 +Subject: [PATCH] Mark destructor that throws as noexcept(false) for >=C++11 + +--- + native/common/include/jp_field.h | 2 +- + native/common/include/jpype.h | 6 ++++++ + native/common/jp_field.cpp | 2 +- + 3 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/native/common/include/jp_field.h b/native/common/include/jp_field.h +index d28b795..f93752c 100644 +--- a/native/common/include/jp_field.h ++++ b/native/common/include/jp_field.h +@@ -38,7 +38,7 @@ public : + /**
+ * destructor
+ */
+- virtual ~JPField();
++ virtual ~JPField() NO_EXCEPT_FALSE;
+
+ public :
+ bool isStatic() const;
+diff --git a/native/common/include/jpype.h b/native/common/include/jpype.h +index 7db5832..a492d06 100644 +--- a/native/common/include/jpype.h ++++ b/native/common/include/jpype.h +@@ -64,6 +64,12 @@ + #define PyUnicode_FromFormat PyString_FromFormat
+ #endif
+
++// Define this and use to allow destructors to throw in C++11 or later
++#if __cplusplus >= 201103L
++#define NO_EXCEPT_FALSE noexcept(false)
++#else
++#define NO_EXCEPT_FALSE
++#endif
+
+ #include <map>
+ #include <string>
+diff --git a/native/common/jp_field.cpp b/native/common/jp_field.cpp +index 8c75e58..5ef9d8c 100644 +--- a/native/common/jp_field.cpp ++++ b/native/common/jp_field.cpp +@@ -63,7 +63,7 @@ JPField::JPField(const JPField& fld) + TRACE_OUT;
+ }
+
+-JPField::~JPField()
++JPField::~JPField() NO_EXCEPT_FALSE
+ {
+ TRACE_IN("JPField::~JPField");
+ JPEnv::getJava()->DeleteGlobalRef(m_Field);
diff --git a/dev-python/jpype/jpype-0.6.1.ebuild b/dev-python/jpype/jpype-0.6.1.ebuild new file mode 100644 index 000000000000..090ec143ecb2 --- /dev/null +++ b/dev-python/jpype/jpype-0.6.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit java-pkg-2 distutils-r1 + +DESCRIPTION="JPype is an effort to allow Python programs full access to Java class librairies" +HOMEPAGE="https://github.com/originell/jpype" +SRC_URI="https://github.com/originell/${PN}/archive/v${PV}.zip -> ${P}.zip" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc examples" + +S="${WORKDIR}/${P}" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=virtual/jdk-1.6" + +PATCHES=( "${FILESDIR}"/${PN}-gcc6-noexcept.patch ) + +python_compile() { + if ! python_is_python3; then + local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" + export CXXFLAGS + fi + distutils-r1_python_compile +} + +python_install() { + use doc && local DOCS=( doc/* ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install +} diff --git a/dev-python/jpype/jpype-0.6.2.ebuild b/dev-python/jpype/jpype-0.6.2.ebuild new file mode 100644 index 000000000000..f8dfefc0dd22 --- /dev/null +++ b/dev-python/jpype/jpype-0.6.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit java-pkg-2 distutils-r1 + +DESCRIPTION="JPype is an effort to allow Python programs full access to Java class librairies" +HOMEPAGE="https://github.com/originell/jpype" +SRC_URI="https://github.com/originell/${PN}/archive/v${PV}.zip -> ${P}.zip" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +S="${WORKDIR}/${P}" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=virtual/jdk-1.6" + +PATCHES=( "${FILESDIR}"/${PN}-gcc6-noexcept.patch ) + +python_compile() { + if ! python_is_python3; then + local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" + export CXXFLAGS + fi + distutils-r1_python_compile +} + +python_install() { + use doc && local DOCS=( doc/* ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install +} diff --git a/dev-python/jpype/metadata.xml b/dev-python/jpype/metadata.xml new file mode 100644 index 000000000000..c8bb1538ea87 --- /dev/null +++ b/dev-python/jpype/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">originell/jpype</remote-id> + </upstream> + <maintainer type="person"> + <email>monsieurp@gentoo.org</email> + <name>Patrice Clement</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> +</pkgmetadata> |