summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-10-24 23:04:40 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-10-24 23:04:40 +0000
commitba0b00b53f94b1131f4c966806360c82a70c6ebd (patch)
tree1f048e8df98505ecc6ebed9e773364af1171bf6c /app-misc/jitac
parentrevbump(s). fix imageop integer overflows (CVE-2007-4965), bug 192876 (diff)
downloadgentoo-2-ba0b00b53f94b1131f4c966806360c82a70c6ebd.tar.gz
gentoo-2-ba0b00b53f94b1131f4c966806360c82a70c6ebd.tar.bz2
gentoo-2-ba0b00b53f94b1131f4c966806360c82a70c6ebd.zip
Fix jitac -R by including the README file in the jar. Reported in bug #196842.
(Portage version: 2.1.3.15)
Diffstat (limited to 'app-misc/jitac')
-rw-r--r--app-misc/jitac/ChangeLog8
-rw-r--r--app-misc/jitac/files/digest-jitac-0.2.0-r33
-rw-r--r--app-misc/jitac/jitac-0.2.0-r3.ebuild38
3 files changed, 48 insertions, 1 deletions
diff --git a/app-misc/jitac/ChangeLog b/app-misc/jitac/ChangeLog
index 48facc45cd8e..b369cf476307 100644
--- a/app-misc/jitac/ChangeLog
+++ b/app-misc/jitac/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/jitac
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/jitac/ChangeLog,v 1.22 2007/10/24 15:48:38 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/jitac/ChangeLog,v 1.23 2007/10/24 23:04:39 betelgeuse Exp $
+
+*jitac-0.2.0-r3 (24 Oct 2007)
+
+ 24 Oct 2007; Petteri Räty <betelgeuse@gentoo.org> jitac-0.2.0-r2.ebuild,
+ +jitac-0.2.0-r3.ebuild:
+ Fix jitac -R by including the README file in the jar. Reported in bug #196842.
24 Oct 2007; Markus Meier <maekke@gentoo.org> jitac-0.2.0-r2.ebuild:
x86 stable, bug #196842
diff --git a/app-misc/jitac/files/digest-jitac-0.2.0-r3 b/app-misc/jitac/files/digest-jitac-0.2.0-r3
new file mode 100644
index 000000000000..1aeb87ca288b
--- /dev/null
+++ b/app-misc/jitac/files/digest-jitac-0.2.0-r3
@@ -0,0 +1,3 @@
+MD5 19ac668f525dd9b60bb53ccc3265e577 jitac-0.2.0.src.jar 193331
+RMD160 b7edead136952f28f48da0ab25fa831bcd8751d5 jitac-0.2.0.src.jar 193331
+SHA256 a95130a52ec2e730bc0ec9f64863f5f17b5963fb73757783f04713d7b640eb5d jitac-0.2.0.src.jar 193331
diff --git a/app-misc/jitac/jitac-0.2.0-r3.ebuild b/app-misc/jitac/jitac-0.2.0-r3.ebuild
new file mode 100644
index 000000000000..1bab5cd4878b
--- /dev/null
+++ b/app-misc/jitac/jitac-0.2.0-r3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/jitac/jitac-0.2.0-r3.ebuild,v 1.1 2007/10/24 23:04:39 betelgeuse Exp $
+
+inherit java-pkg-2
+
+DESCRIPTION="An image to ASCII converter written in Java"
+HOMEPAGE="http://www.roqe.org/jitac/"
+SRC_URI="http://www.roqe.org/jitac/${P}.src.jar"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+DEPEND=">=virtual/jdk-1.3
+ dev-java/sun-jimi"
+RDEPEND=">=virtual/jre-1.3
+ dev-java/sun-jimi"
+
+S=${WORKDIR}
+
+src_unpack() {
+ jar -xvf "${DISTDIR}"/${A} || die "failed to unpack"
+}
+
+src_compile() {
+ ejavac -classpath $(java-pkg_getjars sun-jimi):. $(find -name *.java)
+ find . -name "*.class" -or -name "*.bdf" \
+ -or -name "*.properties" -or -name "README" \
+ | xargs jar -cf ${PN}.jar || die "failed to create jar"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ java-pkg_dolauncher ${PN} --main org.roqe.jitac.Jitac
+
+ dodoc org/roqe/jitac/README
+ use doc && java-pkg_dohtml -r org/roqe/jitac/docs/*
+}