summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-09-16 18:58:55 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-09-16 18:58:55 +0000
commit5b227b1d34f78f477f8b281acc3f8c5c710238e5 (patch)
tree7c5263b81af30aa7e28d4f091b1858cad4afea21 /app-office/ganttproject/ganttproject-1.9.11-r1.ebuild
parentversion bump (Manifest recommit) (diff)
downloadgentoo-2-5b227b1d34f78f477f8b281acc3f8c5c710238e5.tar.gz
gentoo-2-5b227b1d34f78f477f8b281acc3f8c5c710238e5.tar.bz2
gentoo-2-5b227b1d34f78f477f8b281acc3f8c5c710238e5.zip
fix wrapper script, bug 64041
Diffstat (limited to 'app-office/ganttproject/ganttproject-1.9.11-r1.ebuild')
-rw-r--r--app-office/ganttproject/ganttproject-1.9.11-r1.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/app-office/ganttproject/ganttproject-1.9.11-r1.ebuild b/app-office/ganttproject/ganttproject-1.9.11-r1.ebuild
new file mode 100644
index 000000000000..e3920dcc5105
--- /dev/null
+++ b/app-office/ganttproject/ganttproject-1.9.11-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/ganttproject/ganttproject-1.9.11-r1.ebuild,v 1.1 2004/09/16 18:58:55 axxo Exp $
+
+inherit eutils java-pkg
+
+IUSE="doc gnome"
+
+DESCRIPTION="Project Management tool to create Gantt Charts"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
+HOMEPAGE="http://ganttproject.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+
+DEPEND=">=virtual/jdk-1.4
+ >=dev-java/ant-1.5.4"
+
+src_compile() {
+ ant || die "Failed building classes"
+ if use doc; then
+ ant javadocs || die "Failed building javadocs"
+ fi
+ echo "#! /bin/sh" > ganttproject
+ echo 'java -classpath `java-config -p ganttproject` net.sourceforge.ganttproject.GanttProject $@' >> ganttproject
+}
+
+src_install () {
+ java-pkg_dojar build/*.jar
+ java-pkg_dojar lib/optional/*.jar
+ exeinto /usr/bin
+ doexe ganttproject
+ dodoc AUTHORS COPYING README
+ if use doc; then
+ dohtml -r build/docs/api
+ fi
+ if use gnome; then
+ mkdir -p ${D}/usr/share/gnome/apps/Office/
+ mkdir -p ${D}/usr/share/pixmaps
+ cp ${FILESDIR}/ganttproject.desktop ${D}/usr/share/gnome/apps/Office/
+ cp data/resources/icons/ganttproject.gif ${D}/usr/share/pixmaps
+ fi
+}