summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-03-29 10:25:24 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-03-29 10:25:24 +0000
commit78befb30cf4fae52d6b89a2dfb26865eda819784 (patch)
tree523c0772a4ecf96d8a8f9b0962c992a617f7867b /app-misc/bfm
parentfix the rpm mix (diff)
downloadgentoo-2-78befb30cf4fae52d6b89a2dfb26865eda819784.tar.gz
gentoo-2-78befb30cf4fae52d6b89a2dfb26865eda819784.tar.bz2
gentoo-2-78befb30cf4fae52d6b89a2dfb26865eda819784.zip
Initial import, ebuild for this funny file manager based on the contribution by Henrik Johansson <henrik_johansson@home.se>. Fixes #82904
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-misc/bfm')
-rw-r--r--app-misc/bfm/ChangeLog11
-rw-r--r--app-misc/bfm/Manifest5
-rw-r--r--app-misc/bfm/bfm-1.2.ebuild80
-rw-r--r--app-misc/bfm/files/1.2-build.xml75
-rw-r--r--app-misc/bfm/files/digest-bfm-1.21
-rw-r--r--app-misc/bfm/metadata.xml13
6 files changed, 185 insertions, 0 deletions
diff --git a/app-misc/bfm/ChangeLog b/app-misc/bfm/ChangeLog
new file mode 100644
index 000000000000..35fbaf659b6c
--- /dev/null
+++ b/app-misc/bfm/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-misc/bfm
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/bfm/ChangeLog,v 1.1 2005/03/29 10:25:24 luckyduck Exp $
+
+*bfm-1.2 (29 Mar 2005)
+
+ 29 Mar 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/1.2-build.xml, +bfm-1.2.ebuild:
+ Initial import, ebuild for this funny file manager based on the contribution
+ by Henrik Johansson <henrik_johansson@home.se>. Fixes #82904
+
diff --git a/app-misc/bfm/Manifest b/app-misc/bfm/Manifest
new file mode 100644
index 000000000000..bb8348615a96
--- /dev/null
+++ b/app-misc/bfm/Manifest
@@ -0,0 +1,5 @@
+MD5 32b3516b4d2e73f603a62afecdaa351e bfm-1.2.ebuild 1967
+MD5 9a9783ba04b6fe14c4f59e17f9e74ce7 ChangeLog 388
+MD5 e9053dbd45cd43ac21e3198707006389 metadata.xml 478
+MD5 9e9c82c43581d5aa8822a10142307f26 files/digest-bfm-1.2 59
+MD5 6dea2b3bc0db53c3153cb946dfb0a19c files/1.2-build.xml 2000
diff --git a/app-misc/bfm/bfm-1.2.ebuild b/app-misc/bfm/bfm-1.2.ebuild
new file mode 100644
index 000000000000..45760bf8c08e
--- /dev/null
+++ b/app-misc/bfm/bfm-1.2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/bfm/bfm-1.2.ebuild,v 1.1 2005/03/29 10:25:24 luckyduck Exp $
+
+inherit java-pkg
+
+DESCRIPTION="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="doc jikes source"
+
+DEPEND=">=virtual/jre-1.4
+ || ( >=dev-java/blackdown-java3d-bin-1.3
+ >=dev-java/sun-java3d-bin-1.3 )
+ dev-java/ant-core
+ jikes? ( dev-java/jikes )
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.4"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ cp ${FILESDIR}/${PV}-build.xml ./build.xml
+
+ mkdir ${S}/lib && cd ${S}/lib
+ if has_version sun-java3d-bin; then
+ java-pkg_jar-from sun-java3d-bin
+ elif has_version blackdown-java3d-bin; then
+ java-pkg_jar-from blackdown-java3d-bin
+ fi
+}
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} docs"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "compilation failed"
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ local java3d=""
+ if has_version blackdown-java3d-bin; then
+ java3d="blackdown-java3d-bin"
+ elif has_version sun-java3d-bin; then
+ java3d="sun-java3d-bin"
+ fi
+
+ echo "#!/bin/sh" > ${PN}
+ echo "\$(java-config -J) -Djava.library.path=/opt/${java3d}/lib -cp \$(java-config -p bfm,${java3d}) Bfm" >> ${PN}
+
+ dobin ${PN}
+
+ insinto /etc/bfm
+ doins ${S}/bfm.conf
+
+ if use doc; then
+ dodoc README ChangeLog bindings COPYING NEWS
+ java-pkg_dohtml -r docs/*
+ fi
+ use source && java-pkg_dosrc src/*
+}
+
+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 ""
+ ewarn ""
+ ewarn "Be sure to run bfm in safe mode if you don't want to delete files"
+ ewarn ""
+}
diff --git a/app-misc/bfm/files/1.2-build.xml b/app-misc/bfm/files/1.2-build.xml
new file mode 100644
index 000000000000..85d9b447e4dc
--- /dev/null
+++ b/app-misc/bfm/files/1.2-build.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+
+<project name="bfm" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="src" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="dist.dir" value="dist" />
+ <property name="lib.dir" value="lib" />
+ <property name="jarfile" value="${dist.dir}/${ant.project.name}.jar" />
+ <property name="target.jdk" value="1.4" />
+
+ <!-- init -->
+ <target name="init">
+ <mkdir dir="${dist.dir}" />
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${docs.dir}" />
+ </target>
+
+ <!-- classpath -->
+ <path id="refcp">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ source="${target.jdk}"
+ target="${target.jdk}"
+ classpathref="refcp" />
+
+ <copy todir="${build.dir}">
+ <fileset file="${src.dir}/data" />
+ </copy>
+ <copy todir="${build.dir}/data">
+ <fileset dir="${src.dir}/data" />
+ </copy>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}"
+ manifest="${src.dir}/data/manifest" />
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="docs" depends="init">
+ <javadoc sourcepath="${src.dir}"
+ packagenames=""
+ destdir="${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API" />
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ </target>
+
+ <!-- zip the sources -->
+ <target name="sourcezip">
+ <zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+ <zipfileset dir="${src.dir}" />
+ </zip>
+ </target>
+
+</project>
diff --git a/app-misc/bfm/files/digest-bfm-1.2 b/app-misc/bfm/files/digest-bfm-1.2
new file mode 100644
index 000000000000..d82b21bd879c
--- /dev/null
+++ b/app-misc/bfm/files/digest-bfm-1.2
@@ -0,0 +1 @@
+MD5 12eb3ae43f459a9ebd83e6daad286453 bfm-1.2.tar.gz 193924
diff --git a/app-misc/bfm/metadata.xml b/app-misc/bfm/metadata.xml
new file mode 100644
index 000000000000..95c55947f21e
--- /dev/null
+++ b/app-misc/bfm/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+ BFM, the Brutal File Manager is a combined file manager and first
+ person shooter game. The basic idea is to represent different folders
+ on your computer as rooms in a 3D environment. Then, armed to your
+ teeths you go through these rooms and delete files by shooting at them.
+</longdescription>
+
+</pkgmetadata>