summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2016-10-27 18:11:27 +0200
committerKeri Harris <keri@gentoo.org>2016-10-27 18:11:27 +0200
commit1af15300cd06f52241b395153d0b00e8edaaba6a (patch)
treead39419331c735ab94d8d68b1bb3eba97ae474cd
parentapp-benchmarks/sysbench: keyword for x86 (diff)
downloadgentoo-1af15300cd06f52241b395153d0b00e8edaaba6a.tar.gz
gentoo-1af15300cd06f52241b395153d0b00e8edaaba6a.tar.bz2
gentoo-1af15300cd06f52241b395153d0b00e8edaaba6a.zip
dev-lang/gnuprologjava: new package
Package-Manager: portage-2.3.0
-rw-r--r--dev-lang/gnuprologjava/Manifest1
-rw-r--r--dev-lang/gnuprologjava/files/gnuprologjava-0.2.6-manual.patch11
-rw-r--r--dev-lang/gnuprologjava/gnuprologjava-0.2.6.ebuild45
-rw-r--r--dev-lang/gnuprologjava/metadata.xml8
4 files changed, 65 insertions, 0 deletions
diff --git a/dev-lang/gnuprologjava/Manifest b/dev-lang/gnuprologjava/Manifest
new file mode 100644
index 000000000000..91c8e3185ee3
--- /dev/null
+++ b/dev-lang/gnuprologjava/Manifest
@@ -0,0 +1 @@
+DIST gnuprologjava-0.2.6-src.zip 477058 SHA256 cfc6e5b6a9da9fc865df03293c657253283e7cafdae6024f4863866a23f78198 SHA512 b175c74e754a7176f5fc38ea2215809bb9d60ec5b8852f99a48a72a0bdb316b33b7195ff5c85398bb63aa2e522d12dfc75e2ff3af9f89ff44448d2f73357f0a4 WHIRLPOOL 2f9a72077b4af37ab4f2c0cf305f16a1e11540faba02e14aa09346a27fb2463c19cb3259cd93139f12e749afeb0e6c44f406567b4a671c21b56d8a075e78aa0f
diff --git a/dev-lang/gnuprologjava/files/gnuprologjava-0.2.6-manual.patch b/dev-lang/gnuprologjava/files/gnuprologjava-0.2.6-manual.patch
new file mode 100644
index 000000000000..e6c1c09e8b13
--- /dev/null
+++ b/dev-lang/gnuprologjava/files/gnuprologjava-0.2.6-manual.patch
@@ -0,0 +1,11 @@
+--- gnuprologjava.orig/docs/manual.texinfo 2011-01-06 13:07:12.000000000 +0100
++++ gnuprologjava/docs/manual.texinfo 2016-10-27 17:25:09.265632090 +0200
+@@ -36,7 +36,7 @@
+ @titlepage
+ @title GNU Prolog for Java
+ @subtitle for version @value{VERSION}, @value{UPDATED}
+-@author Daniel Thomas (@email{info-gnuprolog@gnu.org})
++@author Daniel Thomas (@email{info-gnuprolog@@gnu.org})
+ @insertcopying
+ @end titlepage
+
diff --git a/dev-lang/gnuprologjava/gnuprologjava-0.2.6.ebuild b/dev-lang/gnuprologjava/gnuprologjava-0.2.6.ebuild
new file mode 100644
index 000000000000..ee1ae283bf8a
--- /dev/null
+++ b/dev-lang/gnuprologjava/gnuprologjava-0.2.6.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="GNU Prolog for Java is an implementation of ISO Prolog as a Java library"
+HOMEPAGE="http://www.gnu.org/software/gnuprologjava"
+SRC_URI="mirror://gnu/gnuprologjava/${P}-src.zip"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=">=virtual/jdk-1.6:="
+DEPEND="${RDEPEND}
+ dev-java/ant-core"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-manual.patch
+}
+
+src_compile() {
+ eant jar
+ if use doc ; then
+ eant doc
+ fi
+ mv build/${P}.jar build/${PN}.jar || die
+}
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+
+ if use doc ; then
+ java-pkg_dohtml -r build/api || die
+ java-pkg_dohtml -r build/manual || die
+ fi
+
+ dodoc NEWS.txt docs/readme.txt
+}
diff --git a/dev-lang/gnuprologjava/metadata.xml b/dev-lang/gnuprologjava/metadata.xml
new file mode 100644
index 000000000000..96eff3ea40c0
--- /dev/null
+++ b/dev-lang/gnuprologjava/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>prolog@gentoo.org</email>
+ <name>Prolog</name>
+</maintainer>
+</pkgmetadata>