summaryrefslogtreecommitdiff
blob: 262316212c22d5537a49c91183d12109bc85f1e7 (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-2006 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.7 2006/11/22 08:27:07 opfer 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="amd64 ppc x86"

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
}