summaryrefslogtreecommitdiff
blob: 42af8020b824de7ed4097807c30538545bdfc3c5 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="GenealogyJ is a viewer and editor for genealogic data and is written in Java"
HOMEPAGE="http://genj.sf.net/"
SRC_URI="mirror://sourceforge/genj/genj_app-${PV}.zip
	skins? ( mirror://sourceforge/genj/genj_lnf-2.0.zip )
	geoview? ( mirror://sourceforge/genj/genj_geo-${PV}.zip )
	mirror://sourceforge/genj/genj_en-${PV}.zip"

S=${WORKDIR}
LANGS="cs de es fi fr hu nl pl pt_BR ru"
for X in ${LANGS} ; do
	IUSE="${IUSE} linguas_${X}"
	SRC_URI="${SRC_URI} linguas_${X}? ( mirror://sourceforge/genj/genj_${X}-${PV}.zip )"
done

LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~x86"
IUSE="geoview skins"

DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.4"

pkg_setup() {
	if [ -z "${LINGUAS}" ]; then
		ewarn " To install a localized version, set the according LINGUAS variable(s)."
		ewarn " Default: en (is always installed) "
		ewarn " Supported localizations: cs* de es fi* fr hu* nl* pt_BR* pl* ru*"
		ewarn " (* = Help file in English only. Upstream doesn't have a translation.) "
	fi
}

src_compile() {
	einfo "Binary only installation, no compilation needed."
}

src_install() {
	PROGRAM_DIR=/opt/${PN}

	insinto ${PROGRAM_DIR}
	exeinto ${PROGRAM_DIR}

	doins -r *.jar gedcom report help contrib doc lib
	use skins && doins -r lnf
	doexe run.sh
	# Necessary to be able to run it as a user:
	fperms a+rx ${PROGRAM_DIR}/run.sh

	into /opt
	dobin "${FILESDIR}/genealogyj"
}

pkg_postinst() {
	einfo
	einfo "This ebuild does not install the GenealogyJ web applet"
	einfo
}