commit:     63dc178975d3be478eee845bfa2c8f69c0c6e0ba
Author:     Keri Harris <keri <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 19 13:04:07 2020 +0000
Commit:     Keri Harris <keri <AT> gentoo <DOT> org>
CommitDate: Sun Jul 19 13:04:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63dc1789

dev-lang/tuprolog: version bump

Package-Manager: Portage-2.3.103, Repoman-2.3.22
Signed-off-by: Keri Harris <keri <AT> gentoo.org>

 dev-lang/tuprolog/Manifest              |   2 +
 dev-lang/tuprolog/files/build-3.x.xml   | 110 ++++++++++++++++++++++++++++++++
 dev-lang/tuprolog/tuprolog-3.2.0.ebuild |  71 +++++++++++++++++++++
 3 files changed, 183 insertions(+)

diff --git a/dev-lang/tuprolog/Manifest b/dev-lang/tuprolog/Manifest
index 38fcfb70bd6..4b2ae8c599e 100644
--- a/dev-lang/tuprolog/Manifest
+++ b/dev-lang/tuprolog/Manifest
@@ -1,3 +1,5 @@
 DIST tuprolog-2.9.2.tar.gz 6262268 BLAKE2B 
39bbc4dcb2336a713f47252ff6f7d00f15aa0072c4864c2d3e453ec43b2c646f9cdc7a69444e21d9cc20ba283ddee5fd980855811f8f80ba4afe7c37cdd47317
 SHA512 
831c7390fe33fc57cb01d4b1d61485ac5df1aa8ebf386d5aae5c5d32f7677d46aa5aa6cc0eb1d3bb79989a54f8484ad8b97754b7f75fc21af6116ae170a28316
 DIST tuprolog-3.0.1.tar.gz 6326591 BLAKE2B 
a051eb3f22c01e1c269b167fa7d1daec6e4818229e2035c1140401c38094c53451ea720638adaa6d6fda0ea70daf6f5f1bc9ea84f1e4ba9de9f00ca83529697c
 SHA512 
56fa96f717b5c8e56fd2979f2953744964d844e5abf215456e31309d3d92bde142f9bff55e6442b6de55f219c7f143a275ccf89359ff2f2944459bbc94770afa
 DIST tuprolog-3.1.0.tar.gz 7201383 BLAKE2B 
9d8b610240611cd5b3d0dae104a44c72bb5e7c0512e4dbf3e178204d9d36e461219cd869ca1e16e3054ca3e1ee34d3b2c6fa5c659df16f54e3266c7c826af8d6
 SHA512 
1093e29a79964cb3991326da14f020cdc8ff64f2444c84dbb6b22aa5c4ecbf48f74dbc26af0af949ccc31020573ce5908684af794db4654fb475efa697a82cbf
+DIST tuprolog-3.2.0-gentoo-patchset-0.tar.gz 1813 BLAKE2B 
4ed7ffbb752a821a2b2842cfdbc1f4ec92d14b35a1c5a722207b45ec9dbdc44588acc010fb6386e8ed2e7d30d3bc8d425f0f74e8cc953cb7afad8305904e1499
 SHA512 
454757fc01f3f697510426e7a2a41b57350c1e3f980e381e197616e10eaf88339155226096f1d417397b9bc6f4964a45b3d547c6794ad23a4a014b06212b08f0
+DIST tuprolog-3.2.0.tar.gz 6242286 BLAKE2B 
77a3d3f886673aca72fffd9bb60657efcbe7ea5bb0f84eea7a72df513295d572c8116472f8d544240fac676ac9a6a0fcecfc3166e6426ef7d8af80eac4ba8d85
 SHA512 
e27bd989d66bae26c646cb69670fb75232ebdd18d1dbb9d600f9847921ecd56d17221736b3ec15c087857509272ce89af8bc44924130430db3860870a06bb499

