/[gentoo-x86]/media-gfx/opcion/opcion-1.1.1-r1.ebuild
Gentoo

Contents of /media-gfx/opcion/opcion-1.1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Oct 25 20:09:32 2008 UTC (5 years, 9 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Removed old.
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-openvz.git-777e816 i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/opcion/opcion-1.1.1-r1.ebuild,v 1.5 2008/01/15 03:19:37 dirtyepic Exp $
4
5 inherit java-pkg-2
6
7 MY_P="Opcion_v${PV}"
8
9 DESCRIPTION="Free font viewer written in Java"
10 HOMEPAGE="http://opcion.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/opcion/${MY_P}_src.zip"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE=""
16 COMMON_DEP="=dev-java/jgoodies-looks-1.2*"
17 RDEPEND=">=virtual/jre-1.4
18 ${COMMON_DEP}"
19 DEPEND=">=virtual/jdk-1.4
20 ${COMMON_DEP}
21 app-arch/unzip"
22
23 S=${WORKDIR}
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28
29 # add missing constructor
30 epatch "${FILESDIR}/${P}-fix-source.patch"
31
32 # calls nonexisting constructor and seems unused
33 rm FontViewer/windows/test.java || die
34
35 rm -rf com/jgoodies || die
36 find . -name '*.class' -delete || die
37 rm *.txt || die
38 }
39
40 src_compile() {
41 find . -name '*.java' > "${T}/src.list"
42 local cp="$(java-pkg_getjars jgoodies-looks-1.2)"
43 mkdir build || die
44 # quite icky way to copy resources
45 cp -R FontViewer com build || die
46 find build -name '*.java' -delete
47 ejavac -nowarn -classpath "${cp}" -d build "@${T}/src.list"
48 jar cf ${PN}.jar -C build . || die
49 }
50
51 src_install() {
52 java-pkg_dojar ${PN}.jar
53
54 java-pkg_dolauncher ${PN} --main FontViewer.Opcion
55 }

  ViewVC Help
Powered by ViewVC 1.1.20