Here is an ebuild for NetBeans 4.1, I had to modify several things in comparison with netbeans-4.0.ebuild : - BASELOCATION changed. - Add "-Xmx1g" to ANT_OPTS (otherwise ant failed to build netbeans with an OutOfMemoryError) - Some directories were renamed in NetBeans 4.1 (ide4 -> ide5, platform4 -> platform5).
Created attachment 59953 [details] netbeans-4.1.ebuild FYI, diff against 4.0 : --- /usr/portage/dev-util/netbeans/netbeans-4.0.ebuild 2005-05-24 08:35:33.000000000 +0200 +++ netbeans-4.1.ebuild 2005-05-27 17:18:53.000000000 +0200 @@ -38 +38 @@ -BASELOCATION="http://www.netbeans.org/download/${MY_PV}/fcs/200412081800/d5a0f13566068cb86e33a46ea130b207" +BASELOCATION="http://www.netbeans.org/download/${MY_PV}/fcs/200505031930/66083d474e5fdfc80a1443fb851bd9d5" @@ -48 +48 @@ -SLOT="4.0" +SLOT="4.1" @@ -123 +123 @@ - epatch ${FILESDIR}/antbuild.xml.patch + epatch ${FILESDIR}/antbuild-4.1.xml.patch @@ -211,2 +211,5 @@ - # Sun JDK doesnt like that very much, so lets pleasure them too ;-) - export ANT_OPTS="${ANT_OPTS} -Djava.awt.headless=true" + # -Xmx1g: Increase Java maximum heap size, otherwise ant will die with + # an OutOfMemoryError while building. + # -Djava.awt.headless=true: Sun JDK doesnt like that very much, so + # lets pleasure them too ;-) + export ANT_OPTS="${ANT_OPTS} -Xmx1g -Djava.awt.headless=true" @@ -230 +233 @@ - cd ${BUILDDESTINATION}/ide4/docs + cd ${BUILDDESTINATION}/ide5/docs @@ -239 +242 @@ - cd ${BUILDDESTINATION}/ide4/ant + cd ${BUILDDESTINATION}/ide5/ant @@ -257 +260 @@ - ${DESTINATION}/platform4/lib/nbexec + ${DESTINATION}/platform5/lib/nbexec @@ -260 +263 @@ - newbin ${FILESDIR}/startscript.sh netbeans-${SLOT} + newbin ${FILESDIR}/startscript-4.1.sh netbeans-${SLOT} @@ -263 +266 @@ - local ANTDIR="${DESTINATION}/ide4/ant" + local ANTDIR="${DESTINATION}/ide5/ant" @@ -317 +320 @@ - cd ${1}/ide4/modules/ext + cd ${1}/ide5/modules/ext @@ -325 +328 @@ - cd ${1}/ide4/modules/autoload/ext + cd ${1}/ide5/modules/autoload/ext @@ -337 +340 @@ - cd ${1}/ide4/config/TagLibraries/JSTL11 + cd ${1}/ide5/config/TagLibraries/JSTL11 @@ -341 +344 @@ - cd ${1}/platform4/modules/ext + cd ${1}/platform5/modules/ext
Created attachment 59954 [details, diff] files/antbuild-4.1.xml.patch ant build.xml structure changed a little.
Created attachment 59955 [details, diff] files/startscript-4.1.sh Diff against startscript.sh : --- startscript.sh 2005-05-17 20:17:40.000000000 +0200 +++ startscript-4.1.sh 2005-05-27 16:52:27.000000000 +0200 @@ -12,10 +12,10 @@ } -NBDIR="/usr/share/netbeans-4.0" +NBDIR="/usr/share/netbeans-4.1" -check_symlinks ${NBDIR}/ide4/modules/ext -check_symlinks ${NBDIR}/ide4/modules/autoload/ext -check_symlinks ${NBDIR}/ide4/config/TagLibraries/JSTL11 -check_symlinks ${NBDIR}/platform4/modules/ext +check_symlinks ${NBDIR}/ide5/modules/ext +check_symlinks ${NBDIR}/ide5/modules/autoload/ext +#check_symlinks ${NBDIR}/ide5/config/TagLibraries/JSTL11 +check_symlinks ${NBDIR}/platform5/modules/ext ${NBDIR}/bin/netbeans
*** Bug 93025 has been marked as a duplicate of this bug. ***
It is not as simple as this, but thanks for the effort. The names of the packed jars have to be adjusted to new releases and there is also new packed stuff usually. But I am going to work on this (I made the 4.0 ebuild).
I just came up with a nice problem with the scrambler. 4.0 didn't have problems because the the scrambled files were dated to last year. But the files in the 4.1 tarball are very fresh. This means that the jars the user has installed are older than the scrambled files. Because the files are older, the Scrambler tries to unscramble files over the symlinks resulting in a sandbox violation. I will probably use xslt/sed/own script to rewrite the build.xml files to skip the unscrambling on the files already in the system. For the future I will try to find time to enhance the Netbeans build process so that it can use jars in the system. This patch will be accepted upstream if I will be able to make it.
Created attachment 60585 [details] Netbeans 4.1 Ebuild w/ Bundled Jars Not sure if anyone is wanting this, but here is an ebuild for 4.1 using the bundled jars/tomcat etc. So no dependencys. Created this after I got sick and tired of trying to build alot of the dependencies of the above ebuild when using JDK 1.5.
As with 4.0 the ebuild is under development in the experimental tree: https://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-util/netbeans The ebuild can't go into the tree before Tomcat 5.5* and it still has a couple of issues. I have only tested that it starts. The Tomcat ebuild in experimental should get some fixes by luckyduck in during the next week.
DaNIsH, thanks for your ebuild. I just installed it and going to try your "netbeans distribution" this week. Maybe you should add an einfo at the end of your ebuild, pointing the user to /usr/share/netbeans-4.1/bin/netbeans, at least :-) I am not a java developer, but what about a kind of "netbeans-devel-dist" and "eclipse-devel-dist" ebuild? This should contain an IDE and some of the most common/used java packages, so that programmers do not have to care about every single package ...
Created attachment 63996 [details] NetBeans Profiler Milestone 7 (v2) Ebuild for the NetBeans Profiler for NetBeans 4.1; Please, review it! It uses an ugly installer...
Created attachment 63997 [details] NetBeans Mobility Pack Ebuild for the NetBeans Mobility Pack, needed to write J2ME-/Java ME-applications; please, review it! It uses an ugly installer
Swoon: You should use text/plain ase the mime type so that browsers are able to show the ebuilds. They also don't belong to this bug. They should have their own separate bugs. Feel free to open those. I will then take a look. I agree that it would be great to have them as ebuilds in the tree.
Has anyone had any success with this ebuild? I keep getting: Calculating dependencies ...done! >>> emerge (1 of 1) dev-util/netbeans-4.1 to / >>> md5 files ;-) netbeans-4.1.ebuild >>> md5 files ;-) files/antbuild-4.1.xml.patch >>> md5 files ;-) files/startscript-4.1.sh >>> md5 files ;-) files/digest-netbeans-4.1 >>> md5 src_uri ;-) netbeans-4_1-src-ide_sources.tar.bz2 >>> md5 src_uri ;-) netbeans-4_1-docs-javadoc.tar.bz2 >>> Unpacking source... >>> Unpacking netbeans-4_1-src-ide_sources.tar.bz2 to /var/tmp/portage/netbeans-4.1/work tar: A lone zero block at 452800 >>> Unpacking netbeans-4_1-docs-javadoc.tar.bz2 to /var/tmp/portage/netbeans-4.1/work/javadoc * Applying antbuild-4.1.xml.patch ... [ ok ] !!! ERROR: dev-util/netbeans-4.1 failed. !!! Function java-pkg_jar-from, Line 295, Exitcode 1 !!! failed too find servlet-2.2.jar !!! If you need support, post the topmost build error, NOT this status message.
(In reply to comment #13) > Has anyone had any success with this ebuild? I keep getting: > Ah sorry. I have been waiting for Tomcat 5.5 and haven't been testing my stuff in experimental for a while. When devs change stuff in the offical tree they don't usually check that the experimental tree is still working. I already corrected servletapi and will test that there are not other issues.
Comment on attachment 63996 [details] NetBeans Profiler Milestone 7 (v2) new version has it own bug-report: https://bugs.gentoo.org/show_bug.cgi?id=102821
*** Bug 102821 has been marked as a duplicate of this bug. ***
I don't think it has sense to keep this bug open, as Netbeans 5.0 has been released for a long time... (see #109068)