summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-06-16 12:37:33 +0000
committerJon Hood <squinky86@gentoo.org>2004-06-16 12:37:33 +0000
commitc9a9691f1d6c8bf91cd9a4e19ededbd7b0b8b12a (patch)
treee6acc06b118ee72109f7485c6ce4cbee8a525c4c /net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild
parentMoved patch and amd64 ucc-bin/ut2004-bin renames to before uncompressing to a... (diff)
downloadgentoo-2-c9a9691f1d6c8bf91cd9a4e19ededbd7b0b8b12a.tar.gz
gentoo-2-c9a9691f1d6c8bf91cd9a4e19ededbd7b0b8b12a.tar.bz2
gentoo-2-c9a9691f1d6c8bf91cd9a4e19ededbd7b0b8b12a.zip
Initial import. Closes #40269.
Diffstat (limited to 'net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild')
-rw-r--r--net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild b/net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild
new file mode 100644
index 000000000000..376cd2ae5293
--- /dev/null
+++ b/net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/g2gui/g2gui-0.3.0_pre1.ebuild,v 1.1 2004/06/16 12:37:32 squinky86 Exp $
+
+MY_P=${P/_/-}-linux-jar-gtk
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="The 2nd generation gui for the universal p2p-client mldonkey"
+HOMEPAGE="http://developer.berlios.de/projects/mldonkey/"
+SRC_URI="http://download.berlios.de/mldonkey/${MY_P}.tar.bz2"
+LICENSE="GPL-2 CPL-1.0"
+KEYWORDS="~x86"
+SLOT="0"
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="virtual/jdk"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i -e 's:cd $(dirname $0):cd /usr/share/g2gui:g' g2gui
+}
+
+src_compile() {
+ if [ -z "$JAVA_HOME" ]; then
+ einfo
+ einfo "\$JAVA_HOME not set!"
+ einfo "Please use java-config to configure your JVM and try again."
+ einfo
+ die "\$JAVA_HOME not set."
+ fi
+}
+
+src_install () {
+ dodir /usr/share/g2gui
+ dodir /usr/bin
+ cd ${WORKDIR}/${P/_/-}-linux-jar-gtk
+ cp -R g2gui distrib g2submit lib ${D}/usr/share/g2gui
+ cd ${D}/usr/share/g2gui
+ chmod -R u+rw,ug-s,go+u,go-w distrib g2submit lib
+ chmod 755 ${D}/usr/share/g2gui/g2gui
+ dosym ${D}/usr/share/g2gui/g2gui /usr/bin/g2gui
+}