summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-06-11 18:23:00 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-06-19 10:06:41 +0200
commitba29d0c5bc3cc5a71e349ddfc3a43d8f30fd2b52 (patch)
treedb21f33457cdcc5eba3bd25e84ddf0ae9bcdf78b /dev-lang
parentdev-java/cortado: rewrite with java-pkg-simple (diff)
downloadgentoo-ba29d0c5bc3cc5a71e349ddfc3a43d8f30fd2b52.tar.gz
gentoo-ba29d0c5bc3cc5a71e349ddfc3a43d8f30fd2b52.tar.bz2
gentoo-ba29d0c5bc3cc5a71e349ddfc3a43d8f30fd2b52.zip
dev-lang/interprolog: rewrite with java-pkg-simple
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/36770/commits/f5f48ba75dbb51ae9bb8914c79a698dbf41b1002 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/interprolog/files/build.xml45
-rw-r--r--dev-lang/interprolog/interprolog-2.1.2-r3.ebuild60
2 files changed, 60 insertions, 45 deletions
diff --git a/dev-lang/interprolog/files/build.xml b/dev-lang/interprolog/files/build.xml
deleted file mode 100644
index a24536d8936d..000000000000
--- a/dev-lang/interprolog/files/build.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?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="${gentoo.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 classpath="${gentoo.classpath}" 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/interprolog-2.1.2-r3.ebuild b/dev-lang/interprolog/interprolog-2.1.2-r3.ebuild
new file mode 100644
index 000000000000..f53ed5917e12
--- /dev/null
+++ b/dev-lang/interprolog/interprolog-2.1.2-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc"
+
+inherit java-pkg-2 java-pkg-simple
+
+MY_P="${PN}$(ver_rs 1- '')"
+
+DESCRIPTION="InterProlog is a Java front-end and enhancement for Prolog"
+HOMEPAGE="https://declarativa.com/InterProlog/"
+SRC_URI="https://declarativa.com/InterProlog/${MY_P}.zip"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+
+DEPEND="
+ dev-java/junit:0
+ >=virtual/jdk-1.8:*
+ || (
+ dev-lang/xsb
+ dev-lang/swi-prolog
+ dev-lang/yap )"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+HTML_DOCS=( INSTALL.htm faq.htm prologAPI.htm )
+PATCHES=(
+ "${FILESDIR}"/${P}-java1.4.patch
+ "${FILESDIR}"/${P}-java17.patch
+)
+
+JAVA_CLASSPATH_EXTRA="junit"
+JAVA_RESOURCE_DIRS="res"
+JAVA_SRC_DIR="com"
+
+src_prepare() {
+ default #780585
+ java-pkg-2_src_prepare
+ java-pkg_clean
+ rm -r htmldocs || die
+ mkdir res || die
+ find com -type f ! -name '*.java' \
+ | xargs cp --parents -t res || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+
+ if use doc ; then
+ dodoc -r images
+ dodoc PaperEPIA01.doc
+ fi
+}