# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="tr-2.0.1" DESCRIPTION="Java-based Getting Things Done (GTD) application" HOMEPAGE="http://thinkingrock.com.au/" SRC_URI="http://mesh.dl.sourceforge.net/sourceforge/thinkingrock/${MY_P}.tar.gz" LICENSE="CDDL" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=virtual/jre-1.5.0" DEPEND="${DEPEND}" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/tr.patch } src_install() { local installDir=/opt/${MY_P} insinto /opt doins -r "${S}" fperms a+rx ${installDir}/bin/tr ${installDir}/bin/xdg-email ${installDir}/bin/xdg-open # Symlink the wrapper script dosym ${installDir}/bin/tr /usr/bin/thinking-rock # Symlink the directory and the jar to have them without version number dosym ${installDir} /opt/${PN} newicon tr/resource/images/Next16.gif thinking-rock.gif newmenu "${FILESDIR}"/thinking-rock-2.0.desktop thinking-rock.desktop }