1 |
ali_bush 08/02/26 10:30:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: jython-2.2.1-r1.ebuild |
5 |
Log: |
6 |
Version bump jython |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.54 dev-java/jython/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?rev=1.54&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?rev=1.54&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/ChangeLog?r1=1.53&r2=1.54 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v |
19 |
retrieving revision 1.53 |
20 |
retrieving revision 1.54 |
21 |
diff -u -r1.53 -r1.54 |
22 |
--- ChangeLog 12 Apr 2007 14:02:21 -0000 1.53 |
23 |
+++ ChangeLog 26 Feb 2008 10:30:51 -0000 1.54 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-java/jython |
26 |
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.53 2007/04/12 14:02:21 welp Exp $ |
28 |
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.54 2008/02/26 10:30:51 ali_bush Exp $ |
30 |
+ |
31 |
+*jython-2.2.1-r1 (26 Feb 2008) |
32 |
+ |
33 |
+ 26 Feb 2008; Alistair Bush <ali_bush@g.o> |
34 |
+ +files/jython-2.2.1-build.patch, +jython-2.2.1-r1.ebuild: |
35 |
+ Version bump jython. |
36 |
|
37 |
12 Apr 2007; <welp@g.o> jython-2.1-r11.ebuild: |
38 |
Stable on amd64 wrt bug 172025 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-java/jython/jython-2.2.1-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/jython-2.2.1-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jython/jython-2.2.1-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: jython-2.2.1-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 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.2.1-r1.ebuild,v 1.1 2008/02/26 10:30:51 ali_bush Exp $ |
52 |
|
53 |
JAVA_PKG_IUSE="readline source doc servletapi mysql postgres examples oracle" |
54 |
#jdnc |
55 |
|
56 |
EAPI=1 |
57 |
|
58 |
inherit base java-pkg-2 java-ant-2 |
59 |
|
60 |
DESCRIPTION="An implementation of Python written in Java" |
61 |
HOMEPAGE="http://www.jython.org" |
62 |
|
63 |
MY_PV="installer-2.2.1" |
64 |
PYVER="2.2.3" |
65 |
|
66 |
SRC_URI="http://www.python.org/ftp/python/${PYVER%_*}/Python-${PYVER}.tgz |
67 |
mirror://sourceforge/${PN}/${PN}_${MY_PV}.jar" |
68 |
|
69 |
LICENSE="JPython" |
70 |
SLOT="0" |
71 |
KEYWORDS="~amd64 ~ppc ~x86" |
72 |
IUSE="" |
73 |
|
74 |
CDEPEND="=dev-java/jakarta-oro-2.0* |
75 |
readline? ( >=dev-java/libreadline-java-0.8.0 ) |
76 |
mysql? ( >=dev-java/jdbc-mysql-3.1 ) |
77 |
postgres? ( dev-java/jdbc-postgresql ) |
78 |
oracle? ( dev-java/jdbc-oracle-bin:10.2 ) |
79 |
servletapi? ( java-virtuals/servlet-api:2.5 )" |
80 |
RDEPEND=">=virtual/jre-1.4 |
81 |
${CDEPEND}" |
82 |
DEPEND=">=virtual/jdk-1.4 |
83 |
dev-java/javacc |
84 |
${CDEPEND}" |
85 |
|
86 |
S="${WORKDIR}" |
87 |
|
88 |
#Tests currently very broken. Need to investigate whether that |
89 |
#is jython's or gentoo's doing. |
90 |
RESTRICT="test" |
91 |
|
92 |
src_unpack() { |
93 |
unpack ${A} |
94 |
cd "${S}" |
95 |
|
96 |
epatch "${FILESDIR}/${P}-build.patch" |
97 |
|
98 |
rm -Rfv org || die "Unable to remove class files." |
99 |
find . -iname '*.jar' | xargs rm -fv || die "Unable to remove bundled jars" |
100 |
|
101 |
echo javacc.jar="$(java-pkg_getjars --build-only javacc)" > ant.properties |
102 |
|
103 |
if use readline; then |
104 |
echo "readline.jar=$(java-pkg_getjars libreadline-java)" >> \ |
105 |
ant.properties |
106 |
fi |
107 |
if use servletapi; then |
108 |
echo "servlet.jar=$(java-pkg_getjar --build-only servlet-api-2.5 servlet.jar)" \ |
109 |
>> ant.properties |
110 |
fi |
111 |
if use mysql; then |
112 |
echo "mysql.jar=$(java-pkg_getjar jdbc-mysql jdbc-mysql.jar)" \ |
113 |
>> ant.properties |
114 |
fi |
115 |
|
116 |
if use postgres; then |
117 |
echo \ |
118 |
"postgresql.jar=$(java-pkg_getjar jdbc-postgresql jdbc-postgresql.jar)"\ |
119 |
>> ant.properties |
120 |
fi |
121 |
|
122 |
if use oracle; then |
123 |
echo \ |
124 |
"oracle.jar=$(java-pkg-getjar jdbc-oracle-bin-10.2 ojdbc14.jar)" \ |
125 |
>> ant.properties |
126 |
fi |
127 |
} |
128 |
|
129 |
|
130 |
src_compile() { |
131 |
local antflags="-Dbase.path=src/java -Dsource.dir=src/java/src" |
132 |
local pylib="Python-${PYVER}/Lib" |
133 |
antflags="${antflags} -Dpython.lib=${pylib} -Dsvn.checkout.dir=." |
134 |
LC_ALL=C eant ${antflags} developer-build $(use_doc javadoc) |
135 |
} |
136 |
|
137 |
src_test() { |
138 |
local antflags="-Dbase.path=src/java -Dsource.dir=src/java/src" |
139 |
antflags="${antflags} -Dpython.home=dist" |
140 |
local pylib="Python-${PYVER}/Lib" |
141 |
antflags="${antflags} -Dpython.lib=${pylib}" |
142 |
eant ${antflags} bugtest |
143 |
} |
144 |
|
145 |
|
146 |
src_install() { |
147 |
java-pkg_dojar "dist/${PN}.jar" |
148 |
|
149 |
dodoc README.txt NEWS ACKNOWLEDGMENTS |
150 |
use doc && dohtml -A .css .jpg .gif -r Doc/* |
151 |
|
152 |
local java_args="-Dpython.home=/usr/share/jython" |
153 |
java_args="${java_args} -Dpython.cachedir=\${HOME}/.jythoncachedir" |
154 |
|
155 |
java-pkg_dolauncher jythonc \ |
156 |
--main "org.python.util.jython" \ |
157 |
--java_args "${java_args}" \ |
158 |
--pkg_args "${java_args} /usr/share/jython/tools/jythonc/jythonc.py" |
159 |
|
160 |
java-pkg_dolauncher jython \ |
161 |
--main "org.python.util.jython" \ |
162 |
--pkg_args "${java_args}" |
163 |
|
164 |
insinto /usr/share/${PN} |
165 |
doins -r dist/Lib registry |
166 |
|
167 |
insinto /usr/share/${PN}/tools |
168 |
doins -r dist/Tools/* |
169 |
|
170 |
use doc && java-pkg_dojavadoc dist/Doc/javadoc |
171 |
use source && java-pkg_dosrc src |
172 |
use examples && java-pkg_doexamples dist/Demo/* |
173 |
} |
174 |
|
175 |
pkg_postinst() { |
176 |
if use readline; then |
177 |
elog "To use readline you need to add the following to your registry" |
178 |
elog |
179 |
elog "python.console=org.python.util.ReadlineConsole" |
180 |
elog "python.console.readlinelib=GnuReadline" |
181 |
elog |
182 |
elog "The global registry can be found in /usr/share/${PN}/registry" |
183 |
elog "User registry in \$HOME/.jython" |
184 |
elog "See http://www.jython.org/docs/registry.html for more information" |
185 |
elog "" |
186 |
fi |
187 |
} |
188 |
|
189 |
|
190 |
|
191 |
-- |
192 |
gentoo-commits@l.g.o mailing list |