# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Tue Apr 29 13:35:01 EDT 2003 # The current version is broken, but can be fixed by using the # following (check the md list): # ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/znerd/jce-aba-1.1.tar.gz DESCRIPTION="A personal finance manager" HOMEPAGE="http://moneydance.com/" SRC_URI="ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/znerd/jce-aba-1.1.tar.gz" At="moneydance-2003.301.tar.gz" LICENSE="reilly BSD" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha" IUSE="" DEPEND=">=virtual/jre-1.3" INSTALLDIR=/opt/moneydance JREDIR=$(java-config --java | sed -e 's,/bin/java$,,') S=${WORKDIR}/moneydance src_unpack() { if [ ! -f ${DISTDIR}/${At} ] ; then die "Please download moneydance_other.tar.gz from ${HOMEPAGE} (download the 'Other' version of the free trial) and move it to ${DISTDIR}/${At}" fi for f in jce-aba-1.1.tar.gz ${At} ; do echo ">>> Unpacking ${f} to $(pwd)" tar zxf ${DISTDIR}/${f} || die done } src_install() { dodir ${INSTALLDIR} exeinto ${INSTALLDIR} insinto ${INSTALLDIR} doexe moneydance doins *.jar doins moneydance.xpm dodoc license.txt dosym ${JREDIR} ${INSTALLDIR}/jre dodir /etc/env.d echo -e "PATH=${INSTALLDIR}" > \ ${D}/etc/env.d/10moneydance # Some Build 301 plugins fail trying to access the ABA JCE. # I found this temporary fix on the moneydance yahoogroup cd ${WORKDIR}/jce-aba-1.1 newins lib-1.1/jce.zip aba_jce-1.1.jar }