diff --git a/dev-lang/tuprolog/files/build-3.x.xml 
b/dev-lang/tuprolog/files/build-3.x.xml
new file mode 100644
index 00000000000..3b6f5818eaa
--- /dev/null
+++ b/dev-lang/tuprolog/files/build-3.x.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0" ?><project default="jar" name="tuprolog">
+
+       <!-- 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="test.dir" value="test"/>
+       <property name="test.build.dir" value="test.build"/>
+       <property name="jarfile" value="${ant.project.name}.jar"/>
+       <property file="build.properties"/>
+
+       <path id="compile.classpath">
+               <fileset dir="lib" includes="*.jar"/>
+               <pathelement path="${gentoo.classpath}"/>
+       </path>
+
+       <!-- init -->
+       <target name="init">
+               <tstamp/>
+               <mkdir dir="${dist.dir}"/>
+               <mkdir dir="${build.dir}"/>
+               <mkdir dir="${docs.dir}"/>
+               <mkdir dir="${test.build.dir}"/>
+       </target>       
+
+       <!-- compile everything -->
+       <target depends="init" name="compile">
+               <javac deprecation="off"
+                       destdir="${build.dir}"
+                       encoding="ISO-8859-1"
+                       srcdir="${src.dir}"
+                       source="1.8"
+                       target="1.8">
+                       <classpath>
+                               <path refid="compile.classpath"/>
+                       </classpath>
+               </javac>
+               <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}"/>
+               <jar basedir="${build.dir}" jarfile="${dist.dir}/2p.jar">
+                       <manifest>
+                               <attribute name="Main-Class" 
value="alice.tuprologx.ide.GUILauncher"/>
+                               <attribute name="Class-Path" value="."/>
+                       </manifest>
+                       <zipgroupfileset dir="lib" includes="*.jar"/>
+               </jar>
+       </target>
+
+       <!-- generate javadocs -->
+       <target depends="init" name="javadoc">
+               <javadoc
+                       author="false"
+                       destdir="${docs.dir}"
+                       encoding="ISO-8859-1"
+                       breakiterator="yes"
+                       packagenames="alice.*"
+                       sourcepath="${src.dir}"
+                       use="true"
+                       version="true"
+                       verbose="no"
+                       windowtitle="${ant.project.name} API">
+                       <classpath>
+                               <path refid="compile.classpath"/>
+                       </classpath>
+               </javadoc>
+       </target>
+
+       <!-- clean up -->
+       <target name="clean">
+               <delete dir="${build.dir}"/>
+               <delete dir="${dist.dir}"/>
+               <delete dir="${docs.dir}"/>
+               <delete dir="${test.build.dir}"/>
+       </target>
+
+       <!-- run testsuite -->
+       <target name="test">
+               <path id="dist.classpath">
+                       <fileset dir="${dist.dir}">
+                               <include name="*.jar"/>
+                       </fileset>
+               </path>
+               <javac classpathref="dist.classpath"
+                       deprecation="off"
+                       destdir="${test.build.dir}"
+                       encoding="ISO-8859-1"
+                       srcdir="${test.dir}/unit"
+                       source="1.8"
+                       target="1.8"/>
+               <junit fork="yes" failureproperty="test.failed" 
printsummary="yes">
+                       <classpath>
+                               <path refid="dist.classpath"/>
+                               <pathelement path="${test.build.dir}"/>
+                       </classpath>
+                       <formatter type="xml"/>
+                       <test name="alice.tuprolog.TuPrologTestSuite" 
todir="${test.build.dir}"/>
+                       <test name="alice.tuprolog.ExceptionsTestSuite" 
todir="${test.build.dir}"/>
+               </junit>
+               <fail message="Test failure(s) detected" if="test.failed" />
+       </target>
+</project>

diff --git a/dev-lang/tuprolog/tuprolog-3.2.0.ebuild 
b/dev-lang/tuprolog/tuprolog-3.2.0.ebuild
new file mode 100644
index 00000000000..0dcda3ed7c6
--- /dev/null
+++ b/dev-lang/tuprolog/tuprolog-3.2.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils java-pkg-2 java-ant-2
+
+PATCHSET_VER="0"
+
+DESCRIPTION="tuProlog is a light-weight Prolog for Internet applications and 
infrastructures"
+HOMEPAGE="http://tuprolog.unibo.it/";
+SRC_URI="https://dev.gentoo.org/~keri/distfiles/tuprolog/${P}.tar.gz
+       
https://dev.gentoo.org/~keri/distfiles/tuprolog/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz";
+
+LICENSE="LGPL-3 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=">=virtual/jdk-1.8:=
+       dev-java/javassist:3
+       dev-java/commons-lang:3.1
+       dev-java/gson:2.6"
+
+DEPEND="${RDEPEND}
+       dev-java/ant-core
+       test? (
+               dev-java/ant-junit4:0
+               dev-java/junit:4
+               dev-java/hamcrest-core:1.3
+       )"
+
+S="${WORKDIR}"/${P}
+
+EANT_GENTOO_CLASSPATH="javassist:3,commons-lang:3.1,gson:2.6"
+
+PATCHES=( "${WORKDIR}/${PV}" )
+
+src_prepare() {
+       default
+
+       cp "${FILESDIR}"/build-3.x.xml "${S}"/build.xml || die
+}
+
+src_compile() {
+       eant jar $(use_doc)
+}
+
+src_test() {
+       cd "${S}"/dist
+       java-pkg_jar-from junit:4
+       java-pkg_jar-from hamcrest-core:1.3
+       cd "${S}"
+       ANT_TASKS="ant-junit4" eant test || die "eant test failed"
+}
+
+src_install() {
+       java-pkg_dojar dist/${PN}.jar
+       java-pkg_dojar dist/2p.jar
+
+       if use doc ; then
+               java-pkg_dohtml -r docs/* || die
+               dodoc doc/tuprolog-guide.pdf
+       fi
+
+       if use examples ; then
+               docinto examples
+               dodoc doc/examples/*.pl
+       fi
+}

Reply via email to