1 |
commit: b65cc982eadc19bcacbb5aa0932dc8a6c1399e68 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 21 17:00:52 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 21 17:01:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b65cc982 |
7 |
|
8 |
dev-java/jython: removed obsolete 2.7.0-r3 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-java/jython/jython-2.7.0-r3.ebuild | 152 --------------------------------- |
14 |
1 file changed, 152 deletions(-) |
15 |
|
16 |
diff --git a/dev-java/jython/jython-2.7.0-r3.ebuild b/dev-java/jython/jython-2.7.0-r3.ebuild |
17 |
deleted file mode 100644 |
18 |
index e4c5606e1118..000000000000 |
19 |
--- a/dev-java/jython/jython-2.7.0-r3.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,152 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-JAVA_PKG_IUSE="doc source" |
28 |
- |
29 |
-inherit java-pkg-2 java-ant-2 python-utils-r1 flag-o-matic |
30 |
- |
31 |
-MY_PV=${PV/_beta/-b} |
32 |
-MY_P=${PN}-${MY_PV} |
33 |
- |
34 |
-DESCRIPTION="An implementation of Python written in Java" |
35 |
-HOMEPAGE="https://www.jython.org" |
36 |
-SRC_URI="https://search.maven.org/remotecontent?filepath=org/python/${PN}/${MY_PV}/${MY_P}-sources.jar" |
37 |
- |
38 |
-LICENSE="PSF-2" |
39 |
-SLOT="2.7" |
40 |
-KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
41 |
-IUSE="examples test" |
42 |
- |
43 |
-CP_DEPEND="dev-java/antlr:3 |
44 |
- dev-java/netty-transport:0 |
45 |
- dev-java/asm:9 |
46 |
- dev-java/commons-compress:0 |
47 |
- dev-java/guava:20 |
48 |
- dev-java/jffi:1.2 |
49 |
- dev-java/jline:2 |
50 |
- dev-java/icu4j:55 |
51 |
- dev-java/jnr-constants:0 |
52 |
- dev-java/jnr-posix:3.0 |
53 |
- dev-java/jnr-netdb:1.0 |
54 |
- dev-java/stringtemplate:0 |
55 |
- dev-java/xerces:2 |
56 |
- java-virtuals/script-api:0 |
57 |
- java-virtuals/servlet-api:3.0" |
58 |
-RDEPEND="${CP_DEPEND} |
59 |
- >=virtual/jre-1.8:*" |
60 |
-DEPEND="${CP_DEPEND} |
61 |
- >=virtual/jdk-1.8:* |
62 |
- dev-java/ant-core:0 |
63 |
- test? ( |
64 |
- dev-java/junit:4 |
65 |
- dev-java/ant-junit:0 |
66 |
- )" |
67 |
-BDEPEND="app-arch/unzip" |
68 |
- |
69 |
-S=${WORKDIR} |
70 |
- |
71 |
-RESTRICT="test" |
72 |
- |
73 |
-JAVA_ANT_REWRITE_CLASSPATH="yes" |
74 |
-JAVA_ANT_CLASSPATH_TAGS+=" java" |
75 |
- |
76 |
-EANT_BUILD_TARGET="developer-build" |
77 |
-EANT_TEST_EXTRA_ARGS="-Dpython.home=dist" |
78 |
- |
79 |
-# jdbc-informix and jdbc-oracle-bin (requires registration) aren't exposed. |
80 |
-# Uncomment and add to CDEPEND if you want either of them |
81 |
-#EANT_GENTOO_CLASSPATH+=",jdbc-informix" EANT_EXTRA_ARGS+=" -Dinformix.present" |
82 |
-#EANT_GENTOO_CLASSPATH+=",jdbc-oracle-bin" EANT_EXTRA_ARGS+=" -Doracle.present" |
83 |
- |
84 |
-PATCHES=( |
85 |
- "${FILESDIR}"/${PN}-2.5.2-distutils_scripts_location.patch |
86 |
- "${FILESDIR}"/${PN}-2.5.2-respect_PYTHONPATH.patch |
87 |
- "${FILESDIR}"/${PN}-2.7_beta1-ant.patch |
88 |
- "${FILESDIR}"/${PN}-2.7_beta1-dont-always-recompile-classes.patch |
89 |
- "${FILESDIR}"/${PN}-2.7_beta2-maxrepeat-import.patch |
90 |
- "${FILESDIR}"/${PN}-2.7.0-build.xml.patch |
91 |
- "${FILESDIR}"/CVE-2016-4000.patch |
92 |
-) |
93 |
- |
94 |
-src_prepare() { |
95 |
- default |
96 |
- |
97 |
- find \( -name '*.jar' -o -name '*.class' \ |
98 |
- -o -name '*.pyc' -o -name '*.exe' \) -delete |
99 |
- |
100 |
- # needed for launchertest |
101 |
- chmod +x tests/shell/test-jython.sh || die |
102 |
- |
103 |
- java-pkg-2_src_prepare |
104 |
-} |
105 |
- |
106 |
-src_configure() { |
107 |
- # apparently this can cause problems |
108 |
- append-flags -fno-stack-protector |
109 |
- |
110 |
- EANT_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --with-dependencies antlr-3,jnr-posix-3.0)" |
111 |
- EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjars --build-only ant-core)" |
112 |
-} |
113 |
- |
114 |
-src_test() { |
115 |
- java-pkg-2_src_test |
116 |
-} |
117 |
- |
118 |
-src_install() { |
119 |
- local instdir=/usr/share/${PN}-${SLOT} |
120 |
- |
121 |
- java-pkg_newjar dist/${PN}-dev.jar |
122 |
- |
123 |
- java-pkg_register-optional-dependency jdbc-mysql |
124 |
- java-pkg_register-optional-dependency jdbc-postgresql |
125 |
- |
126 |
- insinto ${instdir} |
127 |
- doins -r dist/{Lib,registry} |
128 |
- |
129 |
- dodoc ACKNOWLEDGMENTS NEWS README.txt |
130 |
- |
131 |
- use doc && java-pkg_dohtml -r dist/Doc/javadoc |
132 |
- use source && java-pkg_dosrc src/* |
133 |
- use examples && java-pkg_doexamples Demo/* |
134 |
- |
135 |
- local java_args=( |
136 |
- -Dpython.home="${EPREFIX}"/usr/share/${PN}-${SLOT} |
137 |
- -Dpython.executable="${EPREFIX}"/usr/bin/jython${SLOT} |
138 |
- -Dpython.cachedir="\${HOME}/.jythoncachedir" |
139 |
- ) |
140 |
- |
141 |
- java-pkg_dolauncher jython${SLOT} \ |
142 |
- --main org.python.util.jython \ |
143 |
- --java_args "${java_args[*]}" |
144 |
- |
145 |
- # we need a wrapper to help python_optimize |
146 |
- cat <<-EOF > "${T}"/jython |
147 |
- exec java -cp "$(java-pkg_getjars "${EANT_GENTOO_CLASSPATH}"):${EANT_GENTOO_CLASSPATH_EXTRA}:dist/${PN}-dev.jar" \ |
148 |
- -Dpython.home="${ED}${instdir}" \ |
149 |
- -Dpython.cachedir="${T}/.jythoncachedir" \ |
150 |
- -Duser.home="${T}" \ |
151 |
- org.python.util.jython "\${@}" |
152 |
- EOF |
153 |
- chmod +x "${T}"/jython || die |
154 |
- |
155 |
- local -x PYTHON="${T}"/jython |
156 |
- # we can't get the path from the interpreter since it does some |
157 |
- # magic that fails on non-installed copy... |
158 |
- _python_export jython${SLOT} EPYTHON |
159 |
- |
160 |
- # compile tests (everything else is compiled already) |
161 |
- # we're keeping it quiet since jython reports errors verbosely |
162 |
- # and some of the tests are supposed to trigger compile errors |
163 |
- python_optimize "${ED}${instdir}"/Lib/test &>/dev/null |
164 |
- |
165 |
- # for python-exec |
166 |
- echo "EPYTHON='${EPYTHON}'" > epython.py || die |
167 |
- python_moduleinto "/usr/share/jython-${SLOT}/Lib/site-packages" |
168 |
- python_domodule epython.py |
169 |
- |
170 |
- # some of the class files end up with newer timestamps than the files they |
171 |
- # were generated from, make sure this doesn't happen |
172 |
- find "${ED}${instdir}"/Lib/ -name '*.class' | xargs touch |
173 |
-} |