# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="P2M program which use Moorhunt hashcode" HOMEPAGE="http://sourceforge.net/projects/goblinp2m/" SRC_URI="mirror://sourceforge/goblinp2m/mhD_Linux.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">dev-java/sun-jre-bin-1.6.0.0" S="${WORKDIR}/mhD" src_unpack() { unpack ${A} } src_compile () { einfo "Nothing to compile, this is a binary package" } src_install() { declare mhDdir=/opt/mhD dodir ${mhDdir} cp -R * ${D}${mhDdir} || die "cp failed" echo "#!/bin/bash cd /opt/mhD java -cp "." -Djava.library.path="." -jar MHDownloader.jar" > mhD dobin mhD } pkg_postinst() { einfo einfo "Check twice your java configuration: java -version." einfo "You must have >sun-jre-bin-1.6.0.0 to run mhD." einfo }