aboutsummaryrefslogtreecommitdiff
blob: 9695a4f2d03031d3cc3fb156dc4c22a6b6dfb7b7 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit java-pkg-2 versionator
MYPV=$(replace_version_separator 2 '-')

DESCRIPTION="Interactive graphical viewer and editor for astronomical tables"
HOMEPAGE="http://www.star.bris.ac.uk/~mbt/topcat/"
SRC_COM="ftp://andromeda.star.bris.ac.uk/pub/star/${PN}/v${MYPV}"
SRC_URI="${SRC_COM}/${PN}-lite.jar -> ${P}-lite.jar
	!minimal? ( ${SRC_COM}/${PN}-full.jar -> ${P}-full.jar )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="+minimal"

RDEPEND=">=virtual/jre-1.5"
DEPEND=""

S="${WORKDIR}"

src_install() {
	java-pkg_newjar "${DISTDIR}"/${P}-lite.jar ${PN}-lite.jar
	java-pkg_dolauncher ${PN}-lite
	if use minimal; then
		dosym ${PN}-lite /usr/bin/${PN}
	else
		java-pkg_newjar "${DISTDIR}"/${P}-full.jar
		java-pkg_dolauncher ${PN}-full
		dosym ${PN}-full /usr/bin/${PN}
	fi
}