1 |
ali_bush 09/06/18 10:51:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: jython-2.5.0.ebuild |
5 |
Log: |
6 |
Version Bump. New slot as seems to break at least one existing package. Tests still do not work :| |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.63 dev-java/jython/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?rev=1.63&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?rev=1.63&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?r1=1.62&r2=1.63 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v |
19 |
retrieving revision 1.62 |
20 |
retrieving revision 1.63 |
21 |
diff -u -r1.62 -r1.63 |
22 |
--- ChangeLog 27 May 2009 10:31:37 -0000 1.62 |
23 |
+++ ChangeLog 18 Jun 2009 10:51:11 -0000 1.63 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-java/jython |
26 |
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.62 2009/05/27 10:31:37 fauli Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.63 2009/06/18 10:51:11 ali_bush Exp $ |
30 |
+ |
31 |
+*jython-2.5.0 (18 Jun 2009) |
32 |
+ |
33 |
+ 18 Jun 2009; Alistair Bush <ali_bush@g.o> +jython-2.5.0.ebuild, |
34 |
+ +files/jython-2.5.0-build.patch: |
35 |
+ Version Bump. New slot as seems to break at least one existing package. |
36 |
+ Tests still do not work |
37 |
|
38 |
27 May 2009; Christian Faulhammer <fauli@g.o> |
39 |
jython-2.2.1-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-java/jython/jython-2.5.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/jython-2.5.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/jython-2.5.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: jython-2.5.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.5.0.ebuild,v 1.1 2009/06/18 10:51:11 ali_bush Exp $ |
53 |
|
54 |
JAVA_PKG_IUSE="source doc examples oracle" |
55 |
#jdnc |
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" |
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 |
CDEPEND="=dev-java/jakarta-oro-2.0* |
75 |
>=dev-java/libreadline-java-0.8.0 |
76 |
>=dev-java/jdbc-mysql-3.1 |
77 |
dev-java/jdbc-postgresql |
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 |
RDEPEND=">=virtual/jre-1.5 |
90 |
${CDEPEND}" |
91 |
DEPEND=">=virtual/jdk-1.5 |
92 |
dev-java/ant-core:0 |
93 |
dev-java/junit:0 |
94 |
${CDEPEND}" |
95 |
|
96 |
#Tests currently very broken. Need to investigate whether that |
97 |
#is jython's or gentoo's doing. |
98 |
#RESTRICT="test" |
99 |
|
100 |
java_prepare() { |
101 |
epatch "${FILESDIR}/${P}-build.patch" |
102 |
|
103 |
rm -Rfv org || die "Unable to remove class files." |
104 |
find . -iname '*.jar' | xargs rm -fv || die "Unable to remove bundled jars" |
105 |
|
106 |
java-pkg_jar-from --into extlibs libreadline-java libreadline-java.jar \ |
107 |
libreadline-java-0.8.jar |
108 |
java-pkg_jar-from --into extlibs antlr-3 antlr3.jar antlr-3.1.2.jar |
109 |
java-pkg_jar-from --into extlibs antlr antlr.jar antlr-2.7.7.jar |
110 |
java-pkg_jar-from --into extlibs stringtemplate stringtemplate.jar \ |
111 |
stringtemplate-3.2.jar |
112 |
java-pkg_jar-from --into extlibs servlet-api-2.5 servlet-api.jar \ |
113 |
servlet-api-2.5.jar |
114 |
java-pkg_jar-from --into extlibs jdbc-mysql jdbc-mysql.jar \ |
115 |
mysql-connector-java-5.1.6.jar |
116 |
java-pkg_jar-from --into extlibs jdbc-postgresql \ |
117 |
jdbc-postgresql.jar postgresql-8.3-603.jdbc4.jar |
118 |
java-pkg_jar-from --into extlibs asm-3 asm.jar asm-3.1.jar |
119 |
java-pkg_jar-from --into extlibs asm-3 asm-commons.jar \ |
120 |
asm-commons-3.1.jar |
121 |
java-pkg_jar-from --into extlibs constantine constantine.jar \ |
122 |
constantine-0.4.jar |
123 |
java-pkg_jar-from --into extlibs jline jline.jar \ |
124 |
jline-0.9.95-SNAPSHOT.jar |
125 |
java-pkg_jar-from --into extlibs jna jna.jar |
126 |
java-pkg_jar-from --into extlibs jna-posix jna-posix.jar |
127 |
java-pkg_jar-from --build-only --into extlibs ant-core ant.jar |
128 |
java-pkg_jar-from --build-only --into extlibs junit junit.jar \ |
129 |
junit-3.8.2.jar |
130 |
|
131 |
echo "has.repositories.connection=false" > ant.properties |
132 |
|
133 |
if use oracle; then |
134 |
echo \ |
135 |
"oracle.jar=$(java-pkg-getjar jdbc-oracle-bin-10.2 ojdbc14.jar)" \ |
136 |
>> ant.properties |
137 |
fi |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
local antflags="" |
142 |
local pylib="../Python-${PYVER}/Lib" |
143 |
antflags="${antflags} -Dpython.lib=${pylib}" |
144 |
eant ${antflags} developer-build $(use_doc javadoc) |
145 |
} |
146 |
|
147 |
src_test() { |
148 |
local antflags="-Dbase.path=src/java -Dsource.dir=src/java/src" |
149 |
antflags="${antflags} -Dgentoo.library.path=$(java-config -di jna-posix)" |
150 |
antflags="${antflags} -Dpython.home=dist" |
151 |
local pylib="Python-${PYVER}/Lib" |
152 |
antflags="${antflags} -Dpython.lib=${pylib}" |
153 |
eant ${antflags} bugtest |
154 |
} |
155 |
|
156 |
src_install() { |
157 |
dodoc README.txt NEWS ACKNOWLEDGMENTS README.txt |
158 |
cd dist || die |
159 |
java-pkg_newjar "${PN}-dev.jar" |
160 |
|
161 |
local java_args="-Dpython.home=/usr/share/${PN}-${SLOT}" |
162 |
java_args="${java_args} -Dpython.cachedir=\${HOME}/.jythoncachedir" |
163 |
|
164 |
java-pkg_dolauncher jython \ |
165 |
--main "org.python.util.jython" \ |
166 |
--pkg_args "${java_args}" |
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 |
if use readline; then |
178 |
elog "To use readline you need to add the following to your registry" |
179 |
elog |
180 |
elog "python.console=org.python.util.ReadlineConsole" |
181 |
elog "python.console.readlinelib=GnuReadline" |
182 |
elog |
183 |
elog "The global registry can be found in /usr/share/${PN}/registry" |
184 |
elog "User registry in \$HOME/.jython" |
185 |
elog "See http://www.jython.org/docs/registry.html for more information" |
186 |
elog "" |
187 |
fi |
188 |
} |