# Copyright 1999-2004 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 100% pure Java" HOMEPAGE="http://genj.sf.net/" SRC_URI="mirror://sourceforge/genj/genj_app-${PV}.zip" S=${WORKDIR} PROGRAM_DIR=/opt/${PN} LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=virtual/jre-1.3 app-arch/unzip" src_unpack() { unpack ${A} cd ${S} tr -d '\r' < run.sh > run.sh.new mv run.sh.new run.sh chmod a+x run.sh epatch ${FILESDIR}/fix-search-type.diff } src_compile() { einfo "Binary only installation, no compilation needed." } src_install() { cd ${S} insinto ${PROGRAM_DIR} exeinto ${PROGRAM_DIR} doins *.jar doins run.sh fperms 777 ${PROGRAM_DIR}/run.sh insinto ${PROGRAM_DIR}/lib/ doins lib/* insinto ${PROGRAM_DIR}/gedcom/ doins gedcom/* insinto ${PROGRAM_DIR}/report/ doins report/* } pkg_postinst() { # Create the script to run GenealogyJ from it's install directory. echo "#!/bin/bash" > /usr/bin/genealogyj echo ${PROGRAM_DIR}/run.sh ${PROGRAM_DIR} >> /usr/bin/genealogyj chmod a+x /usr/bin/genealogyj echo einfo "This ebuild creates a wrapper to the genj run.sh so to run genealogyj simply use 'genealogyj'" echo einfo "This ebuild does not install the GenealogyJ applet" echo }