summaryrefslogtreecommitdiff
blob: bb2cbef49d8dc0dd1fccb0dab99d352913496e67 (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.1 2004/10/02 07:01:01 usata 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"

IUSE=""

DEPEND=">=virtual/jre-1.4"

S=${WORKDIR}

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

src_compile() {
	return
}

src_install() {
	dojar *.jar

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