blob: 3a7932e3f135232ecb490b0fb4c0713c033cf82d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-3.3.2.ebuild,v 1.11 2003/09/06 08:39:20 msterret Exp $
MY_P=NetBeansIDE-release332
S=${WORKDIR}/${PN}
DESCRIPTION="Netbeans ${PV} IDE for Java"
SRC_URI="http://www.netbeans.org/download/release332/night/build200206050332/${MY_P}.tar.gz"
HOMEPAGE="http://www.netbeans.org"
SLOT="0"
LICENSE="GPL-2 Apache-1.1 sun-bcla-j2ee JPython SPL"
KEYWORDS="x86 sparc "
#still need to add JPython, Sun Public and DynamicJava licenses
#sun-j2ee actually contains Sun Binary Code license
#will have to be renamed and containing it ebuilds updated at spome point..
DEPEND=">=virtual/jdk-1.3"
src_unpack() {
unpack ${A}
# fix jdkhome references
cd ${S}/bin
# rmid_wrapper.sh
cp rmid_wrapper.sh rmid_wrapper.sh.orig
sed -e 's:^jdkhome="":jdkhome="`java-config --jdk-home`":' \
rmid_wrapper.sh.orig >rmid_wrapper.sh
rm -f rmid_wrapper.sh.orig
# runide.sh
cp runide.sh runide.sh.orig
sed -e 's:^jdkhome="":jdkhome="`java-config --jdk-home`":' \
runide.sh.orig >runide.sh
rm -f runide.sh.orig
}
src_install() {
# remove non-x86 Linux binaries
rm -f ${S}/bin/runide*.exe ${S}/bin/rmid_wrapper.exe
rm -f ${S}/bin/runide*.com
rm -f ${S}/bin/runideos2.cmd
rm -f ${S}/bin/fastjavac/fastjavac.exe
rm -f ${S}/bin/fastjavac/fastjavac.sun
rm -f ${S}/bin/fastjavac/fastjavac.sun.intel
rm -f ${S}/bin/unsupported/*.bat
dodir /opt/${P}
dodoc build_info
dohtml CHANGES.html CREDITS.html README.html netbeans.css
# note: docs/ are docs used internally by the IDE
cp -Rdp beans bin docs lib modules sources system ${D}/opt/${P}
# This is a binary-only package. It will only live in /opt -- karltk
# dodir /usr/bin
# dosym /opt/${P}/bin/runide.sh /usr/bin/netbeans
# dosym /opt/${P}/bin/rmid_wrapper.sh /usr/bin/rmid_wrapper
# dosym /opt/${P}/bin/unsupported/nbscript.sh /usr/bin/nbscript
# install icon and desktop entry for gnome
if [ "`use gnome`" ] ; then
insinto /usr/share/pixmaps
doins ${FILESDIR}/netbeans.png
insinto /usr/share/gnome/apps/Development
doins ${FILESDIR}/netbeans.desktop
echo "Exec=/opt/${P}/bin/runide.sh" >> ${D}/usr/share/gnome/apps/Development/netbeans.desktop
echo >> ${D}/usr/share/gnome/apps/Development/netbeans.desktop
fi
}
|