# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 DESCRIPTION="Prune is an application for viewing, editing and converting coordinate data from GPS systems." HOMEPAGE="http://activityworkshop.net/software/prune/index.html" SRC_URI="http://activityworkshop.net/software/prune/prune_${PV}.jar" LICENSE="" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="virtual/jre" RDEPEND="${DEPEND}" prune_bin="${WORKDIR}/prune" src_unpack() { cp ${DISTDIR}/${A} ${WORKDIR} } src_compile() { echo '#!/bin/bash' > $prune_bin echo "java -jar /opt/prune/prune_${PV}.jar \"\$@\"" >> $prune_bin } src_install() { insinto /opt/prune doins prune_${PV}.jar exeinto /usr/bin doexe $prune_bin }