--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/fesi/fesi-1.1.8.ebuild,v 1.1 2004/12/04 14:03:26 karltk Exp $
+
+inherit eutils java-pkg
+
+DESCRIPTION="JavaScript Interpreter written in Java"
+SRC_URI="http://dev.gentoo.org/~karltk/projects/java/distfiles/${P}.gentoo.tar.bz2"
+HOMEPAGE="http://www.lugrin.ch/fesi"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86" #karltk: ~amd64 is missing bsf-2.3"
+IUSE="doc jikes"
+DEPEND=">=virtual/jdk-1.3
+ jikes? ( >=dev-java/jikes-1.21 )
+ >=dev-java/ant-core-1.4
+ =dev-java/bsf-2.3*
+ =dev-java/oro-2.0*
+ >=dev-java/javacc-3.2"
+RDEPEND=">=virtual/jdk-1.3
+ =dev-java/gnu-regexp-1.1*"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/fesibuild.patch
+
+ bf=build.properties
+ cd ant/
+ echo "javaccdir=`java-config -p javacc`" > ${bf}
+ echo "ororegexp=`java-config -p oro`" >> ${bf}
+ echo "gnuregexp=`java-config -p gnu-regexp-1`" >> ${bf}
+ echo "bsfdir=`java-config -p bsf-2.3`" >> ${bf}
+}
+
+src_compile() {
+ cd ant/
+
+ local antflags="jars"
+ if use doc; then
+ antflags="${antflags} docs"
+ fi
+ if use jikes; then
+ antflags="${antflags} -Dbuild.compiler=jikes"
+ fi
+ ant ${antflags} || die "failed to build"
+}
+
+src_install() {
+ java-pkg_dojar lib/fesi.jar
+
+ dodoc License.txt Readme.txt
+ if use doc; then
+ java-pkg_dohtml -r doc/html/*
+ fi
+}
--- /dev/null
+diff -uprN fesi-1.1.8.orig/ant/build.xml fesi-1.1.8/ant/build.xml
+--- fesi-1.1.8.orig/ant/build.xml 2003-09-29 11:08:58.000000000 +0200
++++ fesi-1.1.8/ant/build.xml 2004-11-21 23:43:20.519967656 +0100
+@@ -6,20 +6,7 @@
+ <property name="version.level" value="1.1.8"/>\r
+ <property name="version.date" value="29-Sep-2003"/>\r
+ \r
+- \r
+- <!-- Allows us to use the IzPack Ant task -->\r
+- <taskdef name="izpack" classpath="${basedir}/lib/compiler.jar"\r
+- classname="com.izforge.izpack.ant.IzPackTask"/>\r
+-\r
+- \r
+- <!-- Referenced libraries -->\r
+- <property name="javaccdir" location = "C:/javadev/TOOLS/javacc-3.2/bin/lib/javacc.jar"/>\r
+- <property name="ororegexp" location="c:/javadev/LIBS/jakarta-oro-2.0.7/jakarta-oro-2.0.7.jar"/>\r
+- <property name="gnuregexp" location="c:/javadev/LIBS/gnu.regexp-1.1.4/lib/gnu-regexp-1.1.4.jar"/>\r
+- \r
+- <property name="bsfdir" location = "C:/javadev/LIBS/bsf-2.3.0/lib/bsf.jar"/>\r
+- \r
+- <property name="izpackdir" location = "C:/program files/IzPack"/>\r
++ <property file="ant/build.properties" />\r
+ \r
+ <!-- Source content directory structure -->\r
+ <property name="src" location="src"/>\r
+@@ -143,7 +130,11 @@
+ <!-- Compile the java code from ${src} into ${build} -->\r
+ <target name="compile" depends="init"\r
+ description="compile the source " >\r
+- <javac srcdir="${src}" destdir="${build}" debug="true">\r
++ <javac srcdir="${src}" \r
++ destdir="${build}" \r
++ debug="true"\r
++ source="1.3"\r
++ target="1.3">\r
+ <classpath refid="project.compile.class.path"/>\r
+ </javac>\r
+ </target>\r
+@@ -170,6 +161,7 @@
+ <doctitle><![CDATA[<h1>Test</h1>]]></doctitle>\r
+ <bottom><![CDATA[<i>Copyright © 2003 Jean-Marc Lugrin. All Rights Reserved. Licensed under LGPL</i>]]></bottom>\r
+ <link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>\r
++ <classpath refid="project.compile.class.path"/>\r
+ </javadoc>\r
+ </target>\r
+ \r
+diff -uprN fesi-1.1.8.orig/src/FESI/Interpreter/Version.in fesi-1.1.8/src/FESI/Interpreter/Version.in
+--- fesi-1.1.8.orig/src/FESI/Interpreter/Version.in 2003-08-26 17:38:56.000000000 +0200
++++ fesi-1.1.8/src/FESI/Interpreter/Version.in 1970-01-01 01:00:00.000000000 +0100
+@@ -1,25 +0,0 @@
+-// EcmaScriptEvaluateVisitor.java\r
+-// FESI Copyright (c) Jean-Marc Lugrin, 1999\r
+-//\r
+-// This program is free software; you can redistribute it and/or\r
+-// modify it under the terms of the GNU Lesser General Public\r
+-// License as published by the Free Software Foundation; either\r
+-// version 2 of the License, or (at your option) any later version.\r
+-\r
+-// This program is distributed in the hope that it will be useful,\r
+-// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+-// Lesser General Public License for more details.\r
+-\r
+-// You should have received a copy of the GNU Lesser General Public\r
+-// License along with this library; if not, write to the Free Software\r
+-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
+-package FESI.Interpreter;\r
+-\r
+-/**\r
+- * Contains version identification\r
+- */\r
+-public class Version {\r
+- public static final String Level = "@VERSION.LEVEL@";\r
+- public static final String Date = "@VERSION.DATE@";\r
+-}\r