Initial import. Fixes #63296.
authorKarl Trygve Kalleberg <karltk@gentoo.org>
Sat, 4 Dec 2004 14:03:26 +0000 (14:03 +0000)
committerKarl Trygve Kalleberg <karltk@gentoo.org>
Sat, 4 Dec 2004 14:03:26 +0000 (14:03 +0000)
dev-java/fesi/ChangeLog [new file with mode: 0644]
dev-java/fesi/Manifest [new file with mode: 0644]
dev-java/fesi/fesi-1.1.8.ebuild [new file with mode: 0644]
dev-java/fesi/files/digest-fesi-1.1.8 [new file with mode: 0644]
dev-java/fesi/files/fesibuild.patch [new file with mode: 0644]
dev-java/fesi/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/fesi/ChangeLog b/dev-java/fesi/ChangeLog
new file mode 100644 (file)
index 0000000..6bfe304
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for dev-java/fesi
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed unde the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/fesi/ChangeLog,v 1.12 2004/12/04 14:03:26 karltk Exp $
+
+*fesi-1.1.8 (04 Dec 2004)
+
+  04 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org> fesi-1.1.8.ebuild:
+  Initial import. Ebuild submitted by Jan Brinkmann <lucky@the-luckduck.de>.
+  Fixes #63296.
diff --git a/dev-java/fesi/Manifest b/dev-java/fesi/Manifest
new file mode 100644 (file)
index 0000000..76a0bec
--- /dev/null
@@ -0,0 +1,5 @@
+MD5 1e807205c482d58a2ef7ca600734c33c fesi-1.1.8.ebuild 1374
+MD5 59abccd1ba4f06b67698cc40dbb70dba ChangeLog 403
+MD5 55ce07b0d699111c23be8e78db226526 metadata.xml 528
+MD5 6298e6801fb87ff37447cca4d20feba8 files/digest-fesi-1.1.8 70
+MD5 6606050081debeafe38715c2cbe219ea files/fesibuild.patch 3292
diff --git a/dev-java/fesi/fesi-1.1.8.ebuild b/dev-java/fesi/fesi-1.1.8.ebuild
new file mode 100644 (file)
index 0000000..97dfad7
--- /dev/null
@@ -0,0 +1,57 @@
+# 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
+}
diff --git a/dev-java/fesi/files/digest-fesi-1.1.8 b/dev-java/fesi/files/digest-fesi-1.1.8
new file mode 100644 (file)
index 0000000..f36594e
--- /dev/null
@@ -0,0 +1 @@
+MD5 8e2a31a28938bbe9ae89f0e403babb7d fesi-1.1.8.gentoo.tar.bz2 808213
diff --git a/dev-java/fesi/files/fesibuild.patch b/dev-java/fesi/files/fesibuild.patch
new file mode 100644 (file)
index 0000000..9318ac3
--- /dev/null
@@ -0,0 +1,75 @@
+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 &#169; 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
diff --git a/dev-java/fesi/metadata.xml b/dev-java/fesi/metadata.xml
new file mode 100644 (file)
index 0000000..07afc22
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+
+The library can be used to extend the capabilities of the EcmaScript 
+interpreter, allowing a Java program to create an interpreter, to evaluate 
+scripts, and to set and get properties of EcmaScript objects. It is largely 
+compatible with the Netscape JSObject and JSExeption classes, simplifying the 
+development of common code.
+
+</longdescription>
+</pkgmetadata>