1 |
serkan 09/01/31 14:27:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: jflex-1.4.1-r1.ebuild |
5 |
Removed: jflex-1.4.1.ebuild |
6 |
Log: |
7 |
Revbump to avoid bundling of unit tests in the jar. Migrate to EAPI 1. |
8 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 dev-java/jflex/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jflex/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jflex/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jflex/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/jflex/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 10 Jan 2008 22:34:32 -0000 1.3 |
24 |
+++ ChangeLog 31 Jan 2009 14:27:08 -0000 1.4 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-java/jflex |
27 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/ChangeLog,v 1.3 2008/01/10 22:34:32 caster Exp $ |
29 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/ChangeLog,v 1.4 2009/01/31 14:27:08 serkan Exp $ |
31 |
+ |
32 |
+*jflex-1.4.1-r1 (31 Jan 2009) |
33 |
+ |
34 |
+ 31 Jan 2009; Serkan Kaba <serkan@g.o> |
35 |
+ files/jflex-1.4.1-build.xml.patch, -jflex-1.4.1.ebuild, |
36 |
+ +jflex-1.4.1-r1.ebuild: |
37 |
+ Revbump to avoid bundling of unit tests in the jar. Migrate to EAPI 1. |
38 |
|
39 |
10 Jan 2008; Vlastimil Babka <caster@g.o> jflex-1.4.1.ebuild: |
40 |
Restrict junit dependency. |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-java/jflex/jflex-1.4.1-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jflex/jflex-1.4.1-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jflex/jflex-1.4.1-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: jflex-1.4.1-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.4.1-r1.ebuild,v 1.1 2009/01/31 14:27:08 serkan Exp $ |
54 |
|
55 |
# Currently, this package uses an included JFlex.jar file to bootstrap. |
56 |
# Upstream was contacted and this bootstrap is really needed. The only way to avoid it would be to use a supplied pre-compiled .scanner file. |
57 |
|
58 |
EAPI="1" |
59 |
JAVA_PKG_IUSE="source" |
60 |
|
61 |
inherit java-pkg-2 java-ant-2 |
62 |
|
63 |
DESCRIPTION="JFlex is a lexical analyzer generator for Java" |
64 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
65 |
HOMEPAGE="http://www.jflex.de/" |
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~x86 ~amd64" |
69 |
RDEPEND=">=virtual/jre-1.4 |
70 |
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
71 |
>=dev-java/ant-core-1.7.0 |
72 |
>=dev-java/javacup-0.11a_beta20060608:0" |
73 |
|
74 |
DEPEND=">=virtual/jdk-1.4 |
75 |
dev-java/junit:0 |
76 |
>=dev-java/javacup-0.11a_beta20060608:0" |
77 |
|
78 |
IUSE="doc source vim-syntax" |
79 |
|
80 |
src_unpack() { |
81 |
unpack "${P}.tar.gz" |
82 |
cd "${S}/src" |
83 |
epatch "${FILESDIR}/${P}-build.xml.patch" |
84 |
|
85 |
mkdir "${S}/tools" |
86 |
cp "${S}/lib/JFlex.jar" "${S}/tools/JFlex.jar" |
87 |
rm -rf java_cup "${S}/lib/JFlex.jar" |
88 |
|
89 |
java-ant_rewrite-classpath |
90 |
} |
91 |
|
92 |
src_compile() { |
93 |
ANT_TASKS="javacup" |
94 |
jflex_cp="$(java-pkg_getjars --build-only junit):$(java-pkg_getjars ant-core,javacup)" |
95 |
cd "${S}/src" |
96 |
eant realclean |
97 |
eant -Dgentoo.classpath="${jflex_cp}" jar |
98 |
|
99 |
rm "${S}/tools/JFlex.jar" |
100 |
cp "${S}/lib/JFlex.jar" "${S}/tools/" |
101 |
rm "${S}/lib/JFlex.jar" |
102 |
|
103 |
eant realclean |
104 |
einfo "Recompiling using the newly generated JFlex library" |
105 |
eant -Dgentoo.classpath="${jflex_cp}" jar |
106 |
} |
107 |
|
108 |
src_install() { |
109 |
java-pkg_dojar lib/JFlex.jar |
110 |
java-pkg_dolauncher "${PN}" --main JFlex.Main |
111 |
java-pkg_register-ant-task |
112 |
|
113 |
dodoc doc/manual.pdf doc/manual.ps.gz src/changelog |
114 |
dohtml -r doc/* |
115 |
|
116 |
use source && java-pkg_dosrc src/JFlex |
117 |
|
118 |
if use vim-syntax; then |
119 |
insinto /usr/share/vim/vimfiles/syntax |
120 |
doins "${S}/lib/jflex.vim" |
121 |
fi |
122 |
} |