1 |
ali_bush 09/06/22 10:02:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: jython-2.5.0-r1.ebuild |
5 |
Removed: jython-2.5.0.ebuild |
6 |
Log: |
7 |
Cleanup first rev. New slot for 2.5.0. Tests now work, mostly. |
8 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.64 dev-java/jython/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?rev=1.64&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?rev=1.64&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?r1=1.63&r2=1.64 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v |
20 |
retrieving revision 1.63 |
21 |
retrieving revision 1.64 |
22 |
diff -u -r1.63 -r1.64 |
23 |
--- ChangeLog 18 Jun 2009 10:51:11 -0000 1.63 |
24 |
+++ ChangeLog 22 Jun 2009 10:02:39 -0000 1.64 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-java/jython |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.63 2009/06/18 10:51:11 ali_bush Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.64 2009/06/22 10:02:39 ali_bush Exp $ |
30 |
+ |
31 |
+*jython-2.5.0-r1 (22 Jun 2009) |
32 |
+ |
33 |
+ 22 Jun 2009; Alistair Bush <ali_bush@g.o> -jython-2.5.0.ebuild, |
34 |
+ +jython-2.5.0-r1.ebuild, files/jython-2.5.0-build.patch: |
35 |
+ Cleanup first rev. New slot for 2.5.0. Tests now work, mostly. |
36 |
|
37 |
*jython-2.5.0 (18 Jun 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-java/jython/jython-2.5.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/jython-2.5.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/jython-2.5.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: jython-2.5.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.5.0-r1.ebuild,v 1.1 2009/06/22 10:02:39 ali_bush Exp $ |
52 |
|
53 |
JAVA_PKG_IUSE="source doc examples oracle" |
54 |
#informix missing. This is a jdbc driver, similar to oracle use flag |
55 |
#functionality. |
56 |
|
57 |
EAPI="2" |
58 |
|
59 |
inherit base java-pkg-2 java-ant-2 |
60 |
|
61 |
DESCRIPTION="An implementation of Python written in Java" |
62 |
HOMEPAGE="http://www.jython.org" |
63 |
|
64 |
PYVER="2.5.4" |
65 |
|
66 |
SRC_URI="http://www.python.org/ftp/python/${PYVER%_*}/Python-${PYVER}.tgz |
67 |
mirror://gentoo/${P}.tar.bz2" |
68 |
|
69 |
LICENSE="PSF-2.2" |
70 |
SLOT="2.5" |
71 |
KEYWORDS="~amd64 ~ppc ~x86" |
72 |
IUSE="" |
73 |
|
74 |
#>=dev-java/jdbc-mysql-3.1 |
75 |
#dev-java/jdbc-postgresql |
76 |
CDEPEND="=dev-java/jakarta-oro-2.0* |
77 |
>=dev-java/libreadline-java-0.8.0 |
78 |
dev-java/asm:3 |
79 |
oracle? ( dev-java/jdbc-oracle-bin:10.2 ) |
80 |
java-virtuals/servlet-api:2.5 |
81 |
!<=dev-java/freemarker-2.3.10 |
82 |
dev-java/constantine:0 |
83 |
dev-java/jline:0 |
84 |
dev-java/jna-posix:0 |
85 |
dev-java/jna:0 |
86 |
dev-java/antlr:0 |
87 |
dev-java/antlr:3 |
88 |
dev-java/stringtemplate:0 |
89 |
dev-java/xerces:2" |
90 |
RDEPEND=">=virtual/jre-1.5 |
91 |
${CDEPEND}" |
92 |
DEPEND=">=virtual/jdk-1.5 |
93 |
dev-java/ant-core:0 |
94 |
dev-java/junit:0 |
95 |
${CDEPEND}" |
96 |
|
97 |
java_prepare() { |
98 |
epatch "${FILESDIR}/${P}-build.patch" |
99 |
|
100 |
rm -Rfv org || die "Unable to remove class files." |
101 |
find extlibs -iname '*.jar' | xargs rm -fv || die "Unable to remove bundled jars" |
102 |
find "${WORKDIR}" -iname '*.pyc' | xargs rm -fv |
103 |
java-pkg_jar-from --into extlibs libreadline-java libreadline-java.jar \ |
104 |
libreadline-java-0.8.jar |
105 |
java-pkg_jar-from --into extlibs antlr-3 antlr3.jar antlr-3.1.2.jar |
106 |
java-pkg_jar-from --into extlibs antlr antlr.jar antlr-2.7.7.jar |
107 |
java-pkg_jar-from --into extlibs stringtemplate stringtemplate.jar \ |
108 |
stringtemplate-3.2.jar |
109 |
java-pkg_jar-from --into extlibs servlet-api-2.5 servlet-api.jar \ |
110 |
servlet-api-2.5.jar |
111 |
java-pkg_jar-from --into extlibs asm-3 asm.jar asm-3.1.jar |
112 |
java-pkg_jar-from --into extlibs asm-3 asm-commons.jar \ |
113 |
asm-commons-3.1.jar |
114 |
java-pkg_jar-from --into extlibs constantine constantine.jar \ |
115 |
constantine-0.4.jar |
116 |
java-pkg_jar-from --into extlibs jline jline.jar \ |
117 |
jline-0.9.95-SNAPSHOT.jar |
118 |
java-pkg_jar-from --into extlibs jna jna.jar |
119 |
java-pkg_jar-from --into extlibs jna-posix jna-posix.jar |
120 |
java-pkg_jar-from --build-only --into extlibs ant-core ant.jar |
121 |
java-pkg_jar-from --build-only --into extlibs junit junit.jar \ |
122 |
junit-3.8.2.jar |
123 |
java-pkg_jar-from --into extlibs xerces-2 xercesImpl.jar \ |
124 |
xercesImpl-2.9.1.jar |
125 |
|
126 |
echo "has.repositories.connection=false" > ant.properties |
127 |
|
128 |
if use oracle; then |
129 |
echo \ |
130 |
"oracle.jar=$(java-pkg-getjar jdbc-oracle-bin-10.2 ojdbc14.jar)" \ |
131 |
>> ant.properties |
132 |
fi |
133 |
} |
134 |
|
135 |
src_compile() { |
136 |
local antflags="" |
137 |
local pylib="../Python-${PYVER}/Lib" |
138 |
antflags="${antflags} -Dpython.lib=${pylib}" |
139 |
eant ${antflags} developer-build $(use_doc javadoc) |
140 |
} |
141 |
|
142 |
src_test() { |
143 |
# 4 regrtests fail, only 1 is a "valid" failure. |
144 |
# others are X11/awt errors which will never work here. |
145 |
local antflags="" |
146 |
antflags="${antflags} -Dgentoo.library.path=$(java-config -di jna-posix)" |
147 |
antflags="${antflags} -Dpython.home=dist" |
148 |
local pylib="../Python-${PYVER}/Lib" |
149 |
antflags="${antflags} -Dpython.lib=${pylib}" |
150 |
ANT_TASKS="ant-junit" eant ${antflags} test |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
dodoc README.txt NEWS ACKNOWLEDGMENTS README.txt |
155 |
cd dist || die |
156 |
java-pkg_newjar "${PN}-dev.jar" |
157 |
|
158 |
local java_args="-Dpython.home=/usr/share/${PN}-${SLOT}" |
159 |
java_args="${java_args} -Dpython.cachedir=\${HOME}/.jythoncachedir" |
160 |
|
161 |
java-pkg_dolauncher jython-${SLOT} \ |
162 |
--main "org.python.util.jython" \ |
163 |
--pkg_args "${java_args}" |
164 |
|
165 |
java-pkg_register-optional-dependency jdbc-mysql |
166 |
java-pkg_register-optional-dependency jdbc-postgresql |
167 |
|
168 |
insinto /usr/share/${PN}-${SLOT} |
169 |
doins -r Lib registry |
170 |
|
171 |
use doc && java-pkg_dojavadoc Doc/javadoc |
172 |
use source && java-pkg_dosrc ../src |
173 |
use examples && java-pkg_doexamples Demo/* |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
einfo "Version of jython > 2.2* no longer has jythonc. Please see" |
178 |
einfo "http://www.jython.org/Project/jythonc.html for details" |
179 |
|
180 |
if use readline; then |
181 |
elog |
182 |
elog "To use readline you need to add the following to your registry" |
183 |
elog |
184 |
elog "python.console=org.python.util.ReadlineConsole" |
185 |
elog "python.console.readlinelib=GnuReadline" |
186 |
elog |
187 |
elog "The global registry can be found in /usr/share/${PN}/registry" |
188 |
elog "User registry in \$HOME/.jython" |
189 |
elog "See http://www.jython.org/docs/registry.html for more information" |
190 |
elog "" |
191 |
fi |
192 |
} |