summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-04-29 10:52:50 +0000
committerVlastimil Babka <caster@gentoo.org>2007-04-29 10:52:50 +0000
commitac0a181f6b857bbfcad64dcf0b353daed4dd6aac (patch)
treea76ae05dcb4a6bf47f9ace8ea1859b3781975a9c /media-gfx
parentx86 stable wrt #175221 (diff)
downloadgentoo-2-ac0a181f6b857bbfcad64dcf0b353daed4dd6aac.tar.gz
gentoo-2-ac0a181f6b857bbfcad64dcf0b353daed4dd6aac.tar.bz2
gentoo-2-ac0a181f6b857bbfcad64dcf0b353daed4dd6aac.zip
Revbump for migration to gen-2 eclasses and building from source instead of just installing upstream's jar. Introduces jgoodies-looks-1.2 dependency that upstream bundles in its jar.
(Portage version: 2.1.2.5)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/opcion/ChangeLog12
-rw-r--r--media-gfx/opcion/files/digest-opcion-1.1.1-r13
-rw-r--r--media-gfx/opcion/files/opcion-1.1.1-fix-source.patch15
-rw-r--r--media-gfx/opcion/opcion-1.1.1-r1.ebuild54
4 files changed, 82 insertions, 2 deletions
diff --git a/media-gfx/opcion/ChangeLog b/media-gfx/opcion/ChangeLog
index 57db3ae25d7a..716855f1c645 100644
--- a/media-gfx/opcion/ChangeLog
+++ b/media-gfx/opcion/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-gfx/opcion
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/opcion/ChangeLog,v 1.7 2006/11/22 08:27:07 opfer Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/opcion/ChangeLog,v 1.8 2007/04/29 10:52:50 caster Exp $
+
+*opcion-1.1.1-r1 (29 Apr 2007)
+
+ 29 Apr 2007; Vlastimil Babka <caster@gentoo.org>
+ +files/opcion-1.1.1-fix-source.patch, +opcion-1.1.1-r1.ebuild:
+ Revbump for migration to gen-2 eclasses and building from source instead of
+ just installing upstream's jar. Introduces jgoodies-looks-1.2 dependency
+ that upstream bundles in its jar.
22 Nov 2006; Christian Faulhammer <opfer@gentoo.org> opcion-1.1.1.ebuild:
stable x86, bug #155740
diff --git a/media-gfx/opcion/files/digest-opcion-1.1.1-r1 b/media-gfx/opcion/files/digest-opcion-1.1.1-r1
new file mode 100644
index 000000000000..30c664c5a7fa
--- /dev/null
+++ b/media-gfx/opcion/files/digest-opcion-1.1.1-r1
@@ -0,0 +1,3 @@
+MD5 3780702c2a400d7f46c9030d8c4db654 Opcion_v1.1.1_src.zip 319793
+RMD160 7c0009798996601f24beffb89539fe9a6774d948 Opcion_v1.1.1_src.zip 319793
+SHA256 f1af9606c63e200d860d01c2f7bd241031b857928b939fb8044d27aabf83f298 Opcion_v1.1.1_src.zip 319793
diff --git a/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch b/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch
new file mode 100644
index 000000000000..4c5f1dc9c9e3
--- /dev/null
+++ b/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch
@@ -0,0 +1,15 @@
+--- FontViewer/components/AAToggleButton.java 2007-04-29 12:20:16.000000000 +0200
++++ FontViewer/components/AAToggleButton.java 2007-04-29 12:10:53.000000000 +0200
+@@ -38,7 +38,11 @@
+ this.setToolTipText(fname + " (" + floc + ")");
+ }
+
+- public String getFName() {
++ public AAToggleButton(String s) {
++ super(s);
++ }
++
++ public String getFName() {
+ return fname;
+ }
+
diff --git a/media-gfx/opcion/opcion-1.1.1-r1.ebuild b/media-gfx/opcion/opcion-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..adbefc025a8f
--- /dev/null
+++ b/media-gfx/opcion/opcion-1.1.1-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/opcion/opcion-1.1.1-r1.ebuild,v 1.1 2007/04/29 10:52:50 caster Exp $
+
+inherit java-pkg-2
+
+MY_P="Opcion_v${PV}"
+
+DESCRIPTION="Free font viewer written in Java"
+HOMEPAGE="http://opcion.sourceforge.net/"
+SRC_URI="mirror://sourceforge/opcion/${MY_P}_src.zip"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+COMMON_DEP="=dev-java/jgoodies-looks-1.2*"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # add missing constructor
+ epatch "${FILESDIR}/${P}-fix-source.patch"
+
+ # calls nonexisting constructor and seems unused
+ rm FontViewer/windows/test.java || die
+
+ rm -rf com/jgoodies || die
+ find . -name '*.class' -delete || die
+ rm *.txt || die
+}
+
+src_compile() {
+ find . -name '*.java' > "${T}/src.list"
+ local cp="$(java-pkg_getjars jgoodies-looks-1.2)"
+ mkdir build || die
+ # quite icky way to copy resources
+ cp -R FontViewer com build || die
+ find build -name '*.java' -delete
+ ejavac -nowarn -classpath "${cp}" -d build "@${T}/src.list"
+ jar cf ${PN}.jar -C build . || die
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ java-pkg_dolauncher ${PN} --main FontViewer.Opcion
+}