diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/bfm/bfm-1.2-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/bfm/bfm-1.2-r1.ebuild')
-rw-r--r-- | app-misc/bfm/bfm-1.2-r1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app-misc/bfm/bfm-1.2-r1.ebuild b/app-misc/bfm/bfm-1.2-r1.ebuild new file mode 100644 index 000000000000..aaeaa2a4f0e8 --- /dev/null +++ b/app-misc/bfm/bfm-1.2-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="File manager and first person shooter written in Java3D, shoot to remove files" +HOMEPAGE="http://bfm.webhop.net" +SRC_URI="http://bfm.webhop.net/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.4 + >=dev-java/sun-java3d-bin-1.3" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND}" + +src_unpack() { + unpack ${A} + + cd "${S}" + cp "${FILESDIR}/${PV}-build.xml" ./build.xml + + mkdir "${S}/lib" && cd "${S}/lib" + if has_version dev-java/sun-java3d-bin; then + java-pkg_jar-from sun-java3d-bin + elif has_version dev-java/blackdown-java3d-bin; then + java-pkg_jar-from blackdown-java3d-bin + fi +} + +EANT_DOC_TARGET="" + +src_install() { + java-pkg_dojar dist/${PN}.jar + + local java3d="" + if has_version dev-java/blackdown-java3d-bin; then + java3d="blackdown-java3d-bin" + elif has_version dev-java/sun-java3d-bin; then + java3d="sun-java3d-bin" + fi + + java-pkg_dolauncher ${PN} --main Bfm + + insinto /etc/bfm + doins "${S}/bfm.conf" + + if use doc; then + dodoc README ChangeLog bindings NEWS || die + java-pkg_dohtml -r docs/* + fi + use source && java-pkg_dosrc src/* +} + +pkg_postinst() { + elog "A system wide config file has been installed to /etc/bfm/bfm.conf" + elog "Copy the file to ~/.bfm/bfm.conf to set local settings" + echo + ewarn "Be sure to run bfm in safe mode if you don't want to delete files" +} |