# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A combined file manager and first person shooter written in Java3D, you remove files by shooting at them" HOMEPAGE="http://bfm.webhop.net" SRC_URI="http://bfm.webhop.net/releases/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=virtual/jre-1.4 ( || (>=dev-java/blackdown-java3d-bin-1.3 >=dev-java/sun-java3d-bin-1.3 ))" S=${WORKDIR}/${P} DEST="/usr/share/bfm" src_install() { insinto ${DEST} doins ${S}/Bfm.jar echo "#!/bin/bash" > ${S}/bfm echo "java -jar ${DEST}/Bfm.jar \$@" >> ${S}/bfm exeinto /usr/bin doexe ${S}/bfm insinto /etc/bfm doins ${S}/bfm.conf dodoc README ChangeLog bindings COPYING NEWS } pkg_postinst() { einfo "" einfo "Bfm - The Brutal File Manager has been successfully installed!" einfo "" einfo "A system wide config file has been installed to /etc/bfm/bfm.conf" einfo "Copy the file to ~/.bfm/bfm.conf to set local settings" einfo "" echo "" ewarn "" ewarn "Be sure to run bfm in safe mode if you don't want to delete files" ewarn "" }