diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-01-05 17:18:46 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-01-23 10:42:34 +0100 |
commit | 633d8f3f8b302af9db6c7bcb26199825a970d4c7 (patch) | |
tree | 55cf384b7bbaaea7b5644262cfd1007e97e2c836 /dev-lang/tuprolog | |
parent | dev-java/cpptasks: add 1.0_beta5-r2 for >=dev-java/ant-1.10.14 (diff) | |
download | gentoo-633d8f3f8b302af9db6c7bcb26199825a970d4c7.tar.gz gentoo-633d8f3f8b302af9db6c7bcb26199825a970d4c7.tar.bz2 gentoo-633d8f3f8b302af9db6c7bcb26199825a970d4c7.zip |
dev-lang/tuprolog: add 3.2.0-r1 for >=dev-java/ant-1.10.14
also uses dev-java/hamcrest:0 instead of hamcrest-core:1.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/34745
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-lang/tuprolog')
-rw-r--r-- | dev-lang/tuprolog/tuprolog-3.2.0-r1.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-lang/tuprolog/tuprolog-3.2.0-r1.ebuild b/dev-lang/tuprolog/tuprolog-3.2.0-r1.ebuild new file mode 100644 index 000000000000..fadf22c3e489 --- /dev/null +++ b/dev-lang/tuprolog/tuprolog-3.2.0-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +RDEPEND="virtual/jdk:1.8 + dev-java/javassist:3 + dev-java/commons-lang:3.6 + dev-java/gson:2.6" + +DEPEND="${RDEPEND} + >=dev-java/ant-1.10.14 + test? ( + >=dev-java/ant-1.10.14:0[junit4] + dev-java/junit:4 + dev-java/hamcrest:0 + )" + +S="${WORKDIR}"/${P} + +EANT_GENTOO_CLASSPATH="javassist:3,commons-lang:3.6,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 + cd "${S}" + 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 +} |