summaryrefslogtreecommitdiff
blob: 6b560f2ab5aa73230db5ca67049d3e64f7b48645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2004 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.ebuild,v 1.3 2004/10/17 09:56:47 dholm Exp $

inherit java-pkg

MY_P="Opcion_v${PV}"

DESCRIPTION="Free font viewer written in Java"
HOMEPAGE="http://opcion.sourceforge.net/"
SRC_URI="mirror://sourceforge/opcion/${MY_P}.jar"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86 ~ppc"

IUSE=""

DEPEND=">=virtual/jre-1.4"

S=${WORKDIR}

src_unpack() {
	cp ${DISTDIR}/${MY_P}.jar .
}

src_compile() {
	return
}

src_install() {
	java-pkg_dojar *.jar

	echo "#!/bin/sh" > ${T}/opcion
	echo "java -jar /usr/share/opcion/lib/${MY_P}.jar" >> ${T}/opcion
	dobin ${T}/opcion
}