# Copyright 1999-2007 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="de es fr hu nl pl pt_BR" 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: de es fr hu* nl* pt_BR* pl*" 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() { elog elog "This ebuild does not install the GenealogyJ web applet" elog }