# ChangeLog for dev-util/netbeans
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.39 2006/10/05 18:52:54 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.40 2006/11/04 10:01:54 wltjr Exp $
+
+*netbeans-5.5 (04 Nov 2006)
+
+ 04 Nov 2006; William L. Thomson Jr. <wltjr@gentoo.org>
+ +files/5.5/deps-txt.patch, +files/5.5/files-layout-txt.patch,
+ +files/5.5/mdr_extras_jdbcstorage_build.xml.patch,
+ +files/5.5/mdr_extras_mdrant_build.xml.patch,
+ +files/5.5/modules-txt.patch, +files/5.5/public-packages-txt.patch,
+ +files/5.5/startscript.sh, +netbeans-5.5.ebuild:
+ Initial ebuild for Netbeans 5.5. Contributions from ali_bush & fordfrog on
+ runtime issues & making packages for deps. Still uses some bundled stuff,
+ but uses as much of the system resources as feasible.
05 Oct 2006; Aron Griffis <agriffis@gentoo.org> netbeans-3.6-r1.ebuild:
Mark 3.6-r1 stable on ia64
MD5 0c98dd3e09a6ddfc91bf8eac2ef22871 files/4.0/startscript.sh 409
RMD160 602a9d56a47f799c1b29a1a8a9e2616252109a4b files/4.0/startscript.sh 409
SHA256 e702d5b321e55dd949f16bb3c5783e1974f9fd04b76548dd6fb565f2381d0f39 files/4.0/startscript.sh 409
+AUX 5.5/deps-txt.patch 511 RMD160 94f7f487bc0007ddcf4522cbb9554d5d59b4a202 SHA1 f1255ea6ee8880345f2e8fa976ad6958bd83c4a4 SHA256 8b2a4041825adb2ee714d5b635024bb28efef3e9d24b3018b12db5c12e52c394
+MD5 01a15f1329edc1694152b4da9fe1bce0 files/5.5/deps-txt.patch 511
+RMD160 94f7f487bc0007ddcf4522cbb9554d5d59b4a202 files/5.5/deps-txt.patch 511
+SHA256 8b2a4041825adb2ee714d5b635024bb28efef3e9d24b3018b12db5c12e52c394 files/5.5/deps-txt.patch 511
+AUX 5.5/mdr_extras_jdbcstorage_build.xml.patch 1787 RMD160 836321e4bad7b06abfe42e9bad8387724b68d8a7 SHA1 f708acc4565a67a35e30a6e76d1562979743fd37 SHA256 7685c67bf71dfca7f71b82af6b4a1d05fb90afbb24b72515df7332430e33860f
+MD5 90fca9a67bccdec94f44d6d8971b88e1 files/5.5/mdr_extras_jdbcstorage_build.xml.patch 1787
+RMD160 836321e4bad7b06abfe42e9bad8387724b68d8a7 files/5.5/mdr_extras_jdbcstorage_build.xml.patch 1787
+SHA256 7685c67bf71dfca7f71b82af6b4a1d05fb90afbb24b72515df7332430e33860f files/5.5/mdr_extras_jdbcstorage_build.xml.patch 1787
+AUX 5.5/mdr_extras_mdrant_build.xml.patch 1777 RMD160 724a5f79e993e8a1924d36691ed0808694768ccb SHA1 adbf6363754b77dd5eb310809ca71571f91bcc32 SHA256 476082ad5558dd771a291e9172666e2ad82fa61bc94f5adef841991a86fcec37
+MD5 1fa768b97ba22a33da97ed633ffad78c files/5.5/mdr_extras_mdrant_build.xml.patch 1777
+RMD160 724a5f79e993e8a1924d36691ed0808694768ccb files/5.5/mdr_extras_mdrant_build.xml.patch 1777
+SHA256 476082ad5558dd771a291e9172666e2ad82fa61bc94f5adef841991a86fcec37 files/5.5/mdr_extras_mdrant_build.xml.patch 1777
+AUX 5.5/modules-txt.patch 485 RMD160 a437c7a9048e5f3941f13798bfe921fc80f90cf2 SHA1 93ee5c8af702b2bde38e00c38104bc6087cd633a SHA256 3ec06df27e29bd2d708bf253bba4059620c57070d60549b0fc8f03d81eebd3b5
+MD5 f87d1c0d3181a05cb99f1595d7a75de2 files/5.5/modules-txt.patch 485
+RMD160 a437c7a9048e5f3941f13798bfe921fc80f90cf2 files/5.5/modules-txt.patch 485
+SHA256 3ec06df27e29bd2d708bf253bba4059620c57070d60549b0fc8f03d81eebd3b5 files/5.5/modules-txt.patch 485
+AUX 5.5/public-packages-txt.patch 674 RMD160 94bf2c4d192d4718b9c4958ec8e3f467ac9a11d4 SHA1 2a3db3c49feb352ab6bce1bb30e5d06df4fddaee SHA256 1e6357b7355eb21789d779c532cd7df3a1325ce2a637e5735e76cf4e0518d7f3
+MD5 1268cd79a9c91aa172746702a001445c files/5.5/public-packages-txt.patch 674
+RMD160 94bf2c4d192d4718b9c4958ec8e3f467ac9a11d4 files/5.5/public-packages-txt.patch 674
+SHA256 1e6357b7355eb21789d779c532cd7df3a1325ce2a637e5735e76cf4e0518d7f3 files/5.5/public-packages-txt.patch 674
+AUX 5.5/startscript.sh 421 RMD160 6494dc2a8d810d37f9eea36b4cf759aea8ec92d9 SHA1 2b15c71af3e585e57ecc3712144205ae5119a016 SHA256 dfd619a0a71b28e17facb015e8d4be79c495361f29e97da4cf55ced7f3f87b5f
+MD5 06cb85e3af52ad431914dd95f3ed4eff files/5.5/startscript.sh 421
+RMD160 6494dc2a8d810d37f9eea36b4cf759aea8ec92d9 files/5.5/startscript.sh 421
+SHA256 dfd619a0a71b28e17facb015e8d4be79c495361f29e97da4cf55ced7f3f87b5f files/5.5/startscript.sh 421
AUX antbuild.xml.patch 957 RMD160 0ec0888271912ce1ca86c8c54482735e1a64c8c0 SHA1 d5ec90aab2eafca4ecec3f450d441f298632e184 SHA256 12d166b6b75a9222fcdabed5829a67b18f4525f988cb319392e99f4a5f18d479
MD5 95ab6db4dc5ed189e21f0e6ae1aa657e files/antbuild.xml.patch 957
RMD160 0ec0888271912ce1ca86c8c54482735e1a64c8c0 files/antbuild.xml.patch 957
DIST netbeans-3_6.tar.bz2 32270184 RMD160 e6e3ad89fe7b9f005ee36dab28bd2b5ef125dfc8 SHA1 92925d02730e80fde67cc4800ae424d79e755f6d SHA256 56c015a5c33bcb3fc658c2732ad72e99384b80ff5e9563f843f3c5a52ef0a3f1
DIST netbeans-4_0-docs-javadoc.tar.bz2 12728428
DIST netbeans-4_0-src-ide_sources.tar.bz2 53877180
+DIST netbeans-5.5-files-layout-txt.patch.bz2 2543 RMD160 7650d3ede210872779164d78c0624468e29da9e8 SHA1 9f11852bfa5d3a965ecbee3abc9e7efb4ad5b60b SHA256 311b21d53b5f27b9c12d9139157179d908ae3c1a57a6f2adb46cbd1f4ddfc81a
+DIST netbeans-5_5-ide_sources.tar.bz2 109745446 RMD160 075f33dbbc666ee00dc8b25281a43dcf49d84247 SHA1 255b863e41c23abc00678a228f881c697160bd2a SHA256 ee521fa4a4807cc41b567ff6bff6d927a61415a4246fd4e6cc24f511b5827999
+DIST netbeans-5_5-javadoc.tar.bz2 11345846 RMD160 745641defdb56f0e860e3c46f0275f3b44efe808 SHA1 64603756c56a216315d0598ea20bfcdc429598c2 SHA256 50851849d0121e5ffa36cd5e3b9c366d40f9e2cdce4b58f030bb6716e3438c33
EBUILD netbeans-3.4.1.ebuild 3179 RMD160 9242d275fba562093ceb04d3aa8d655077019aab SHA1 62e6d6e79c612c5928ac411af4603e294ea761ad SHA256 512a07d2a8f79aebbbb86ce1f71b98f515238ec30f4581d919e4847baca16bba
MD5 edbb2534536fd9ece4393e28c8f02727 netbeans-3.4.1.ebuild 3179
RMD160 9242d275fba562093ceb04d3aa8d655077019aab netbeans-3.4.1.ebuild 3179
MD5 dd8ad3eb423418ff3459ab40ec9bcf84 netbeans-4.0-r2.ebuild 12164
RMD160 83b203e278eb89edea813d365134af62f2b16d82 netbeans-4.0-r2.ebuild 12164
SHA256 f7bce26bd45217d17eed8d20025bc45ab3af6e8a320db372a44687b666603835 netbeans-4.0-r2.ebuild 12164
-MISC ChangeLog 6759 RMD160 6fc27683520dbd6e07bdfec4be20046cb14eeabe SHA1 914403542738f47f856515ace4690ce94454fa16 SHA256 10057da910b1d5ed43ae09b1c820e5bb38cb74b154689e730b963b12659fbf86
-MD5 74f5bba564c369fab5379e247c942e4e ChangeLog 6759
-RMD160 6fc27683520dbd6e07bdfec4be20046cb14eeabe ChangeLog 6759
-SHA256 10057da910b1d5ed43ae09b1c820e5bb38cb74b154689e730b963b12659fbf86 ChangeLog 6759
-MISC metadata.xml 1128 RMD160 9ba1b3fec0fedacd10416e7c61edfecada1912cd SHA1 997b3db42167a9e591c3667ffddd125bbb85fa98 SHA256 8c524b060fdbfc4aa432a528c2e78ad05eb20fcf4bc8973c1c8366699bb90b5a
-MD5 e7fcbf7f5131562425fda47afe3b39b9 metadata.xml 1128
-RMD160 9ba1b3fec0fedacd10416e7c61edfecada1912cd metadata.xml 1128
-SHA256 8c524b060fdbfc4aa432a528c2e78ad05eb20fcf4bc8973c1c8366699bb90b5a metadata.xml 1128
+EBUILD netbeans-5.5.ebuild 12040 RMD160 58615616d6c6adfc7942018ad2ae1742fbbe3444 SHA1 dab4495cafde165374b08e2409a099b259b4de7f SHA256 981e9e2beca751d13d5de2d25923f41952e667ebed3ef8ef4cde7055db511e9e
+MD5 64dd8a713504d3253e475306a1cabdc0 netbeans-5.5.ebuild 12040
+RMD160 58615616d6c6adfc7942018ad2ae1742fbbe3444 netbeans-5.5.ebuild 12040
+SHA256 981e9e2beca751d13d5de2d25923f41952e667ebed3ef8ef4cde7055db511e9e netbeans-5.5.ebuild 12040
+MISC ChangeLog 7338 RMD160 5260bde67af7c63132d106b5f3c1ea854e73db21 SHA1 d88174164ea973e6725e3bae6feb0b3e21a04fc4 SHA256 0f6f785e4fcfff7d024cd526076b0380bbc861ba0a01d7e77c4ac22de6e37e42
+MD5 6c47cd6daa2990663ffa06a3300960ac ChangeLog 7338
+RMD160 5260bde67af7c63132d106b5f3c1ea854e73db21 ChangeLog 7338
+SHA256 0f6f785e4fcfff7d024cd526076b0380bbc861ba0a01d7e77c4ac22de6e37e42 ChangeLog 7338
+MISC metadata.xml 1237 RMD160 83495b588f0cedfe35669e4ab6d44d12f2e026f2 SHA1 b6f667a9aa69cf56d639149476fd54a532ae7188 SHA256 34bb370e7dbf14e39fcdf259db781bacd7484158b845bf6a1087d826845cda11
+MD5 c106aa59ce9920ea675aab4342118df8 metadata.xml 1237
+RMD160 83495b588f0cedfe35669e4ab6d44d12f2e026f2 metadata.xml 1237
+SHA256 34bb370e7dbf14e39fcdf259db781bacd7484158b845bf6a1087d826845cda11 metadata.xml 1237
MD5 eba3a44af2a04cab3a7bf00ce982130e files/digest-netbeans-3.4.1 77
RMD160 c9b4d766a64a0e4a3da86bbdbb06235be978abab files/digest-netbeans-3.4.1 77
SHA256 7133187a38714946ff821ef65c41d4bef4596993256a70c09107aea0d4b9b909 files/digest-netbeans-3.4.1 77
MD5 29975044542ab5b79e3f0a2d9c898806 files/digest-netbeans-4.0-r2 163
RMD160 539784fae4be5c5e28575a8ee6c244c410c2a3f6 files/digest-netbeans-4.0-r2 163
SHA256 c0e88d8271d7e31a652de0bdf56ff9a7958aee4a534afda78b77fb544e4dccc8 files/digest-netbeans-4.0-r2 163
+MD5 c8a0b3075b05eee17b3d72a4e0ae3da6 files/digest-netbeans-5.5 849
+RMD160 698fc8a03d93e1d953518e85a154f81c39420a16 files/digest-netbeans-5.5 849
+SHA256 106a591a21d31b7b730bf5f922f7f2fcf26eb87d1f9e8f9e808cf8be9b9ea09c files/digest-netbeans-5.5 849
--- /dev/null
+--- ide/golden/deps.txt 2006-10-03 02:31:07.000000000 +0200
++++ deps.txt 2006-10-08 22:57:14.000000000 +0200
+@@ -2145,8 +2145,6 @@
+ REQUIRES org.openide.text (platform)
+ REQUIRES org.openide.util (platform)
+ REQUIRES org.openide.windows (platform)
+-MODULE org.netbeans.modules.tomcat5.bundled/1 (j2ee)
+- REQUIRES org.netbeans.modules.tomcat5/1 (j2ee)
+ MODULE org.netbeans.modules.updatecenters/1 (nb)
+ REQUIRES org.netbeans.modules.autoupdate/1 (platform)
+ REQUIRES org.openide.modules.ModuleFormat1
--- /dev/null
+--- netbeans-src/mdr/extras/jdbcstorage/build.xml 2006-10-05 16:58:43.000000000 +1300
++++ netbeans-src/mdr/extras/jdbcstorage/build-new.xml 2006-10-05 17:09:48.000000000 +1300
+@@ -1,20 +1,20 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+
+ <!-- The contents of this file are subject to the terms of the Common Development
+-<!-- and Distribution License (the License). You may not use this file except in
+-<!-- compliance with the License.
++ and Distribution License (the License). You may not use this file except in
++ compliance with the License.
+
+-<!-- You can obtain a copy of the License at http://www.netbeans.org/cddl.html
+-<!-- or http://www.netbeans.org/cddl.txt.
+-<!--
+-<!-- When distributing Covered Code, include this CDDL Header Notice in each file
+-<!-- and include the License file at http://www.netbeans.org/cddl.txt.
+-<!-- If applicable, add the following below the CDDL Header, with the fields
+-<!-- enclosed by brackets [] replaced by your own identifying information:
+-<!-- "Portions Copyrighted [year] [name of copyright owner]"
++ You can obtain a copy of the License at http://www.netbeans.org/cddl.html
++ or http://www.netbeans.org/cddl.txt.
++
++ When distributing Covered Code, include this CDDL Header Notice in each file
++ and include the License file at http://www.netbeans.org/cddl.txt.
++ If applicable, add the following below the CDDL Header, with the fields
++ enclosed by brackets [] replaced by your own identifying information:
++ "Portions Copyrighted [year] [name of copyright owner]"
+
+ The Original Software is NetBeans. The Initial Developer of the Original
+-<!-- Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
++ Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
+ Microsystems, Inc. All Rights Reserved.
+ -->
+
--- /dev/null
+--- build.ns-src/mdr/extras/mdrant/build.xml 2006-10-05 17:19:25.000000000 +1300
++++ netbeans-src/mdr/extras/mdrant/build-new.xml 2006-10-05 17:43:31.000000000 +1300
+@@ -1,20 +1,20 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+
+ <!-- The contents of this file are subject to the terms of the Common Development
+-<!-- and Distribution License (the License). You may not use this file except in
+-<!-- compliance with the License.
++ and Distribution License (the License). You may not use this file except in
++ compliance with the License.
+
+-<!-- You can obtain a copy of the License at http://www.netbeans.org/cddl.html
+-<!-- or http://www.netbeans.org/cddl.txt.
+-<!--
+-<!-- When distributing Covered Code, include this CDDL Header Notice in each file
+-<!-- and include the License file at http://www.netbeans.org/cddl.txt.
+-<!-- If applicable, add the following below the CDDL Header, with the fields
+-<!-- enclosed by brackets [] replaced by your own identifying information:
+-<!-- "Portions Copyrighted [year] [name of copyright owner]"
++ You can obtain a copy of the License at http://www.netbeans.org/cddl.html
++ or http://www.netbeans.org/cddl.txt.
++
++ When distributing Covered Code, include this CDDL Header Notice in each file
++ and include the License file at http://www.netbeans.org/cddl.txt.
++ If applicable, add the following below the CDDL Header, with the fields
++ enclosed by brackets [] replaced by your own identifying information:
++ "Portions Copyrighted [year] [name of copyright owner]"
+
+ The Original Software is NetBeans. The Initial Developer of the Original
+-<!-- Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
++ Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
+ Microsystems, Inc. All Rights Reserved.
+ -->
+
--- /dev/null
+--- ide/golden/modules.txt 2006-10-03 02:31:07.000000000 +0200
++++ modules.txt 2006-10-08 22:35:13.000000000 +0200
+@@ -148,7 +148,6 @@
+ MODULE org.netbeans.modules.tasklist.core/2 (ide)
+ MODULE org.netbeans.modules.tasklist.docscan/2 (ide)
+ MODULE org.netbeans.modules.tomcat5/1 (j2ee)
+-MODULE org.netbeans.modules.tomcat5.bundled/1 (j2ee)
+ MODULE org.netbeans.modules.updatecenters/1 (nb)
+ MODULE org.netbeans.modules.usersguide/1 (ide)
+ MODULE org.netbeans.modules.utilities/1 (ide)
--- /dev/null
+--- ide/golden/public-packages.txt 2006-05-09 04:48:57.000000000 -0400
++++ netbeans-src/nbbuild/build/generated/public-packages.txt 2006-09-21 01:43:29.000000000 -0400
+@@ -77,6 +77,7 @@
+ org.apache.xml.resolver.readers
+ org.apache.xml.resolver.tools
+ org.apache.xml.serialize
++org.apache.xmlcommons
+ org.jdesktop.layout
+ org.netbeans.api.db.explorer
+ org.netbeans.api.db.explorer.support
+@@ -274,5 +275,14 @@
+ org.openide.windows
+ org.openide.xml
+ org.openidex.search
++org.w3c.dom
++org.w3c.dom.css
++org.w3c.dom.events
+ org.w3c.dom.html
+ org.w3c.dom.ranges
++org.w3c.dom.stylesheets
++org.w3c.dom.traversal
++org.w3c.dom.views
++org.xml.sax
++org.xml.sax.ext
++org.xml.sax.helpers
--- /dev/null
+#!/bin/bash
+
+check_symlinks() {
+ for file in `find ${1} -type l` ; do
+
+ if ! test -e ${file} ; then
+ echo "Broken symlink:"
+ echo "${file}"
+ fi
+
+ done
+}
+
+NBDIR="/usr/share/netbeans-5.5"
+
+check_symlinks ${NBDIR}/ide7/modules/ext
+check_symlinks ${NBDIR}/ide7/modules/autoload/ext
+check_symlinks ${NBDIR}/enterprise3/config/TagLibraries/JSTL11
+check_symlinks ${NBDIR}/platform6/modules/ext
+
+${NBDIR}/bin/netbeans "$@"
--- /dev/null
+MD5 72c8b1462df3a642285e2b4c9b197e82 netbeans-5.5-files-layout-txt.patch.bz2 2543
+RMD160 7650d3ede210872779164d78c0624468e29da9e8 netbeans-5.5-files-layout-txt.patch.bz2 2543
+SHA256 311b21d53b5f27b9c12d9139157179d908ae3c1a57a6f2adb46cbd1f4ddfc81a netbeans-5.5-files-layout-txt.patch.bz2 2543
+MD5 de16a300f772af6b7d29a9d8ddf5a043 netbeans-5_5-ide_sources.tar.bz2 109745446
+RMD160 075f33dbbc666ee00dc8b25281a43dcf49d84247 netbeans-5_5-ide_sources.tar.bz2 109745446
+SHA256 ee521fa4a4807cc41b567ff6bff6d927a61415a4246fd4e6cc24f511b5827999 netbeans-5_5-ide_sources.tar.bz2 109745446
+MD5 4adaf6574008cc05bc04585bdbcc887e netbeans-5_5-javadoc.tar.bz2 11345846
+RMD160 745641defdb56f0e860e3c46f0275f3b44efe808 netbeans-5_5-javadoc.tar.bz2 11345846
+SHA256 50851849d0121e5ffa36cd5e3b9c366d40f9e2cdce4b58f030bb6716e3438c33 netbeans-5_5-javadoc.tar.bz2 11345846
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>dev-tools</herd>
-<herd>java</herd>
-<longdescription>
+
+ <herd>dev-tools</herd>
+ <herd>java</herd>
+
+ <maintainer>
+ <email>wltjr@gentoo.org</email>
+ <name>William L. Thomson Jr.</name>
+ </maintainer>
+
+ <longdescription>
NetBeans is dedicated to providing rock solid software development products (NetBeans IDE, NetBeans Platform) that address the needs
of developers, users and the businesses who rely on NetBeans as a basis for their products. NetBeans is also a vibrant community
where people from just about any country you can think of, have the ability ask questions, give advice, make a wide variety of
In June of 2000 NetBeans was made Open Source by Sun Microsystems who remains the project sponsor. Today two products exist: the
NetBeans IDE and NetBeans Platform. Both products are free for commercial and noncommercial use. The source code to both are available
to anyone, to reuse as they see fit, under the terms of use.
-</longdescription>
+ </longdescription>
+
</pkgmetadata>
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-5.5.ebuild,v 1.1 2006/11/04 10:01:54 wltjr Exp $
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="NetBeans IDE for Java"
+HOMEPAGE="http://www.netbeans.org"
+
+# ant-mis is stuff we never use put instead of pactching we let the build process use this file
+# so adding the license just to be sure
+# The list of files in here is not complete but just some I listed.
+# Apache-1.1: webserver.jar
+# Apache-2.0: ant-misc-1.6.2.zip
+# as-is: docbook-xsl-1.65.1.zip, pmd-netbeans35-bin-0.91.zip
+
+# There are many other scrambled files in Netbeans but the
+# default module configuration doesn't use all of them.
+#
+# Check the experimental tree for useful stuff.
+# https://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-util/netbeans/files
+#
+# This command should be run after ebuild <pkg> unpack in the source root
+# 'ebuild netbeans-${PVR}.ebuild compile | grep Unscrambling | grep "\.jar"'
+# Check which jars are actually being used to compile Netbeans
+#
+# This command should be run after ebuild <pkg> install in the image root
+# 'find . -name "*.jar" -type f | less'
+# Check the list to see that no packed jars get copied to the image
+#
+# Remove the unset DISPLAY line from src_compile to get graphical license dialogs and pause before
+# unscramble
+
+MY_PV=${PV/_/-}
+MY_PV=${MY_PV/./_}
+
+BASELOCATION="http://us1.mirror.netbeans.org/download/${MY_PV/-//}/fcs/200610171010"
+MAINTARBALL="netbeans-${MY_PV}-ide_sources.tar.bz2"
+JAVADOCTARBALL="netbeans-${MY_PV}-javadoc.tar.bz2"
+FILELAYOUTPATCH="netbeans-5.5-files-layout-txt.patch.bz2"
+
+SRC_URI="${BASELOCATION}/${MAINTARBALL}
+ mirror://gentoo/${FILELAYOUTPATCH}
+ doc? ( ${BASELOCATION}/${JAVADOCTARBALL} )"
+
+#LICENSE="Apache-1.1 Apache-2.0 SPL W3C sun-bcla-j2eeeditor sun-bcla-javac sun-javac as-is docbook sun-resolver"
+LICENSE="CDDL"
+SLOT="5.5"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc"
+
+# dev-java/xml-commons-resolver for future versions
+# dev-java/saxpath
+# =dev-java/jakarta-regexp-1.3*
+# dev-java/javamake-bin
+# =dev-java/jaxen-1.1*
+# dev-java/jtidy
+
+# NB 5.5 requires javahelp 2.0_03 not yet released :(
+RDEPEND="=virtual/jre-1.5*
+ >=dev-java/commons-logging-1.0
+ dev-java/commons-el
+ dev-java/sun-jmx
+ =dev-java/junit-3.8*
+ =dev-java/servletapi-2.2*
+ =dev-java/servletapi-2.3*
+ =dev-java/servletapi-2.4*
+ dev-java/sac
+ dev-java/flute
+ >=dev-java/jmi-interface-1.0-r1
+ >=dev-java/javahelp-bin-2.0.02-r1
+ =www-servers/tomcat-5.5*
+ dev-java/sun-j2ee-deployment-bin
+ dev-java/xml-commons
+ dev-java/jakarta-jstl
+ >=dev-java/xerces-2.8.0
+ =dev-java/swing-layout-1*
+ "
+DEPEND="${RDEPEND}
+ =virtual/jdk-1.5*
+ >=dev-java/ant-1.6.2
+ dev-util/pmd
+ dev-libs/libxslt
+ =dev-java/xalan-2*
+"
+
+TOMCATSLOT="5.5"
+
+# Replacement JARs for Netbeans
+COMMONS_LOGGING="commons-logging commons-logging.jar commons-logging-1.0.4.jar"
+#JASPERCOMPILER="tomcat-${TOMCATSLOT} jasper-compiler.jar jasper-compiler-5.5.9.jar"
+#JASPERRUNTIME="tomcat-${TOMCATSLOT} jasper-runtime.jar jasper-runtime-5.5.9.jar"
+JH="javahelp-bin jh.jar jh-2.0_02.jar"
+JHALL="javahelp-bin jhall.jar jhall-2.0_02.jar"
+JMI="jmi-interface jmi.jar jmi.jar"
+JSPAPI="servletapi-2.4 jsp-api.jar jsp-api-2.0.jar"
+JSR="sun-j2ee-deployment-bin-1.1 sun-j2ee-deployment-bin.jar jsr88javax.jar"
+JSTL="jakarta-jstl jstl.jar jstl-1.1.2.jar"
+JUNIT="junit junit.jar junit-3.8.1.jar"
+MOF="jmi-interface mof.jar mof.jar"
+PMD="pmd pmd.jar pmd-1.3.jar"
+SERVLET22="servletapi-2.2 servlet.jar servlet-2.2.jar"
+SERVLET23="servletapi-2.3 servlet.jar servlet-2.3.jar"
+SERVLET24="servletapi-2.4 servlet-api.jar servlet-api-2.4.jar"
+STANDARD="jakarta-jstl standard.jar standard-1.1.2.jar"
+XERCES="xerces-2 xercesImpl.jar xerces-2.8.0.jar"
+XMLCOMMONS="xml-commons xml-apis.jar xml-commons-dom-ranges-1.0.b2.jar"
+SWINGLAYOUT="swing-layout-1 swing-layout.jar swing-layout-1.0.jar"
+#REGEXP="jakarta-regexp-1.3 jakarta-regexp.jar regexp-1.2.jar"
+
+S=${WORKDIR}/netbeans-src
+BUILDDESTINATION="${S}/nbbuild/netbeans"
+ENTERPRISE="3"
+IDE_VERSION="7"
+PLATFORM="6"
+MY_FDIR="${FILESDIR}/${SLOT}"
+DESTINATION="${ROOT}usr/share/netbeans-${SLOT}"
+
+antflags=""
+
+set_env() {
+
+ antflags=""
+
+ if use debug; then
+ antflags="${antflags} -Dbuild.compiler.debug=true"
+ antflags="${antflags} -Dbuild.compiler.deprecation=true"
+ else
+ antflags="${antflags} -Dbuild.compiler.deprecation=false"
+ fi
+
+ antflags="${antflags} -Dstop.when.broken.modules=true"
+
+ # The build will attempt to display graphical
+ # dialogs for the licence agreements if this is set.
+ unset DISPLAY
+
+ # -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 ;-)
+ #
+ # We use the ANT_OPTS environment variable because other ways seem to
+ # fail.
+ #
+ export ANT_OPTS="${ANT_OPTS} -Xmx1g -Djava.awt.headless=true"
+
+}
+
+src_unpack () {
+ unpack ${MAINTARBALL}
+
+ if use doc; then
+ mkdir javadoc && cd javadoc
+ unpack ${JAVADOCTARBALL} || die "Unable to extract javadoc"
+ rm -f *.zip
+ fi
+
+ cd ${S}
+ unpack ${FILELAYOUTPATCH}
+
+ epatch netbeans-5.5-files-layout-txt.patch
+ epatch ${FILESDIR}/${SLOT}/modules-txt.patch
+ epatch ${FILESDIR}/${SLOT}/deps-txt.patch
+ epatch ${FILESDIR}/${SLOT}/public-packages-txt.patch
+ epatch ${FILESDIR}/${SLOT}/mdr_extras_jdbcstorage_build.xml.patch
+ epatch ${FILESDIR}/${SLOT}/mdr_extras_mdrant_build.xml.patch
+
+ cd ${S}/nbbuild
+ # Disable the bundled Tomcat in favor of Portage installed version
+ sed -i -e "s%tomcatint/tomcat5/bundled,%%g" *.properties
+
+ set_env
+ place_symlinks
+}
+
+src_compile() {
+
+ set_env
+
+ # The location of the main build.xml file
+ cd ${S}/nbbuild
+
+ # Specify the build-nozip target otherwise it will build
+ # a zip file of the netbeans folder, which will copy directly.
+ eant ${antflags}
+
+ # Remove non-x86 Linux binaries
+ find ${BUILDDESTINATION} -type f \
+ -name "*.exe" -o \
+ -name "*.cmd" -o \
+ -name "*.bat" -o \
+ -name "*.dll" \
+ | xargs rm -f
+
+ # Removing external stuff. They are api docs from external libs.
+ cd ${BUILDDESTINATION}/ide${IDE_VERSION}/docs
+ rm -f *.zip
+
+ # The next directory seems to be empty
+ if ! rmdir doc 2> /dev/null; then
+ use doc || rm -fr ./doc
+ fi
+
+ # Use the system ant
+ cd ${BUILDDESTINATION}/ide${IDE_VERSION}/ant
+
+ rm -fr ./lib
+ rm -fr ./bin
+
+ # Set a initial default jdk
+ echo "netbeans_jdkhome=\"\$(java-config -O)\"" >> ${BUILDDESTINATION}/etc/netbeans.conf
+}
+
+src_install() {
+ insinto $DESTINATION
+
+ einfo "Installing the program..."
+ cd ${BUILDDESTINATION}
+ doins -r *
+
+ symlink_extjars ${D}/${DESTINATION}
+
+ fperms 755 \
+ ${DESTINATION}/bin/netbeans \
+ ${DESTINATION}/platform${PLATFORM}/lib/nbexec
+
+ # The wrapper wrapper :)
+ newbin ${MY_FDIR}/startscript.sh netbeans-${SLOT}
+
+ # Ant installation
+ local ANTDIR="${DESTINATION}/ide${IDE_VERSION}/ant"
+ cd ${D}/${ANTDIR}
+
+ dodir /usr/share/ant-core/lib
+ dosym /usr/share/ant-core/lib ${ANTDIR}/lib
+
+ dodir /usr/share/ant-core/bin
+ dosym /usr/share/ant-core/bin ${ANTDIR}/bin
+
+ # Documentation
+ einfo "Installing Documentation..."
+
+ cd ${D}/${DESTINATION}
+
+ use doc && java-pkg_dohtml -r ${WORKDIR}/javadoc/*
+
+ dodoc build_info
+ dohtml CREDITS.html README.html netbeans.css
+
+ rm -f build_info CREDITS.html README.html netbeans.css
+
+ # Icons and shortcuts
+ einfo "Installing icons..."
+
+ dodir ${DESTINATION}/icons
+ insinto ${DESTINATION}/icons
+ doins ${S}/ide/branding/release/*png
+
+ for res in "16x16" "24x24" "32x32" "48x48" "128x128" ; do
+ dodir /usr/share/icons/hicolor/${res}/apps
+ dosym ${DESTINATION}/icons/netbeans.png /usr/share/icons/hicolor/${res}/apps/netbeans.png
+ done
+
+ make_desktop_entry netbeans-${SLOT} "Netbeans ${SLOT}" netbeans Development
+}
+
+pkg_postinst () {
+ einfo "Your tomcat directory might not have the right permissions."
+ einfo "Please make sure that normal users can read the directory: "
+ einfo "${ROOT}usr/share/tomcat-${TOMCATSLOT} "
+ einfo " "
+ einfo "The integrated Tomcat is not installed, but you can easily "
+ einfo "use the system Tomcat. See Netbeans documentation if you "
+ einfo "don't know how to do that. The relevant settings are in the"
+ einfo "runtime window. "
+}
+
+pkg_postrm() {
+# einfo "Removing symlinks to jars from"
+# einfo "${DESTINATION}"
+# find ${DESTINATION} -type l | xargs rm -fr
+
+ if ! test -e /usr/bin/netbeans-${SLOT}; then
+ einfo "Because of the way Portage works at the moment"
+ einfo "symlinks to the system jars are left to:"
+ einfo "${DESTINATION}"
+ einfo "If you are uninstalling Netbeans you can safely"
+ einfo "remove everything in this directory"
+ fi
+}
+
+# Supporting functions for this ebuild
+
+function fix_manifest() {
+ sed -i "s%ext/${1}%$(java-pkg_getjar ${2} ${3})%" ${4}
+}
+
+function place_symlinks() {
+ einfo "Symlinking scrambled jars to system jars"
+
+# Commented out till 2.0_03 is released
+# cd ${S}/core/external
+# hide jh*.jar || die
+# java-pkg_jar-from ${JHALL}
+
+ cd ${S}/mdr/external/
+ hide jmi.jar mof.jar || die
+ java-pkg_jar-from ${JMI} || die
+ java-pkg_jar-from ${MOF} || die
+
+# Commented out till 2.0_03 is released
+# cd ${S}/nbbuild/external
+# hide jhall*.jar || die
+# java-pkg_jar-from ${JHALL} || die
+
+ cd ${S}/libs/external/
+ hide xerces*.jar commons-logging*.jar xml-commons*.jar pmd*.jar || die
+ java-pkg_jar-from ${XERCES} || die
+ java-pkg_jar-from ${COMMONS_LOGGING} || die
+ java-pkg_jar-from ${XMLCOMMONS} || die
+ java-pkg_jar-from ${PMD} || die
+ java-pkg_jar-from ${SWINGLAYOUT} || die
+
+ cd ${S}/httpserver/external/
+ hide servlet*.jar || die
+ java-pkg_jar-from ${SERVLET22} || die
+
+ cd ${S}/j2eeserver/external
+ hide jsr*.jar || die
+ java-pkg_jar-from ${JSR} || die
+
+ cd ${S}/junit/external/
+ hide junit*.jar || die
+ java-pkg_jar-from ${JUNIT} || die
+
+ cd ${S}/web/external
+# hide servlet-*.jar jasper*.jar jsp*.jar jstl*.jar standard*.jar commons-el*.jar || die
+ hide servlet-*.jar jstl*.jar standard*.jar commons-el*.jar || die
+ java-pkg_jar-from ${SERVLET23} || die
+ java-pkg_jar-from ${SERVLET24} || die
+# java-pkg_jar-from ${JASPERCOMPILER} || die
+# java-pkg_jar-from ${JASPERRUNTIME} || die
+ java-pkg_jar-from ${JSPAPI} || die
+ java-pkg_jar-from ${JSTL} || die
+ java-pkg_jar-from ${STANDARD} || die
+ java-pkg_jar-from commons-el || die
+
+ cd ${S}/xml/external/
+ hide flute*.jar sac*.jar || die
+ java-pkg_jar-from sac || die
+ java-pkg_jar-from flute || die
+}
+
+function symlink_extjars() {
+ einfo "Added symlinks to system jars inside"
+ einfo "${DESTINATION}"
+
+ cd ${1}/ide${IDE_VERSION}/modules/ext
+ java-pkg_jar-from ${COMMONS_LOGGING}
+ java-pkg_jar-from flute
+ java-pkg_jar-from sac
+ java-pkg_jar-from ${JMI}
+ java-pkg_jar-from ${MOF}
+ java-pkg_jar-from ${JUNIT}
+
+ cd ${1}/ide${IDE_VERSION}/modules/ext
+ java-pkg_jar-from ${SERVLET22}
+ java-pkg_jar-from ${XERCES}
+ java-pkg_jar-from ${XMLCOMMONS}
+
+ cd ${1}/enterprise${ENTERPRISE}/modules/ext
+ java-pkg_jar-from commons-el
+ java-pkg_jar-from ${SERVLET23}
+ java-pkg_jar-from ${SERVLET24}
+ java-pkg_jar-from ${JSR}
+# java-pkg_jar-from ${JASPERCOMPILER}
+# java-pkg_jar-from ${JASPERRUNTIME}
+ java-pkg_jar-from ${JSPAPI}
+ java-pkg_jar-from jakarta-jstl jstl.jar
+ java-pkg_jar-from jakarta-jstl standard.jar
+
+# Commented out JHALL till 2.0_03 is released
+ cd ${1}/platform${PLATFORM}/modules/ext
+ java-pkg_jar-from ${SWINGLAYOUT}
+# java-pkg_jar-from ${JHALL}
+}
+
+function hide() {
+ for x in $@ ; do
+ mv $x _$x
+ done
+}
+
+function unscramble_and_empty() {
+ echo $(pwd)
+ yes yes 2> /dev/null | ant ${antflags} unscramble > /dev/null || die "Failed to unscramble"
+ remove_unscrambling
+}
+
+function remove_unscrambling() {
+ local file=${1}
+
+ [ -z ${file} ] && file="build.xml"
+
+ xsltproc -o ${T}/out.xml ${FILESDIR}/emptyunscramble.xsl ${file} \
+ || die "Failed to remove unscrambling from one of the build.xml files"
+ mv ${T}/out.xml ${file}
+}