# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A personal finance manager" HOMEPAGE="http://moneydance.com/" # Don't download the actual application, which uses a click-through # license (see src_unpack), but do download the Australian Business # Access JCE which is required as a workaround for a bug (see # src_install) 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 ABA" 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 (at least paytrust) 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 }