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