New ebuild for InterProlog.
authorKeri Harris <keri@gentoo.org>
Fri, 2 Feb 2007 19:12:31 +0000 (19:12 +0000)
committerKeri Harris <keri@gentoo.org>
Fri, 2 Feb 2007 19:12:31 +0000 (19:12 +0000)
Package-Manager: portage-2.1.2-r6

dev-lang/interprolog/ChangeLog [new file with mode: 0644]
dev-lang/interprolog/Manifest [new file with mode: 0644]
dev-lang/interprolog/files/build.xml [new file with mode: 0644]
dev-lang/interprolog/files/digest-interprolog-2.1.2 [new file with mode: 0644]
dev-lang/interprolog/files/interprolog-2.1.2-java1.4.patch [new file with mode: 0644]
dev-lang/interprolog/interprolog-2.1.2.ebuild [new file with mode: 0644]
dev-lang/interprolog/metadata.xml [new file with mode: 0644]

diff --git a/dev-lang/interprolog/ChangeLog b/dev-lang/interprolog/ChangeLog
new file mode 100644 (file)
index 0000000..dad168f
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for dev-lang/interprolog
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/interprolog/ChangeLog,v 1.1 2007/02/02 19:12:31 keri Exp $
+
+*interprolog-2.1.2 (02 Feb 2007)
+
+  02 Feb 2007; keri <keri@gentoo.org>
+  +files/interprolog-2.1.2-java1.4.patch, +files/build.xml, +metadata.xml,
+  +interprolog-2.1.2.ebuild:
+  New ebuild for InterProlog.
+
diff --git a/dev-lang/interprolog/Manifest b/dev-lang/interprolog/Manifest
new file mode 100644 (file)
index 0000000..959e53b
--- /dev/null
@@ -0,0 +1,24 @@
+AUX build.xml 1422 RMD160 0796fdc4c8ffb7f12df9e6d2f131c3416c1861ee SHA1 8a37999682e85d07a6fe544ff9f899c9aea7ae99 SHA256 fcf497a26f5f3ea7f2428af1ff313fa58f6084b0a425e2fe06892f31b35e3097
+MD5 e37791d8e48fab224f575be819ef8228 files/build.xml 1422
+RMD160 0796fdc4c8ffb7f12df9e6d2f131c3416c1861ee files/build.xml 1422
+SHA256 fcf497a26f5f3ea7f2428af1ff313fa58f6084b0a425e2fe06892f31b35e3097 files/build.xml 1422
+AUX interprolog-2.1.2-java1.4.patch 1341 RMD160 623c78417eb28f995c45eb1e75f0fc68ca73fa83 SHA1 ad08b5221711cdc04fb899a96a85c5dda9b31963 SHA256 64e0097816a2a288db96ce0ffd62735ce9425362627dee3bea5ab921193e702d
+MD5 4265f463c75cf6a9d034467ea4fe2dd9 files/interprolog-2.1.2-java1.4.patch 1341
+RMD160 623c78417eb28f995c45eb1e75f0fc68ca73fa83 files/interprolog-2.1.2-java1.4.patch 1341
+SHA256 64e0097816a2a288db96ce0ffd62735ce9425362627dee3bea5ab921193e702d files/interprolog-2.1.2-java1.4.patch 1341
+DIST interprolog212.zip 1066931 RMD160 49ce52cac6e44a7145b081b4826e8bc6f9ee4b37 SHA1 75b776262e0250eda9c508c1423a4c4a676026a3 SHA256 cf5b463576a51624703300a3966f1d3619d1ccd1011b59950b7b37365de8f182
+EBUILD interprolog-2.1.2.ebuild 1185 RMD160 7ad4e34cac02380761d55e5058f855731ecf2319 SHA1 0df32898b363719a24d5b4abdbf6ed8b552da792 SHA256 2ff28470cf63cb81092135296d0af4f0b42ccb2249c0ec386fb4b291d75c741f
+MD5 360eb9d7c49629fbfd3cd533eaa792a5 interprolog-2.1.2.ebuild 1185
+RMD160 7ad4e34cac02380761d55e5058f855731ecf2319 interprolog-2.1.2.ebuild 1185
+SHA256 2ff28470cf63cb81092135296d0af4f0b42ccb2249c0ec386fb4b291d75c741f interprolog-2.1.2.ebuild 1185
+MISC ChangeLog 418 RMD160 1e194fecdbe1ee00732ee7f50b35b4eb3059a060 SHA1 43d9a821faf7cc349dc0d28f338e12f03d6c6834 SHA256 8d22ed8d35bc3e6f04f3bd6452b2393f84066b20559831349573c723779c8961
+MD5 c218767edd0fa64aa62cdf86ee21fb51 ChangeLog 418
+RMD160 1e194fecdbe1ee00732ee7f50b35b4eb3059a060 ChangeLog 418
+SHA256 8d22ed8d35bc3e6f04f3bd6452b2393f84066b20559831349573c723779c8961 ChangeLog 418
+MISC metadata.xml 159 RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c SHA1 52b92682cf41e53e71bf432537a16215bd9546b1 SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba
+MD5 9187f53634e60ab7eb2ac7e98b0b19f7 metadata.xml 159
+RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c metadata.xml 159
+SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba metadata.xml 159
+MD5 55430021b37dc1cc7c878171086038d8 files/digest-interprolog-2.1.2 238
+RMD160 0a95aaa5e616971de3ac65c966163bb67aab3255 files/digest-interprolog-2.1.2 238
+SHA256 ae879d5e6bf1acd1b362b9e1ec14d98361d7c0db8f82d2443c965fcd31165a33 files/digest-interprolog-2.1.2 238
diff --git a/dev-lang/interprolog/files/build.xml b/dev-lang/interprolog/files/build.xml
new file mode 100644 (file)
index 0000000..9cfe5d7
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" ?><project default="jar" name="interprolog">
+
+       <!-- some properties -->
+       <property name="src.dir" value="src"/>
+       <property name="build.dir" value="build"/>
+       <property name="docs.dir" value="docs"/>
+       <property name="dist.dir" value="dist"/>
+       <property name="jarfile" value="${ant.project.name}.jar"/>
+       <property file="build.properties"/>
+
+       <!-- init -->
+       <target name="init">
+               <tstamp/>
+               <mkdir dir="${dist.dir}"/>
+               <mkdir dir="${build.dir}"/>
+               <mkdir dir="${docs.dir}"/>
+       </target>       
+
+       <!-- compile everything -->
+       <target depends="init" name="compile">
+               <javac classpath="${classpath}" deprecation="on" destdir="${build.dir}" encoding="ISO-8859-1" source="1.4" srcdir="${src.dir}" target="1.4"/>
+               <copy todir="${build.dir}">
+                       <fileset dir="${src.dir}">
+                               <exclude name="**/*.java"/>
+                       </fileset>
+               </copy>
+       </target>
+
+       <!-- build the jar file -->
+       <target depends="compile" name="jar">
+               <jar basedir="${build.dir}" jarfile="${dist.dir}/${jarfile}"/>
+       </target>
+
+       <!-- generate javadocs -->
+       <target depends="init" name="javadoc">
+               <javadoc author="true" destdir="${docs.dir}" encoding="ISO-8859-1" packagenames="com.*" source="1.4" sourcepath="${src.dir}" use="true" version="true" windowtitle="${ant.project.name} API"/>
+       </target>
+
+       <!-- clean up -->
+       <target name="clean">
+               <delete dir="${build.dir}"/>
+               <delete dir="${dist.dir}"/>
+               <delete dir="${docs.dir}"/>
+       </target>
+</project>
diff --git a/dev-lang/interprolog/files/digest-interprolog-2.1.2 b/dev-lang/interprolog/files/digest-interprolog-2.1.2
new file mode 100644 (file)
index 0000000..ddc41c6
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 5c9ccb5dcce2266f13796d45844a960f interprolog212.zip 1066931
+RMD160 49ce52cac6e44a7145b081b4826e8bc6f9ee4b37 interprolog212.zip 1066931
+SHA256 cf5b463576a51624703300a3966f1d3619d1ccd1011b59950b7b37365de8f182 interprolog212.zip 1066931
diff --git a/dev-lang/interprolog/files/interprolog-2.1.2-java1.4.patch b/dev-lang/interprolog/files/interprolog-2.1.2-java1.4.patch
new file mode 100644 (file)
index 0000000..614b2f2
--- /dev/null
@@ -0,0 +1,24 @@
+diff -ur interprolog212.orig/com/declarativa/interprolog/examples/SudokuWindow.java interprolog212/com/declarativa/interprolog/examples/SudokuWindow.java
+--- interprolog212.orig/com/declarativa/interprolog/examples/SudokuWindow.java 2005-10-20 15:14:12.000000000 +1300
++++ interprolog212/com/declarativa/interprolog/examples/SudokuWindow.java      2007-02-02 21:56:22.000000000 +1300
+@@ -34,7 +34,7 @@
+               JTable board = new SudokuBoard(model);\r
+               \r
+               getContentPane().add(BorderLayout.CENTER,board);\r
+-              pack(); show();\r
++              pack(); setVisible(true);\r
+       }\r
+       \r
+       /** An ObjectExamplePair illustrating how to pass around a matrix of basic type values */\r
+diff -ur interprolog212.orig/com/declarativa/interprolog/gui/ListenerWindow.java interprolog212/com/declarativa/interprolog/gui/ListenerWindow.java
+--- interprolog212.orig/com/declarativa/interprolog/gui/ListenerWindow.java    2005-09-15 17:57:44.000000000 +1200
++++ interprolog212/com/declarativa/interprolog/gui/ListenerWindow.java 2007-02-02 21:57:42.000000000 +1300
+@@ -344,7 +344,7 @@
+       void load_dynFile(){\r
+               String nome,directorio; File filetoreconsult=null;\r
+               FileDialog d = new FileDialog(this,"load_dyn file...");\r
+-              d.show();\r
++              d.setVisible(true);\r
+               nome = d.getFile(); directorio = d.getDirectory();\r
+               if (nome!=null) {\r
+                       filetoreconsult = new File(directorio,nome);\r
diff --git a/dev-lang/interprolog/interprolog-2.1.2.ebuild b/dev-lang/interprolog/interprolog-2.1.2.ebuild
new file mode 100644 (file)
index 0000000..f2f9e6f
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/interprolog/interprolog-2.1.2.ebuild,v 1.1 2007/02/02 19:12:31 keri Exp $
+
+inherit eutils java-pkg-2 java-ant-2 versionator
+
+MY_PV="$(delete_all_version_separators)"
+MY_P="${PN}${MY_PV}"
+
+DESCRIPTION="InterProlog is a Java front-end and enhancement for Prolog"
+HOMEPAGE="http://www.declarativa.com/interprolog/"
+SRC_URI="http://www.declarativa.com/interprolog/interprolog212.zip"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="doc"
+
+DEPEND=">=virtual/jdk-1.4
+       app-arch/unzip
+       dev-java/junit"
+
+RDEPEND=">=virtual/jdk-1.4
+       || (
+               dev-lang/xsb
+               dev-lang/swi-prolog
+               dev-lang/yap )"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       epatch "${FILESDIR}"/${P}-java1.4.patch
+
+       cp "${FILESDIR}"/build.xml "${S}"
+       mkdir "${S}"/src
+       mv "${S}"/com "${S}"/src
+       rm interprolog.jar junit.jar
+}
+
+src_compile() {
+       eant jar $(use_doc)
+}
+
+src_install() {
+       java-pkg_dojar dist/${PN}.jar
+
+       if use doc ; then
+               java-pkg_dohtml -r docs/*
+               dohtml INSTALL.htm faq.htm prologAPI.htm
+               dohtml -r images
+               dodoc PaperEPIA01.doc
+       fi
+}
diff --git a/dev-lang/interprolog/metadata.xml b/dev-lang/interprolog/metadata.xml
new file mode 100644 (file)
index 0000000..1990bb8
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>prolog</herd>
+</pkgmetadata>