Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515 - netbeans-3.3.1.tar.gz (new package)
Summary: netbeans-3.3.1.tar.gz (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-03 20:19 UTC by Matthew Kennedy
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
netbeans .ebuild, desktop icon and .desktop icon (netbeans-3.3.1.tar.gz,2.89 KB, application/octet-stream)
2002-02-03 20:20 UTC, Matthew Kennedy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kennedy 2002-02-03 20:19:09 UTC
Howdy,

I have attached netbeans-3.3.1.tar.gz which containe a .ebuild, 48x48 gnome
desktop icon and gnome desktop entry for Netbeans. An icon is supplied in files/
because the .ico (Windows format) icon which comes with Netbeans by default is
not supported by gnome (or other linux applications) very well.  

Netbeans is an open source IDE for java development. dev-util might be a good
place to put this package (if accepted) since Anjuta, KDevelop and other
developer tools already reside there. The only dependency for this packahe is
>=virtual/jdk-1.3.

Content of netbeans-3.3.1.tar.gz:

dev-util/
dev-util/netbeans/
dev-util/netbeans/files/
dev-util/netbeans/files/netbeans.desktop
dev-util/netbeans/files/netbeans.png
dev-util/netbeans/netbeans-3.3.1.ebuild
Comment 1 Matthew Kennedy 2002-02-03 20:20:27 UTC
Created attachment 120 [details]
netbeans .ebuild, desktop icon and .desktop icon
Comment 2 Matthew Kennedy 2002-02-03 20:55:12 UTC
Please accept my humble apologies and this updated netbeans-3.3.1-r1.ebuild.
This -r1.ebuild fixes a problem where JDK_HOME variable was not available to
netbeans when run from the gnome menus.
Comment 3 Matthew Kennedy 2002-02-03 21:37:12 UTC
netbeans-3.3.1-r1.ebuild follows (bugs.gentoo.org didn't seem to want to take
any more attachments from me?):
--------------------
# Author Matthew Kennedy <mbkennedy@ieee.org>

A=NetBeansIDE-release331.tar.gz
S=${WORKDIR}/netbeans
DESCRIPTION="Netbeans ${PV} IDE for Java"
SRC_URI="http://www.netbeans.org/download/release33/night/build200202011224/${A}"
HOMEPAGE="http://www.netbeans.org"

RDEPEND=">=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}
	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
	fi
}