public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/fordfrog:master commit in: dev-java/netbeans-profiler/, dev-java/netbeans-javafx/, ...
@ 2016-10-26  9:22 Miroslav Šulc
  0 siblings, 0 replies; only message in thread
From: Miroslav Šulc @ 2016-10-26  9:22 UTC (permalink / raw
  To: gentoo-commits

commit:     38b6e6d3feacbaa707f089834b71c070df4cea13
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 26 09:22:45 2016 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Oct 26 09:22:45 2016 +0000
URL:        https://gitweb.gentoo.org/dev/fordfrog.git/commit/?id=38b6e6d3

netbeans: bumped to the latest nightly sources

Package-Manager: portage-2.3.2

 dev-java/netbeans-apisupport/Manifest              |   2 +
 .../netbeans-apisupport-9999_p20161026.ebuild      |  99 ++++++
 dev-java/netbeans-cnd/Manifest                     |   2 +
 .../netbeans-cnd-9999_p20161026.ebuild             | 115 +++++++
 dev-java/netbeans-dlight/Manifest                  |   2 +
 .../netbeans-dlight-9999_p20161026.ebuild          |  89 +++++
 dev-java/netbeans-enterprise/Manifest              |   2 +
 .../netbeans-enterprise-9999_p20161026.ebuild      | 254 +++++++++++++++
 dev-java/netbeans-ergonomics/Manifest              |   2 +
 .../netbeans-ergonomics-9999_p20161026.ebuild      |  89 +++++
 dev-java/netbeans-extide/Manifest                  |   2 +
 .../netbeans-extide-9999_p20161026.ebuild          |  96 ++++++
 dev-java/netbeans-groovy/Manifest                  |   2 +
 .../netbeans-groovy-9999_p20161026.ebuild          |  99 ++++++
 dev-java/netbeans-harness/Manifest                 |   2 +
 .../netbeans-harness-9999_p20161026.ebuild         | 102 ++++++
 dev-java/netbeans-ide/Manifest                     |   2 +
 .../netbeans-ide-9999_p20161026.ebuild             | 362 +++++++++++++++++++++
 dev-java/netbeans-java/Manifest                    |   3 +
 .../netbeans-java-9999_p20161026.ebuild            | 268 +++++++++++++++
 dev-java/netbeans-javacard/Manifest                |   2 +
 .../netbeans-javacard-9999_p20161026.ebuild        | 122 +++++++
 dev-java/netbeans-javadoc/Manifest                 |   2 +
 .../netbeans-javadoc-9999_p20161026.ebuild         | 156 +++++++++
 dev-java/netbeans-javafx/Manifest                  |   2 +
 .../netbeans-javafx-9999_p20161026.ebuild          | 112 +++++++
 dev-java/netbeans-mobility/Manifest                |   2 +
 .../netbeans-mobility-9999_p20161026.ebuild        | 114 +++++++
 dev-java/netbeans-nb/Manifest                      |   2 +
 .../netbeans-nb/netbeans-nb-9999_p20161026.ebuild  | 116 +++++++
 dev-java/netbeans-php/Manifest                     |   2 +
 .../netbeans-php-9999_p20161026.ebuild             | 115 +++++++
 dev-java/netbeans-platform/Manifest                |   2 +
 .../netbeans-platform-9999_p20161026.ebuild        | 155 +++++++++
 dev-java/netbeans-profiler/Manifest                |   2 +
 .../netbeans-profiler-9999_p20161026.ebuild        | 109 +++++++
 dev-java/netbeans-webcommon/Manifest               |   2 +
 .../netbeans-webcommon-9999_p20161026.ebuild       | 120 +++++++
 dev-java/netbeans-websvccommon/Manifest            |   2 +
 .../netbeans-websvccommon-9999_p20161026.ebuild    |  82 +++++
 dev-util/netbeans/Manifest                         |   2 +
 dev-util/netbeans/netbeans-9999_p20161026.ebuild   | 235 +++++++++++++
 42 files changed, 3052 insertions(+)

diff --git a/dev-java/netbeans-apisupport/Manifest b/dev-java/netbeans-apisupport/Manifest
index 2804359..cddda96 100644
--- a/dev-java/netbeans-apisupport/Manifest
+++ b/dev-java/netbeans-apisupport/Manifest
@@ -28,6 +28,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-apisupport-8.0.2.ebuild 3314 SHA256 b68fe791f275fe4fcc8b00888688949b8927cb39db2cf9ad7860017c6d20adee SHA512 35c4bbcd34ec0eaef8a2de86c13333d2bf092db61af48558c3e173bb17dbf8fcd15001307bd7c498f4ccdbaa4277e1ee42ff0909af6170039165b547f646c383 WHIRLPOOL 206fe8d5f64e76827d3eb958a629ba087e8a16c2797752f5d9e62dff4166653677587a81be19e0a2c6adcf49292255d532e1f542c02550b1cf6ffd51467bde3c
 EBUILD netbeans-apisupport-8.1.ebuild 3338 SHA256 d249a09cd1a527bfc4f0dc87b1768aad9f05fc7fe7079fad0094c27d416d030c SHA512 47e5db58581625b23157ef7a7b6e340fce1327db85e015369ac32791178a0836af3348397ac6ff4439ab246170d3318c2062994c81019ff361084f00d432c9c8 WHIRLPOOL 8e379c9219b7730a15c10216bed00c3ec104f84b252d32da629f066095897398a4d8818e07cda5afdf94b115b97ead8de6a9529f38c81c1c41144067f119e54e
 EBUILD netbeans-apisupport-8.2.ebuild 3059 SHA256 605b99cf2fe6fd30b28053ef3a3e6dfbed6189f97c20728c41e00ae08b766edd SHA512 876916d7591bc518c9ba63d8335391a41bbb89809828dfb44c3eb4edefddf7393c143825e8731de2b8cf6e6a1aafdbe274ac1d7456a982d3846b43a2d16adc8f WHIRLPOOL 329046fd8eb19229567f85d19e6fef0f0636bc6efb5ad1b84c102c3dc7119ea8672a8f4ad7937f837b4a43537725cea7e137d88ea01ea9fafb34cbebb9b0ec56
@@ -53,4 +54,5 @@ EBUILD netbeans-apisupport-9999_p20161022.ebuild 3105 SHA256 7616d95256ce8a72892
 EBUILD netbeans-apisupport-9999_p20161023.ebuild 3105 SHA256 eca31d4899d2f88501c7340e76706a2e4ed89741930ec22a1ab4c87a1d29e7e3 SHA512 f91797d0f11032fe1b2ae761a68dd859a72384a29c3c1b99b9834f1b85ae83f71cfc85408cbd81f1ff6e2aae6992fd87ea92c9fd57087a7bf06023e610df08b6 WHIRLPOOL f6a6dab6d96983f8a4813e9c6c2f081d0fa7f45fdc2a02b00413b902bdf51f9cc83573ef87a1da83fe0531497876c651677f9b4bb0a174c8dc27f52966954c7d
 EBUILD netbeans-apisupport-9999_p20161024.ebuild 3105 SHA256 ed68c2f2387fcaa8856220fbd42bde2baf26e5b69470842d9f2a8ee4e8b8f896 SHA512 d8c96b59d472bc8dd8691cd537014336e4b51fc2b313b9f59063a655cc36a44cfd594f72ae0b2c7b6997887926783067e68f4eb3db1f5453e981d5ffd1275985 WHIRLPOOL 79a5c9de96f8690302b4b739c951be992f63b11093d5e2fbd277bbbe271b4bebd1a2e7b2c728bacc242ccfeee51726504ffa5d71d5136d94758828fd887a340c
 EBUILD netbeans-apisupport-9999_p20161025.ebuild 3105 SHA256 453a7bfd69081961793e86e450a52f87258d969962398ba143f534c343417ef5 SHA512 f208a4c2d9fe3f1709537325fb9118ab4802be02d0721371365f352746fdff28931b2d75469a678621f8aa22a68f52eed2efac007fc2883805d3210c046b9284 WHIRLPOOL 2435c3ecf1d5ab86b79397af101932092cdbb8a4c0a12c1a1b47daec458cc5c2fa29c52bf12fea183043c5ef4926f2631279b41afb9c108d5130553d92b68e66
+EBUILD netbeans-apisupport-9999_p20161026.ebuild 3105 SHA256 93f0d5244f38454fdfc64ced451da12eba824f09e85958bcb645d2d6b2b1c7ea SHA512 03013dfdd39135cea066d66b6ccfc77e3a402f942c05ca76f0f7d57081ba094b8af733db5faf8742a1fc820744080794c441d5137d23de8d645b5583f822b8b9 WHIRLPOOL ba80c67b7e5bfe713e9e3f719752d6b8855f1a5512adc1fc531e5492cdac3879cf627b1e22c0a0e27836866ed407cd5aff0296e4cc1bd9de5e497a950aed68d5
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-apisupport/netbeans-apisupport-9999_p20161026.ebuild b/dev-java/netbeans-apisupport/netbeans-apisupport-9999_p20161026.ebuild
new file mode 100644
index 0000000..9847004
--- /dev/null
+++ b/dev-java/netbeans-apisupport/netbeans-apisupport-9999_p20161026.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans API Support Cluster"
+HOMEPAGE="http://netbeans.org/projects/apisupport"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.apisupport -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/apisupport >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/apisupport$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/apisupport
+}

diff --git a/dev-java/netbeans-cnd/Manifest b/dev-java/netbeans-cnd/Manifest
index 31fac3e..33714b2 100644
--- a/dev-java/netbeans-cnd/Manifest
+++ b/dev-java/netbeans-cnd/Manifest
@@ -39,6 +39,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-cnd-8.0.2.ebuild 4510 SHA256 0a9a4e58e28f395b5bcb017016b6ddb1b77afe393d0e5bd81cc05e3a32076c71 SHA512 2b1fedfe292fa140920fd11829e77127f9535e08b8307886accfa37e6d11195a1204e6b71b2640937da0711c3ce0bbf80c0eaa3c248a64fd61b6a3d99d5de14e WHIRLPOOL 10b1518360ade5d6f1f27c79a10f630b94a2ec5062e18df11f9828d4b374e6cbdea0b9f770e01c117ca90fa194dff9bd3be6a468075c2d35167fb78a7bb32794
 EBUILD netbeans-cnd-8.1.ebuild 4744 SHA256 e008e92761489558e039a07d4858b5a9745aa38c38c57668cba8b5f6a28dbd9b SHA512 724af3f292851fa1a04ccc95fe0a4f9d0fab5503ce31d2ff11be73779d67bd0f38835b334684f628f8eea2dde44543e6b872611b2bd6c01191ccfe26e69f4ec2 WHIRLPOOL 59ddd65a105dafeb8b783f457ec7a8c67a5a3aceb78ca60ac7c4f45f330b28b429ba6236a643ca0023189a9ebdb1ca0182ec0546943ec2494693859aa8f95515
 EBUILD netbeans-cnd-8.2.ebuild 4465 SHA256 e5268b1872a0ba3f39dfbd8d49fddd9938900bbbc96e432fa1807ee0b6c36fbb SHA512 6c30daf1aea9d0d598d16903facbbc4a02660821dd6ab5b98c940305adc3dbe41d5410bfad7c1afe4adb33b45056730c95eb9fe2462b5fff26449a7814202bce WHIRLPOOL f60d88d6cd35594ff406fbef4e181abb02a3699d442450f19da173e802576fbad7c891efeff236e3d02d7a217f4685650bd2d57aa6ea17e29f550ede9ac13d06
@@ -64,4 +65,5 @@ EBUILD netbeans-cnd-9999_p20161022.ebuild 4516 SHA256 5a408782f5b0e839abee9f31a9
 EBUILD netbeans-cnd-9999_p20161023.ebuild 4516 SHA256 9aa011ce435be8037e9519e2ff62995e662f7efedd3b6b685e379e75674e4066 SHA512 23fc15fc5c80b10a99d4860882c75284639cf8372b1171942c07db4ee52e4d1f68e20998cf241d1230850dbd16e6626515d0cd91f50c491775f5541307346de6 WHIRLPOOL df12f95448dda08c9059aa43266fc2f0143e151b904eddd0f3dc9170e3f46e140e139ff9def189c230cc04fc50561971f8309053dd878006a7a60b5c07bc7e4e
 EBUILD netbeans-cnd-9999_p20161024.ebuild 4516 SHA256 12aabf266b7d79526988f3e7cabb0d1a0ffc42259d55e48aaf91a9fe1882854b SHA512 52f38486a1d77599e1f1e85aff9dcadaae7c42bf4c5218fcd3431a557162f6e547c55bcd29274e3b0e3db200c65fe235660ac720472fce33b5a61fb7f96a76c2 WHIRLPOOL b4cbd1415971bc49e3b10e139e563eadfe8fe627800f3df6779fa5f05e4ae55f69003dbc491a0524fc520fe1a3de0f6853c27c9b784aaf7f930dc38d5ffde7e9
 EBUILD netbeans-cnd-9999_p20161025.ebuild 4516 SHA256 761ad46b8c0da87f9a8bee36a2cb0ff552853e7788770e7333dd8b7b7dfaebb8 SHA512 2cbfbbb138268a679bd976964796913ace19793839e27548f746c2526857fa33ea2e30175b37e15f9ea618cd4167158c432d2b63c78a7ac4238530a9a13e5d43 WHIRLPOOL ef3950c5def64574e3fdcffd712b05386ea2b31f26412c1f73dd4c1698d38c128a20b3e5635a4d97f36cb78a7397274c4df04d95a29cf5c8421af8530863fb67
+EBUILD netbeans-cnd-9999_p20161026.ebuild 4516 SHA256 395516c3efcf345008881549b645e77cae41a16f788b7e91897d0bbe9e755f6e SHA512 2f9ed7ebe2591ddfa0a74119694fcc42f49ad1ee1cadfa58f48e550ae5fc5e4a3fd62d5879ef14c6ea7504f1d8a40edd8c81fc6498fa7309ed1dfe00992ca9b4 WHIRLPOOL b1784d050ad509ecf256e045e0e792344d7ea004da5e0bf210f99d91fb96f56bfab440900b97fcfff254ccb11c2ef55a443c4df068a0a21d6a5984dffb3c30eb
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-cnd/netbeans-cnd-9999_p20161026.ebuild b/dev-java/netbeans-cnd/netbeans-cnd-9999_p20161026.ebuild
new file mode 100644
index 0000000..4c54524
--- /dev/null
+++ b/dev-java/netbeans-cnd/netbeans-cnd-9999_p20161026.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans CND Cluster"
+HOMEPAGE="http://netbeans.org/projects/cnd"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/5CAB59D859CAA6598E28131D30DD2E89806DB57F-antlr-3.4.jar
+	http://hg.netbeans.org/binaries/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar
+	http://hg.netbeans.org/binaries/F20EEEDF4FE6B93B180387576FB780EED9F79C66-clank_0.3.9.zip
+	http://hg.netbeans.org/binaries/43A82EB3CE61B9B0B1C60586C7D84729BD5BE3E0-cnd-build-trace-1.0.zip
+	http://hg.netbeans.org/binaries/E59851B0E49C05D728D5C653E52750FA5B6A8F0E-cnd-rfs-1.0.zip
+	http://hg.netbeans.org/binaries/C51780D99464CBF45B0495C7646B442AB3C7B463-open-fortran-parser-0.7.1.2.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+# These files are for remote development and debugging
+QA_PREBUILT="usr/share/netbeans-cnd-${SLOT}/bin/*"
+
+CDEPEND="~dev-java/netbeans-dlight-${PV}
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	dev-java/jna:4
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.cnd -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/5CAB59D859CAA6598E28131D30DD2E89806DB57F-antlr-3.4.jar libs.antlr3.devel/external/antlr-3.4.jar || die
+	ln -s "${DISTDIR}"/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar libs.antlr3.runtime/external/antlr-runtime-3.4.jar || die
+	ln -s "${DISTDIR}"/F20EEEDF4FE6B93B180387576FB780EED9F79C66-clank_0.3.9.zip libs.clank/external/clank_0.3.9.zip || die
+	ln -s "${DISTDIR}"/43A82EB3CE61B9B0B1C60586C7D84729BD5BE3E0-cnd-build-trace-1.0.zip cnd.discovery/external/cnd-build-trace-1.0.zip || die
+	ln -s "${DISTDIR}"/E59851B0E49C05D728D5C653E52750FA5B6A8F0E-cnd-rfs-1.0.zip cnd.remote/external/cnd-rfs-1.0.zip || die
+	ln -s "${DISTDIR}"/C51780D99464CBF45B0495C7646B442AB3C7B463-open-fortran-parser-0.7.1.2.zip cnd.modelimpl/external/open-fortran-parser-0.7.1.2.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --build-only --into libs.jna/external jna-4 jna.jar jna-4.2.2-stripped.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-dlight-${SLOT} dlight || die
+	cat /usr/share/netbeans-dlight-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.dlight.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/cnd >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/cnd$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+	fperms 755 bin/dorun.sh
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/cnd
+}

diff --git a/dev-java/netbeans-dlight/Manifest b/dev-java/netbeans-dlight/Manifest
index c97ba22..dc17a32 100644
--- a/dev-java/netbeans-dlight/Manifest
+++ b/dev-java/netbeans-dlight/Manifest
@@ -31,6 +31,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-dlight-8.0.2.ebuild 2898 SHA256 08402481b573b90396431be03bda45904b2dd29f0086e09a111fe362e310c3f7 SHA512 3f6d6c9ea0043382562fbe47ad16e3273032407a74cb44ec7ff26736f96483835af4be8674361e910912a550b9fe592cc5a28c2b93b6b993076553195c35eac5 WHIRLPOOL 9d8706ccbc0d97b0f5d64ebf22c36316b08d8fbccd57408119ca5f5faef08c7f82677bf67488ff611eabeaa730e4c9a730c50966d94d738cfe79330ac147863d
 EBUILD netbeans-dlight-8.1.ebuild 2922 SHA256 f003a099e3f82f5ab53dcc56d86c00a662c98f47480feacac2a77ffea90ccd0f SHA512 94706ac4d8570deb8860236300cfeddfb2c3cbfd385ecb438a039991deeb018f292f6dbb2267d7c701b7f1b5b88d200f2c25696fb3204fcf205c15155b26d1fc WHIRLPOOL 1e44f40c8e2c03b7aa7385ef20a3247ea15a4d4705ce4b5f860bffe236eb578ab3d912f2cc2457e5906158ae747edc3b6b92463336c69af9cd58eca3fccb223d
 EBUILD netbeans-dlight-8.2.ebuild 2643 SHA256 0608962b0d5b55245c0197d9d3611dce2abbda380cce67c72c5df8922367658c SHA512 fc46e711046fd751f358771c5fa08050bbd9fe51d81fc7f696c3ff7d597b5401a06fc1395c77baf33f8b8d5271e3f8dacf91a94f3a223af383a5596b227d9736 WHIRLPOOL 7a9d758015d16fb389b9a0e3e2a666508fa7079ddcf3fe36d967aeac73f5078f90ae72a90ddf28587337a1906b458034cd648cf75b71ef1a0fef52d168fa5192
@@ -56,4 +57,5 @@ EBUILD netbeans-dlight-9999_p20161022.ebuild 2689 SHA256 baa93f523b42e3769a6a5c1
 EBUILD netbeans-dlight-9999_p20161023.ebuild 2689 SHA256 08ea007fce0ed3178948b6b511c6f09e0057ec32e2262809e17e0003b18d95ed SHA512 2d14f8c3813e769bb809eab73fc1000d09c0479c3b1e971bc56497f84d8584f4807dff42fc2651a3345ff28ed657092c140021e2df92d24ef6f3ef72491dcf02 WHIRLPOOL 84074bf1c1346ef793028f3d1bfaee252ed88480417ba28e3d0c5e06975bbcdfbd9605e7615e450a63a3a585ec5f5bf8ac2aa910b64865f45270328b9bf952b9
 EBUILD netbeans-dlight-9999_p20161024.ebuild 2689 SHA256 e473c1d5b60aa37e4faa891e33bba5e293e190b6415acb32f4dcfa8668b03d86 SHA512 f66e3535b81b0553684fceb5c759896fdd260119fadfa56a1a1703ba22259b1825728652bcb564c4997971d7c9dbb34956db68c5be73619c0bbf68053664fe9e WHIRLPOOL f9b9b70f895660da3fec0c1edf61cab9df684013accc877fd1cb0942d2c34e5452fadb5e98171c03bc214465a69e5a8776bf3493ae986496afe2d3f05d370eff
 EBUILD netbeans-dlight-9999_p20161025.ebuild 2689 SHA256 ff7886ef4f912ea46892bc8094f689424f689806d993eaac321d18226a1d4ba5 SHA512 e3a3ce8ce56e1e94ac3e68e56bd7adc443427bc3e12a8e0e86e2a97fde1b75bdd55b895d5002d5a7b86c7bd402e9c2bc08bec02124795bba868e5eacf338f752 WHIRLPOOL 28952a98f3e7798b0bc2c07ba1f588b7f01355d57eb3fcf8a9c437acb6401ad76bbd0ef823dbbb9491db67647300ea8e40dba166036e32b12f31b45e57360dfc
+EBUILD netbeans-dlight-9999_p20161026.ebuild 2689 SHA256 5f9c146fd24d81a504714b7bec625947bfd98d38f52f86fe1ea2b3501768d019 SHA512 414fdcfd5cb7bcc9b9cd4d48cde705e61427076fd925f609a4ad0b35a7f62ac65dd9cb5bd133daec52f91623a9d66084ce8a9066047a8e45cce31ee1eae4e4e8 WHIRLPOOL 8243225320e7e0bd80938099b236f566a9a18066001816e8225c3b1578daaec2b08f017e601e2bd8fb496966bb151eb5b9b66e3359eae0288d108530b85afbf8
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-dlight/netbeans-dlight-9999_p20161026.ebuild b/dev-java/netbeans-dlight/netbeans-dlight-9999_p20161026.ebuild
new file mode 100644
index 0000000..8ab9cf6
--- /dev/null
+++ b/dev-java/netbeans-dlight/netbeans-dlight-9999_p20161026.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans D-Light Cluster"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/18E39A0D10357B72EDB76F2070E27019317792F1-fs_server-1.0.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.dlight -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/18E39A0D10357B72EDB76F2070E27019317792F1-fs_server-1.0.zip dlight.remote.impl/external/fs_server-1.0.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/dlight >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/dlight$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/dlight
+}

diff --git a/dev-java/netbeans-enterprise/Manifest b/dev-java/netbeans-enterprise/Manifest
index 8130e57..373a6f7 100644
--- a/dev-java/netbeans-enterprise/Manifest
+++ b/dev-java/netbeans-enterprise/Manifest
@@ -60,6 +60,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-enterprise-8.0.2-r1.ebuild 15075 SHA256 41d376117ad1d8d59c8194debfd29dc42f5fd4de70aee12a2134ec143a604dda SHA512 4cd9de88e9a401cc0be88e3e2605abc411c47307818376b2bcc00f9ae570b21324f2bf00fd83e819bfa076da0fb07811fa1f0f9362a6cd0ee05b63221a199000 WHIRLPOOL 73f4518c14430fe7aa3614ebf1b11a06ba0e9bce7479af2770db3a114f149d575a16a655218f757ed416b5149228ac56dac700f5a8d5e034cc838bfa4092e636
 EBUILD netbeans-enterprise-8.1-r1.ebuild 15888 SHA256 d4c04ccfee01a46819020cb7cf8fd8297618f3c0431ae2d9dd7eec8131f988ab SHA512 6c7c39c378cb79d3f382cb80d07710a8c5233aaf0df8fb58889ee6aa6bde73624efa6aa49b43f84105685094a7aff89e4b6367ffd1fd113da27b42d50d07e983 WHIRLPOOL e678e2a6957e428c1b6e51469c0e7cc6a08da2c797f1575b6bb660a7f3281c00f071179de459e27c983304915b005baaf94ad4fae0a4c08162f218bf53b7d821
 EBUILD netbeans-enterprise-8.2.ebuild 15500 SHA256 c873137315dbae5c4e106ebb8e45c4f0f393b827c1f780c7b0bb8b1fb9acaf1b SHA512 b5c42aef845bc6095652f0fdc0cc09decd06603d7564de0b579018719127df108632f7c123b17477985adc5e06f53711221f62a50845f1e1163df5a8b5489cff WHIRLPOOL 802f4dbbfb9f49bcd3f82203612e5fee8ed41974f8d879388239fa019ad9336ac58c98620f2482d0de8e9fb19989ff77ff93130ae2b0b4c027fc3e4073704cf8
@@ -85,4 +86,5 @@ EBUILD netbeans-enterprise-9999_p20161022.ebuild 15546 SHA256 12a5a026f862007391
 EBUILD netbeans-enterprise-9999_p20161023.ebuild 15546 SHA256 31286d9673cbd708c3cddcac6e97a5af2c8e4f7a64c0cbbae672de76c77ba3a6 SHA512 901ed0ca4606d6c876adf15a420f9c0d9cf0cbb438c5f7e6e23f25976380f6edb45f0b17f4e9147f092acd9438f507671298e2326ce783333001af005c15dacd WHIRLPOOL afdb94abc07ecee4f6f58361045df0c6789b4c7682b3c463f39034b95916a9f29b6a281ca37e3cb3461ef3abe513118f010bca17fa6c1f3b8f3f2bd96e536e08
 EBUILD netbeans-enterprise-9999_p20161024.ebuild 15546 SHA256 8ecf9a44b1c7e725b39a75d8a39378ab89b311eb5d7e451c9d238580b2a56bb6 SHA512 81b0c97f6d4c0cddf7934858593751d7fad9d01f2f9514b59ab9fbfc577006b61d4f2072cdfe1340f0eae97de9460c4b52fbdf3b7aa3cce814ee40ce47146025 WHIRLPOOL 081e4b9122a854a61071b8bb58aafebe6abc394c2559ec936a790e0945e76196c72ae943ffdb80b23efe5e3da4f2d5602fdde6863792906ce04797c222af9c94
 EBUILD netbeans-enterprise-9999_p20161025.ebuild 15546 SHA256 ff1b773a7273d15fcac4b4e847464c4bf8e53f40c5208da848a312f57ae0de66 SHA512 5d9d197ef1581cf851224809a2610301852271971f10571219f3f30be4ac331cfe5a581a85b4e5d14ae97b2f956bb9ad7cd94969e50e981196401a66c7cbd177 WHIRLPOOL f580cac78e74d67e3c1bace0ebbeee412a88168c917ec15878a042e576ee05d5cf804892b77b32a563b2d3b0f1ef5362c4e072f7a7fc4da3e5b2917a11c3f698
+EBUILD netbeans-enterprise-9999_p20161026.ebuild 15546 SHA256 6e49064cf6f414d6ebbde2d430c7016c046e5f3cebaee462ebb2c03abb32a351 SHA512 6bd3e28690a4a2fbf6a966d40d327feaa22191e1ed4ae3dc4526fbe73b51f01ac44d3e1066f0bde08091ac15671e0dc359f5d9ff1e4b05106b32b7a1b64e109e WHIRLPOOL 3d9d8cb032a140ddad3735560f1cf845d34995772448069806d07b7fd281f14e7a982b9fd666e54163c3c3a2b61c29ab228c3e8a65c08610bf5c8f7dadbb173a
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-enterprise/netbeans-enterprise-9999_p20161026.ebuild b/dev-java/netbeans-enterprise/netbeans-enterprise-9999_p20161026.ebuild
new file mode 100644
index 0000000..a2ed1af
--- /dev/null
+++ b/dev-java/netbeans-enterprise/netbeans-enterprise-9999_p20161026.ebuild
@@ -0,0 +1,254 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Enterprise cluster"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/8BFEBCD4B39B87BBE788B4EECED068C8DBE75822-aws-java-sdk-1.2.1.jar
+	http://hg.netbeans.org/binaries/BA8A45A96AFE07D914DE153E0BB137DCDC7734F6-el-impl.jar
+	http://hg.netbeans.org/binaries/33B0D0945555A06B74931DEACF9DB1A4AE2A3EC4-glassfish-jspparser-4.0.jar
+	http://hg.netbeans.org/binaries/D813E05A06B587CD0FE36B00442EAB03C1431AA9-glassfish-logging-2.0.jar
+	http://hg.netbeans.org/binaries/3D74BFB229C259E2398F2B383D5425CB81C643F0-httpclient-4.1.1.jar
+	http://hg.netbeans.org/binaries/33FC26C02F8043AB0EDE19EADC8C9885386B255C-httpcore-4.1.jar
+	http://hg.netbeans.org/binaries/D6F416983EA13C334D5C599A9045414ECAF5D66D-javaee-api-6.0.jar
+	http://hg.netbeans.org/binaries/51399F902CC27A808122EDCBEBFAA1AD989954BA-javaee-api-7.0.jar
+	http://hg.netbeans.org/binaries/EBEC44255251E6D3B8DDBAF701F732DAF0238CBF-javaee-web-api-6.0.jar
+	http://hg.netbeans.org/binaries/B1FCE45BA94108EBF7E1CACE6427EC8761CABEC1-javaee-web-api-7.0.jar
+	http://hg.netbeans.org/binaries/27E9711AA35C39EF455BFD900D544BACB99C0E89-javaee-doc-api.jar
+	http://hg.netbeans.org/binaries/B290091E71DEED6CE7F9EB40523D49C26399A2B4-javax.annotation.jar
+	http://hg.netbeans.org/binaries/1DEEA980904E39C3D7AA240B72CDBBEB8E4860F9-javax.annotation-api.jar
+	http://hg.netbeans.org/binaries/E11C0F07A92F6D02A347DD9C55EE56692A6D9F7E-javax.xml.soap-api.jar
+	http://hg.netbeans.org/binaries/EB77D3664EEA27D67B799ED28CB766B4D0971505-jaxb-api-osgi.jar
+	http://hg.netbeans.org/binaries/45EBA8B0520A70787D5DD2EA154ACE152F817C0D-jaxb-api-osgi.jar
+	http://hg.netbeans.org/binaries/C614ECF62381F88208D66D96146A8307781058DB-jaxrs-ri-2.5.1.zip
+	http://hg.netbeans.org/binaries/D4C96D968F87B1BFEF138E91E06C8FD4A1904208-jaxws-api.jar
+	http://hg.netbeans.org/binaries/B9DB1A789C301F1D31DD6CC524DA2EBD7F89190D-jsf-1.2.zip
+	http://hg.netbeans.org/binaries/99277566601C4D5C2598B0206B5DC071932F3641-jsf-2.2.zip
+	http://hg.netbeans.org/binaries/93A58E37BA1D014375B1578F3D904736CB2D408F-jsf-api-docs.zip
+	http://hg.netbeans.org/binaries/F072F63AB1689E885AC40C221DF3E6BB3E64A84A-jstl-api.jar
+	http://hg.netbeans.org/binaries/5B2E83EF42B4EEF0A7E41D43BB1D4B835F59AC7A-jstl-impl.jar
+	http://hg.netbeans.org/binaries/FDECFB78184C7D19E7E20130A7D7E88C1DF0BDD1-metro-1.4-doc.zip
+	http://hg.netbeans.org/binaries/F05AE8173BC750ECF1B52AD1F80050226458E490-metro-2.0.zip
+	http://hg.netbeans.org/binaries/065BDCE80509320280B3B5210FCDDAE9B7D50338-primefaces-5.0.jar
+	http://hg.netbeans.org/binaries/68C97A238A2143B616879E8C1EF5BF01EA25B11E-servlet3.1-jsp2.3-api.jar
+	http://hg.netbeans.org/binaries/9319FDBED11E0D2EB03E4BB9E94BAA439A1DA469-struts-1.3.10-javadoc.zip
+	http://hg.netbeans.org/binaries/9E226CFC08177A6666E5A2C535C25837A92C54C9-struts-1.3.10-lib.zip
+	http://hg.netbeans.org/binaries/F6E990DF59BD1FD2058320002A853A5411A45CD4-syntaxref20.zip
+	http://hg.netbeans.org/binaries/A5744971ACE1F44A0FC71CCB93DE530CB3022965-webservices-api-osgi.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-profiler-${PV}
+	~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-webcommon-${PV}
+	~dev-java/netbeans-websvccommon-${PV}
+	dev-java/commons-codec:0
+	dev-java/commons-fileupload:0
+	dev-java/commons-logging:0
+	dev-java/glassfish-deployment-api:1.2
+	dev-java/jsr181:0"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0
+	>=dev-java/junit-4.4:4
+	dev-java/tomcat-servlet-api:2.3"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}
+	>=dev-java/antlr-2.7.7-r7:0
+	dev-java/bsf:2.3
+	dev-java/cglib:3
+	dev-java/commons-beanutils:1.7
+	dev-java/commons-collections:0
+	dev-java/commons-digester:0
+	dev-java/commons-io:1
+	dev-java/commons-validator:0
+	dev-java/glassfish-persistence:0
+	dev-java/guava:14
+	dev-java/jakarta-oro:2.0
+	dev-java/osgi-core-api:0
+	dev-java/validation-api:1.0"
+#	dev-java/commons-chain:1.1 in overlay
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.enterprise -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/8BFEBCD4B39B87BBE788B4EECED068C8DBE75822-aws-java-sdk-1.2.1.jar libs.amazon/external/aws-java-sdk-1.2.1.jar || die
+	ln -s "${DISTDIR}"/BA8A45A96AFE07D914DE153E0BB137DCDC7734F6-el-impl.jar libs.elimpl/external/el-impl.jar || die
+	ln -s "${DISTDIR}"/33B0D0945555A06B74931DEACF9DB1A4AE2A3EC4-glassfish-jspparser-4.0.jar web.jspparser/external/glassfish-jspparser-4.0.jar || die
+	ln -s "${DISTDIR}"/D813E05A06B587CD0FE36B00442EAB03C1431AA9-glassfish-logging-2.0.jar libs.glassfish_logging/external/glassfish-logging-2.0.jar || die
+	ln -s "${DISTDIR}"/3D74BFB229C259E2398F2B383D5425CB81C643F0-httpclient-4.1.1.jar libs.amazon/external/httpclient-4.1.1.jar || die
+	ln -s "${DISTDIR}"/33FC26C02F8043AB0EDE19EADC8C9885386B255C-httpcore-4.1.jar libs.amazon/external/httpcore-4.1.jar || die
+	ln -s "${DISTDIR}"/D6F416983EA13C334D5C599A9045414ECAF5D66D-javaee-api-6.0.jar javaee.api/external/javaee-api-6.0.jar || die
+	ln -s "${DISTDIR}"/51399F902CC27A808122EDCBEBFAA1AD989954BA-javaee-api-7.0.jar javaee7.api/external/javaee-api-7.0.jar || die
+	ln -s "${DISTDIR}"/EBEC44255251E6D3B8DDBAF701F732DAF0238CBF-javaee-web-api-6.0.jar javaee.api/external/javaee-web-api-6.0.jar || die
+	ln -s "${DISTDIR}"/B1FCE45BA94108EBF7E1CACE6427EC8761CABEC1-javaee-web-api-7.0.jar javaee7.api/external/javaee-web-api-7.0.jar || die
+	ln -s "${DISTDIR}"/27E9711AA35C39EF455BFD900D544BACB99C0E89-javaee-doc-api.jar j2ee.platform/external/javaee-doc-api.jar || die
+	ln -s "${DISTDIR}"/B290091E71DEED6CE7F9EB40523D49C26399A2B4-javax.annotation.jar javaee.api/external/javax.annotation.jar || die
+	ln -s "${DISTDIR}"/1DEEA980904E39C3D7AA240B72CDBBEB8E4860F9-javax.annotation-api.jar javaee7.api/external/javax.annotation-api.jar || die
+	ln -s "${DISTDIR}"/E11C0F07A92F6D02A347DD9C55EE56692A6D9F7E-javax.xml.soap-api.jar javaee7.api/external/javax.xml.soap-api.jar || die
+	ln -s "${DISTDIR}"/EB77D3664EEA27D67B799ED28CB766B4D0971505-jaxb-api-osgi.jar javaee.api/external/jaxb-api-osgi.jar || die
+	ln -s "${DISTDIR}"/45EBA8B0520A70787D5DD2EA154ACE152F817C0D-jaxb-api-osgi.jar javaee7.api/external/jaxb-api-osgi.jar || die
+	ln -s "${DISTDIR}"/C614ECF62381F88208D66D96146A8307781058DB-jaxrs-ri-2.5.1.zip websvc.restlib/external/jaxrs-ri-2.5.1.zip || die
+	ln -s "${DISTDIR}"/D4C96D968F87B1BFEF138E91E06C8FD4A1904208-jaxws-api.jar javaee7.api/external/jaxws-api.jar || die
+	ln -s "${DISTDIR}"/B9DB1A789C301F1D31DD6CC524DA2EBD7F89190D-jsf-1.2.zip web.jsf12/external/jsf-1.2.zip || die
+	ln -s "${DISTDIR}"/99277566601C4D5C2598B0206B5DC071932F3641-jsf-2.2.zip web.jsf20/external/jsf-2.2.zip || die
+	ln -s "${DISTDIR}"/93A58E37BA1D014375B1578F3D904736CB2D408F-jsf-api-docs.zip web.jsf.editor/external/jsf-api-docs.zip || die
+	ln -s "${DISTDIR}"/F072F63AB1689E885AC40C221DF3E6BB3E64A84A-jstl-api.jar libs.jstl/external/jstl-api.jar || die
+	ln -s "${DISTDIR}"/5B2E83EF42B4EEF0A7E41D43BB1D4B835F59AC7A-jstl-impl.jar libs.jstl/external/jstl-impl.jar || die
+	ln -s "${DISTDIR}"/FDECFB78184C7D19E7E20130A7D7E88C1DF0BDD1-metro-1.4-doc.zip websvc.metro.lib/external/metro-1.4-doc.zip || die
+	ln -s "${DISTDIR}"/F05AE8173BC750ECF1B52AD1F80050226458E490-metro-2.0.zip websvc.metro.lib/external/metro-2.0.zip || die
+	ln -s "${DISTDIR}"/065BDCE80509320280B3B5210FCDDAE9B7D50338-primefaces-5.0.jar web.primefaces/external/primefaces-5.0.jar || die
+	ln -s "${DISTDIR}"/68C97A238A2143B616879E8C1EF5BF01EA25B11E-servlet3.1-jsp2.3-api.jar servletjspapi/external/servlet3.1-jsp2.3-api.jar || die
+	ln -s "${DISTDIR}"/9319FDBED11E0D2EB03E4BB9E94BAA439A1DA469-struts-1.3.10-javadoc.zip web.struts/external/struts-1.3.10-javadoc.zip || die
+	ln -s "${DISTDIR}"/9E226CFC08177A6666E5A2C535C25837A92C54C9-struts-1.3.10-lib.zip web.struts/external/struts-1.3.10-lib.zip || die
+	ln -s "${DISTDIR}"/F6E990DF59BD1FD2058320002A853A5411A45CD4-syntaxref20.zip web.core.syntax/external/syntaxref20.zip || die
+	ln -s "${DISTDIR}"/A5744971ACE1F44A0FC71CCB93DE530CB3022965-webservices-api-osgi.jar javaee.api/external/webservices-api-osgi.jar || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --into j2eeapis/external glassfish-deployment-api-1.2 glassfish-deployment-api.jar jsr88javax.jar
+	java-pkg_jar-from --into libs.amazon/external commons-codec commons-codec.jar commons-codec-1.3.jar
+	java-pkg_jar-from --into libs.amazon/external commons-logging commons-logging.jar commons-logging-1.1.1.jar
+	java-pkg_jar-from --into libs.commons_fileupload/external commons-fileupload commons-fileupload.jar commons-fileupload-1.3.jar
+	java-pkg_jar-from --into javaee7.api/external jsr181 jsr181.jar jsr181-api.jar
+	java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.12.jar
+	java-pkg_jar-from --build-only --into web.monitor/external tomcat-servlet-api-2.3 servlet.jar servlet-2.3.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-profiler-${SLOT} profiler || die
+	cat /usr/share/netbeans-profiler-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.profiler.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-webcommon-${SLOT} webcommon || die
+	cat /usr/share/netbeans-webcommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.webcommon.built
+
+	ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
+	cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.websvccommon.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/enterprise >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/enterprise$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext
+	pushd "${instdir}" >/dev/null || die
+	rm commons-fileupload-1.3.jar && java-pkg_jar-from --into "${instdir}" commons-fileupload commons-fileupload.jar commons-fileupload-1.3.jar
+	rm jsr88javax.jar && java-pkg_jar-from --into "${instdir}" glassfish-deployment-api-1.2 glassfish-deployment-api.jar jsr88javax.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/aws-sdk
+	pushd "${instdir}" >/dev/null || die
+	rm commons-codec-1.3.jar && java-pkg_jar-from --into "${instdir}" commons-codec commons-codec.jar commons-codec-1.3.jar
+	rm commons-logging-1.1.1.jar && java-pkg_jar-from --into "${instdir}" commons-logging commons-logging.jar commons-logging-1.1.1.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/javaee7-endorsed
+	pushd "${instdir}" >/dev/null || die
+	rm jsr181-api.jar && java-pkg_jar-from --into "${instdir}" jsr181 jsr181.jar jsr181-api.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/jersey2/ext
+	pushd "${instdir}" >/dev/null || die
+	rm cglib-2.2.0-b21.jar && java-pkg_jar-from --into "${instdir}" cglib-3 cglib.jar cglib-2.2.0-b21.jar
+	rm guava-14.0.1.jar && java-pkg_jar-from --into "${instdir}" guava-14 guava.jar guava-14.0.1.jar
+	rm org.osgi.core-4.2.0.jar && java-pkg_jar-from --into "${instdir}" osgi-core-api osgi-core-api.jar org.osgi.core-4.2.0.jar
+	rm persistence-api-1.0.jar && java-pkg_jar-from --into "${instdir}" glassfish-persistence glassfish-persistence.jar persistence-api-1.0.jar
+	rm validation-api-1.1.0.Final.jar && java-pkg_jar-from --into "${instdir}" validation-api-1.0 validation-api.jar validation-api-1.1.0.Final.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/jsf-1_2
+	pushd "${instdir}" >/dev/null || die
+	rm commons-beanutils.jar && java-pkg_jar-from --into "${instdir}" commons-beanutils-1.7 commons-beanutils.jar
+	rm commons-collections.jar && java-pkg_jar-from --into "${instdir}" commons-collections commons-collections.jar
+	rm commons-digester.jar && java-pkg_jar-from --into "${instdir}" commons-digester commons-digester.jar
+	rm commons-logging.jar && java-pkg_jar-from --into "${instdir}" commons-logging commons-logging.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/struts
+	pushd "${instdir}" >/dev/null || die
+	rm antlr-2.7.2.jar && java-pkg_jar-from --into "${instdir}" antlr antlr.jar antlr-2.7.2.jar
+	rm bsf-2.3.0.jar && java-pkg_jar-from --into "${instdir}" bsf-2.3 bsf.jar bsf-2.3.0.jar
+	rm commons-beanutils-1.8.0.jar && java-pkg_jar-from --into "${instdir}" commons-beanutils-1.7 commons-beanutils.jar commons-beanutils-1.8.0.jar
+	rm commons-digester-1.8.jar && java-pkg_jar-from --into "${instdir}" commons-digester commons-digester.jar commons-digester-1.8.jar
+	rm commons-fileupload-1.1.1.jar && java-pkg_jar-from --into "${instdir}" commons-fileupload commons-fileupload.jar commons-fileupload-1.1.1.jar
+	rm commons-io-1.1.jar && java-pkg_jar-from --into "${instdir}" commons-io-1 commons-io.jar commons-io-1.1.jar
+	rm commons-logging-1.0.4.jar && java-pkg_jar-from --into "${instdir}" commons-logging commons-logging.jar commons-logging-1.0.4.jar
+	rm commons-validator-1.3.1.jar && java-pkg_jar-from --into "${instdir}" commons-validator commons-validator.jar commons-validator-1.3.1.jar
+	rm oro-2.0.8.jar && java-pkg_jar-from --into "${instdir}" jakarta-oro-2.0 jakarta-oro.jar oro-2.0.8.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/enterprise
+}

diff --git a/dev-java/netbeans-ergonomics/Manifest b/dev-java/netbeans-ergonomics/Manifest
index a38e363..aefd76d 100644
--- a/dev-java/netbeans-ergonomics/Manifest
+++ b/dev-java/netbeans-ergonomics/Manifest
@@ -28,6 +28,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-ergonomics-8.0.2.ebuild 2843 SHA256 f9262f6ee7f2aed1fab9bf4cf756f565272e9894afa50b349735e39961e7acc3 SHA512 f158c27640541f7aef31da050e0811c07a251ae4797cc663b95a074a47eaf9d6bb7a9aa11ba38ea55e75c185f7dba74629ba6716a819e8ad68eb3db9ada71451 WHIRLPOOL 4fe9634fb673fb05dbba25996efc3a212ef3bb23ab6e7c732cb75de076feb930735e3901806fd9c801abc7ee8aa8eb800718065325d415371255a886474061d4
 EBUILD netbeans-ergonomics-8.1.ebuild 2867 SHA256 6d2c0b7221d47b64c77b243c8c5232c6d8c24d3199eae5799adafeac609b2e2a SHA512 6302c8c13d43ec51048e8b0439916746a01bb67f14e7cd21be95b4179df6106dcff1d3973b9191f7a36cf6f29d53b1d2308864f5f64d9f87f980ea264b1a97c0 WHIRLPOOL 63ceaad04323d9085dfb90d1e5075ad13f6e14e8991b13aafaf3fc174440152054f32498ac8d03f57917744887db3bc1efdfc30b473b8d1a33b514ec4960ea6f
 EBUILD netbeans-ergonomics-8.2.ebuild 2588 SHA256 68db901e9ef42508812495dd42af7afc5c85398b3b6a4585dea23c5423ea9c50 SHA512 f79370f1568ce6125e366d023f008799036a0b4c4b6e97ab4fd0e52270d0526710edfe0a979e703dd668796c56e4d9a8ea32fcccf9ca49993eca9a0f5fe5dd2f WHIRLPOOL 769da617620b71da2c5dac7901a352b76939fcdfc12e3d2d2014fe209e0e1c6666a01f185b9543ca800d4e201ad1467afc054e5dd1fd5a7187224b669547c834
@@ -53,4 +54,5 @@ EBUILD netbeans-ergonomics-9999_p20161022.ebuild 2634 SHA256 a1c302c424f8144e45b
 EBUILD netbeans-ergonomics-9999_p20161023.ebuild 2634 SHA256 112e8e185b0b62c9c87f2e3dbc2b8e11aef465c19078ec62ed682c5c2ab7a63d SHA512 98d4521e47c265162253b30dbdcac7cab5e4a0ab21b73caac526c0ba12d388535772b32dd9944f9c1a351aeac8f25021d5c4d33790c636ec83851e852e1decb5 WHIRLPOOL 46474a4988187c74c389246b10a10a52e8aa857e1ada06cd1febf0a7f61cc187ef70fa1ba14c9a94a9ff82f478d068a2bddbb002accb81fb0b4069cf4f0a6ef9
 EBUILD netbeans-ergonomics-9999_p20161024.ebuild 2634 SHA256 5705fb720ede4edaf50a9e31222a7242cb2af8151cdb41e95bf5897bebf1c401 SHA512 a85130aaae95a55b085da4b7d79cef115d034081064abde42010fc872650b5d86c96da628825f50ee64e906e2434cbcb4dbd0e4ea22f23115823dcb9c344e9b5 WHIRLPOOL 6acf4d4a3599dbb730cb34cc3c51342cdee767344cdae1c2fd34f8613bbaaa6341dd104ba43f7790085084361935b207e4bd3053ac9db94e71693bb62772ab01
 EBUILD netbeans-ergonomics-9999_p20161025.ebuild 2634 SHA256 ea760fa1b8b9e32c0610f3163cb33dcb31b91405ca58a46826f39d22ebe8559a SHA512 e3d193e0d7afd417a67510b474749f7d65d0f45393d7d655e85e78b3c8a9c3216793b41b729807dd8261c9b0b615ddfbc7c473702416f96e1a9b7ef24f40e8d0 WHIRLPOOL 3e8a89bb8d64c3ca81bcd3e9a712cd43db886204b909874f514dfa046492998164f667e1fad8dc89cd9e1cf150b4329e5297865b919b21a23dd6faf01671d392
+EBUILD netbeans-ergonomics-9999_p20161026.ebuild 2634 SHA256 78dc1783bb21d13cad210847b752bfb8ecd7fe122c10eb9f33ee834ec2849886 SHA512 439f97b9e9ccbe2a9d68c807f606775dbad13bcce862b53519c29d44a808ac3e7fa7bb263f411121b3d75bc6c66500387941ef9ecda9298f94494fbecd476e6c WHIRLPOOL bc29fbfbe8b991656525d08a4abe4151b5660d37b30178358b4525e7170fb7ee0ffd3131ea957802fcdc8ca66b97587754283fa0b947d45fcc92a3a3672d7d07
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-ergonomics/netbeans-ergonomics-9999_p20161026.ebuild b/dev-java/netbeans-ergonomics/netbeans-ergonomics-9999_p20161026.ebuild
new file mode 100644
index 0000000..6bd9a0d
--- /dev/null
+++ b/dev-java/netbeans-ergonomics/netbeans-ergonomics-9999_p20161026.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Ergonomics Cluster"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-nb-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.ergonomics -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-nb-${SLOT}/nb nb || die
+	cat /usr/share/netbeans-nb-${SLOT}/nb/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.nb.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/ergonomics >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/ergonomics$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/ergonomics
+}

diff --git a/dev-java/netbeans-extide/Manifest b/dev-java/netbeans-extide/Manifest
index 8eb87ba..0cc0955 100644
--- a/dev-java/netbeans-extide/Manifest
+++ b/dev-java/netbeans-extide/Manifest
@@ -34,6 +34,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-extide-8.0.2.ebuild 3307 SHA256 084e952eae1708b0fab785fd34313985e864dbc74a8531a0d5cdcf906e88f85a SHA512 ade8dc37aa932d7ec20966199e521311716061c23df08d02635f78efd2776f1d7bf040b0f9c9488b947bbbdfb3e33fa764723e3dfffa2214892bc6d685428f6f WHIRLPOOL ad2c26b005675ebca7d902ff1e6caa28552f3fda6795e327cc3584cf109f0ad6efad6516e15af5e70d689be236298b0948003e09a3da4991b3e29a1c85607b2f
 EBUILD netbeans-extide-8.1.ebuild 3331 SHA256 7d81adb3cba102e13678052bfe288e8417753ebceb69f69ce528ede3fedcef04 SHA512 ae445552036799069f31b40c145879ac55cf0964e168f328ac84f2d434171de8c4848e3416ad7425563e8565c09f798c9520bb3cb7511348f5d6a7522b878e40 WHIRLPOOL 44142233d4d3047ebb5c152992b484e5fef1fddd04cf274cc370f00beece5a75a986e5fadedd4bc18a01559c4f6cb58289cefbfc24d8d098d70056707e8b8f57
 EBUILD netbeans-extide-8.2.ebuild 3052 SHA256 f02128c23e03f164a7dae35617012088d766fb7300808f0283916a95df8599fd SHA512 02b2646836ada4d32ba11d6acca442a9b261f27d1d2cbc0996b046bc6a9b32399a3a826bffaab1c1e688d0c96fce4e02499337fb02beb6a9be67cce0b80039e4 WHIRLPOOL 75ba6170663f260e5e8b67b1a1a2df6aa56db67674c84c64348acd0389647bdc1b310bd5202af9e2e280a442caf82aa64b9424a8d0830ac48f7a23665365bcd2
@@ -59,4 +60,5 @@ EBUILD netbeans-extide-9999_p20161022.ebuild 3134 SHA256 62080df0c35558124764f18
 EBUILD netbeans-extide-9999_p20161023.ebuild 3134 SHA256 675667689fff6115432f5f0352557919385b52dcd41fa3881140cb1b4f7eab9a SHA512 2161c6b23b89ef0e3e217a8c4f3f2890a0c7aab8d4aff6a4628c8f7623911e2804c777301cf1655a9840034998235c06aa1da6ad33ea813fee91d70084688e68 WHIRLPOOL 2ceb6cbe257cc637127f5e4495d7f79fe4ac1979d2c473519657867f356f52c015d7b6d3bc91cee1bc00eea71f4f5442cf1a3c8f38b85a94e1f3cd0213f48ea9
 EBUILD netbeans-extide-9999_p20161024.ebuild 3134 SHA256 44f8292b13775c386b14f388be054c8b812a993a6e8b74c47db425ae2a796f68 SHA512 6e2ec06a6cc96c82e97981cdd8fdf6ad3f1f786e4d4684b893e3b3cda0865c730accc343e5115c481be4dece33440799750c6286d749f34fc88951b7666e6a89 WHIRLPOOL 9f3aa637b6b703535df38778be141a4e7b498d3e1d43fb0504d267876e16373e6a5a071d457ef78a06761fae377963b005d00a051a26ffbf43ca4393aa438d43
 EBUILD netbeans-extide-9999_p20161025.ebuild 3134 SHA256 b9159f29d5cc3575fd927320c9fdce12f0fd545684a3199bd6fcdd573f9e9b4e SHA512 fec72bfee81f0f78542e7370625bc9808ed9b278a21be82d01bec3bc8657d4860b17669520d09f91871ab59be6bcf12b9c93b111764c067041a5c91a42594fd8 WHIRLPOOL 4032e78c7995f758c6b5329560b81115a03ac5cb6b3dfe0350c45c3ea48e0797e9935e5818d244f64ae43ffa607a9bb77fa8b5c4a49b743108aab195f8bffb26
+EBUILD netbeans-extide-9999_p20161026.ebuild 3134 SHA256 f03dda7660faf6be19d4fa88f5093039642e9d01d2a63be3cec6601ad38bc426 SHA512 0ae704e665312b812b893f988f89fd905215e4012b1e03a6198bff09d4807cf9c161c58cb0db517e96c6f2978de8672d579d230ce34baee8fa6c5bd7901d962d WHIRLPOOL 1241d12d641b41fc632a2ad52ba62d9abe343e594a75c8912283cc777d7ea153dfb246ae0f6f730a52926f7e3f86737e17516cf8074c47b461736fc7004d0c68
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-extide/netbeans-extide-9999_p20161026.ebuild b/dev-java/netbeans-extide/netbeans-extide-9999_p20161026.ebuild
new file mode 100644
index 0000000..cf49c79
--- /dev/null
+++ b/dev-java/netbeans-extide/netbeans-extide-9999_p20161026.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans ExtIDE Cluster"
+HOMEPAGE="http://netbeans.org/projects/ide"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/7B38E2908FFD70F2AB580D21A9E688A78C6365E7-ant-libs-1.10.0alpha.zip
+	http://hg.netbeans.org/binaries/63D41674237D4EB5ED1C41D23EBBFD410615F566-ant-misc-1.10.0alpha.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	dev-java/javahelp:0
+	${CDEPEND}"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.extide -Dext.binaries.downloaded=true -Djava.awt.headless=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/7B38E2908FFD70F2AB580D21A9E688A78C6365E7-ant-libs-1.10.0alpha.zip o.apache.tools.ant.module/external/ant-libs-1.10.0alpha.zip || die
+	ln -s "${DISTDIR}"/63D41674237D4EB5ED1C41D23EBBFD410615F566-ant-misc-1.10.0alpha.zip o.apache.tools.ant.module/external/ant-misc-1.10.0alpha.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_compile() {
+	unset DISPLAY
+	eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
+}
+
+src_install() {
+	pushd nbbuild/netbeans/extide >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/extide$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/extide
+}

diff --git a/dev-java/netbeans-groovy/Manifest b/dev-java/netbeans-groovy/Manifest
index 0fb0a4a..28b53d4 100644
--- a/dev-java/netbeans-groovy/Manifest
+++ b/dev-java/netbeans-groovy/Manifest
@@ -30,6 +30,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-groovy-8.0.2.ebuild 3346 SHA256 907e6cd11c222f15c826494b44929483803f0e4249de0d54db51e6855b574148 SHA512 8bb37121e7e32621959318d109b1d982e2c705a9deb7171f5fef1dcaed55fc5718b0bc9e6bbb2592cdaa5e96d874bb6e6bfa96d06fe09f14d5250c1485eb1da5 WHIRLPOOL d5e09fa1e975835f05c6132c091fee4ae9fc9dd671af9f5f88a9195d5cd4a93804f96687ed3f2bd741117fa65773f2c464b3cfd6697425039cc51a940efa2a31
 EBUILD netbeans-groovy-8.1.ebuild 3370 SHA256 ca32569d438060704e4d5d5e46be2ebf20bffdb0ae2471d8718ada8676f32082 SHA512 40555d2ffa0ddab1e55ca514eddbd98c6e721caa230cd174050fb56f144def46f389b0ac018068c9f509936c83235b2d3423cae8676db7c96e8782b0da73e4ad WHIRLPOOL 7b2b021581db21aa8ff90ea188ddeea0974ec84fdb064cf367a56a6fa53487affe89edb1880a83934a2cf0c586060a9192838687ffebf33b55e79d9ddc7ac986
 EBUILD netbeans-groovy-8.2.ebuild 3091 SHA256 874191c03509577bc4a4bf7e54730eaa185a29620f09d1e44633fcddcefb08e1 SHA512 72d80927284126809760da993a3008cb7a45bb91f83781435c3199a51c5e2fbf5e85f39883322134c44dd1070d1b7274fa357b9187fd9ebc7cbcac98a5be925e WHIRLPOOL d12be4d592e12846bcd5e87e541170d0f27f4cb8fa21656dcc9294e4893cd0fe6bc4098ace1aed25bffa1faa5aaf260995395e29c3a2fc950c88727899337255
@@ -55,4 +56,5 @@ EBUILD netbeans-groovy-9999_p20161022.ebuild 3137 SHA256 66a3faf0f0421b5f3c1c58d
 EBUILD netbeans-groovy-9999_p20161023.ebuild 3137 SHA256 a507559493c42a4b068d40e2e6f1ffab0c97e0a2e8ef8ddb6e8032fd0fb4348b SHA512 05acc883b95f331e62cf843798e11a6b1754810e2a18467978711c69e5dd143f0d1442e175f7d4f77ed755a72b2c7da4905fbb17a39674d4b0c61faf85ffc8af WHIRLPOOL 28acace6f3db2a845eea190a6461014edccc771b64e9b36abb930779fb5a374e0fcadd94527c78b1f19e4855ca3e0fb976f56d18f3e9a0d56fd386e26c1e6076
 EBUILD netbeans-groovy-9999_p20161024.ebuild 3137 SHA256 23de13f92e94c0e41dd4cab6ad45420007e53e7ad89de7f186ca95983f753de6 SHA512 2884a9e8d669af6319234724132822b8cdf43e3c8eefdf4d7bade6282efa79255191ac1e28207635ae5fd49d724bc73b57e648aa77a6f5a17e3cc83da5669872 WHIRLPOOL 5844fe5590039f8bcda9916ee0084b50a5111466b179162eeebd2c9faa51dce51f79a38d2f1bb59bbf0da71380030e2e70586259b73cf8345bbbb33ecac80878
 EBUILD netbeans-groovy-9999_p20161025.ebuild 3137 SHA256 7ee0be86a394ebbb89964e3b52a2ea5cfa531a6793cb37d494974362023fbe14 SHA512 4567d430795ac539bb8342da5213366e80aebcf6b340003d58e4b70057482383f56170d9a822e4f9139c803a19b182854bd614943af87605d536ee35b1d41530 WHIRLPOOL 27f784a05888d5e3d4958483338f87cb87502bee8e3e2dad79c06a8a18220e208790ff785b79e91646fc273064e96b9c3f8a26802f3a1284581e66b2b16c2813
+EBUILD netbeans-groovy-9999_p20161026.ebuild 3137 SHA256 a80fd975fbc396806f83bf7d1c3336c1a352dad5b94087fd31e709553d9c8f2e SHA512 30cf5a25f88794942f5e3ded9e5238e849528fd3d5650eb18a009f4ebded0a50f067d87df5530bc471db235833321f993e8fd76eefc80d443e1f68d3505c9282 WHIRLPOOL 9a203cc553c8397505dacd912d14abfe6e401237d4a043c46aabaec22990a23aaf704d60dc422dc5c15567c7382b4d1eac03cb69371db8ed4e84700076e7dd32
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-groovy/netbeans-groovy-9999_p20161026.ebuild b/dev-java/netbeans-groovy/netbeans-groovy-9999_p20161026.ebuild
new file mode 100644
index 0000000..9dd4406
--- /dev/null
+++ b/dev-java/netbeans-groovy/netbeans-groovy-9999_p20161026.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Groovy Cluster"
+HOMEPAGE="http://netbeans.org/projects/groovy"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/01730F61E9C9E59FD1B814371265334D7BE0B8D2-groovy-all-2.4.5.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.groovy -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/01730F61E9C9E59FD1B814371265334D7BE0B8D2-groovy-all-2.4.5.jar libs.groovy/external/groovy-all-2.4.5.jar || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/groovy >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/groovy$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/groovy
+}

diff --git a/dev-java/netbeans-harness/Manifest b/dev-java/netbeans-harness/Manifest
index ac9b709..4d9653b 100644
--- a/dev-java/netbeans-harness/Manifest
+++ b/dev-java/netbeans-harness/Manifest
@@ -33,6 +33,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-harness-8.0.2.ebuild 4055 SHA256 2674d562adc57648c82cac9f714f74f9d29dd7b7ff7fa7f0ef37c43ef0975489 SHA512 7d72bed5b955b2365a4c11fcd97a2d6f2372ab939fb9a03b3ff7915053f24d695373c1aa154f6e6916d37ef3ace7b38864d575419460382760500576dae52e49 WHIRLPOOL 72f54a6cb83f282a75f0abb073109414a7b8bcd4e9263466281e68ff34148a7343ed3bd78ebdc8afd109b6b9f5b9f15bfd0e250f418fcaa4986a7c886b57b9f6
 EBUILD netbeans-harness-8.1.ebuild 4079 SHA256 116b90d6e6fd1b1ad8ce99c81104262a416a485b3a3110beed70e9381333cec2 SHA512 77ca4bbaf078adf6e13c0fea0a8e673262aaed60dd799ec161584589fb4c791d9bd758c87f4272297d863d3992b54a66b77b7bf05135cada530d111e1c428e68 WHIRLPOOL d385cd6292f31a5817a2c096f960330186a68242b51ed26e4272f33a690a98175e0b622a5d5309e1e6a72ff824662964785b7d235cf3a73ba4d715cd19e89dbb
 EBUILD netbeans-harness-8.2.ebuild 3801 SHA256 fb8e3c76ee96cbe6d36c5dbabb49f4baf444dc3f879ac319c0bec693484684e2 SHA512 5ac59770e25f2ce3ebcd0af36c895060a1b1f3e38dfc2b8efbd8aa8d7d0cd09d9c88794a7d1a40bc69dc6afd2fa820f7add7fabc55e3cf064702bb8bf5903f3b WHIRLPOOL 7ac28d024972c33545f8163d3375d80defe3d1e6890a118e497a7fc6177b4d35e065a7283dcc7a04dda8a56687f18d55711018df168c302624800c80d68949fb
@@ -58,4 +59,5 @@ EBUILD netbeans-harness-9999_p20161022.ebuild 3847 SHA256 5be936b17d69ef6a3a1d6b
 EBUILD netbeans-harness-9999_p20161023.ebuild 3847 SHA256 99f04a82c340751ad4d7d47406b90f64c38c3a875aa579777247301adeada2bc SHA512 a36a442baeea030e4f4ee0d66293fb47d4873e56edcbc22711fff4510b6841bea5e8bf9c9a1b6406ae5c6fef9c2af7a03da81f909b494da8f9f234ca02178c49 WHIRLPOOL 4e6f8e386253e40020a7a992d184e67cf275f6b355796517d93d334add07ccb1123e9297254adfbd9d5e1efc5a17ad72982e2e326a570f77ca68b66d6d66fbae
 EBUILD netbeans-harness-9999_p20161024.ebuild 3847 SHA256 0f026a159a68295f65875a6d5c0e9014fb08b926c2e8b07c918a1dd39aa1e103 SHA512 949e4d9ad787b2fe00a27cf23200e97c84f401dd189d08ed452ca76a0fc9f7b58a9ff1c0c1c26f5a6e58c8859dc3543da969089beb4d7e0c804168782904ab42 WHIRLPOOL 248556377138a414e82f2d0ac9b708cc2a02140195bff81fba5fda0797a68972fc2c9b955ee3f4584066ca294b0c4bc18c03ec5ae75a97c59779c01bb4f5c543
 EBUILD netbeans-harness-9999_p20161025.ebuild 3847 SHA256 a37e7c00a2a4a28b2d24e30d7eba282981158013ec389f0e6bd2c621bbb118d4 SHA512 827b6c8f86b164ed9cab656a1909d88ba45330661b35c3b55185ef52f178bf05fa3be9d0f2cd705f961587fb88a8891f29f916c170ff77fb1e92d2188a5c6c96 WHIRLPOOL d3c054564acd623cd479e31d0fedadaa1beff1d0c3232a98e420756449d13035da36a3621741ec9070c7c932d72a56c65120fdd7059f8d5228f1391ec217b4e5
+EBUILD netbeans-harness-9999_p20161026.ebuild 3847 SHA256 bfe49a46a157ee63e3ca22b13d61decfc9ef269655ce7c3a9edbf9e36a26dffd SHA512 cf07a519958ad267b37992662a85c5c57156e7a1a6f78a310c374775b3054d327e41a94a644459eabceea890e8bc448879daee6a507396a1707da6818a0d82f8 WHIRLPOOL 1bb99b32eedc33ff94fd5eefef5a4d9c4ac3a8b42e3dbf08b5b13fac4c75f44fbd3addf4145e8dc1f41d701dfc3913f641598230ee220692b22b52462387868e
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-harness/netbeans-harness-9999_p20161026.ebuild b/dev-java/netbeans-harness/netbeans-harness-9999_p20161026.ebuild
new file mode 100644
index 0000000..2151847
--- /dev/null
+++ b/dev-java/netbeans-harness/netbeans-harness-9999_p20161026.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Harness"
+HOMEPAGE="http://netbeans.org/features/platform/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar
+	http://hg.netbeans.org/binaries/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar
+	http://hg.netbeans.org/binaries/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip
+	http://hg.netbeans.org/binaries/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip
+	http://hg.netbeans.org/binaries/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-platform-${PV}
+	dev-java/javahelp:0"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	>=dev-java/junit-4.4:4"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.harness -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar apisupport.harness/external/bindex-2.2.jar || die
+	ln -s "${DISTDIR}"/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar apisupport.harness/external/jnlp-servlet.jar || die
+	ln -s "${DISTDIR}"/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar jemmy/external/jemmy-2.3.1.1.jar || die
+	ln -s "${DISTDIR}"/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip jemmy/external/jemmy-2.3.1.1-doc.zip || die
+	ln -s "${DISTDIR}"/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip jemmy/external/jemmy-2.3.1.1-src.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --into apisupport.harness/external javahelp jsearch.jar jsearch-2.0_05.jar
+	java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.12.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/harness >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/harness$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+	fperms 755 launchers/app.sh
+	find "${D}" -name "*.exe" -type f -delete
+
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/antlib
+	pushd "${instdir}" >/dev/null || die
+	rm jsearch-2.0_05.jar && java-pkg_jar-from --into "${instdir}" javahelp jsearch.jar jsearch-2.0_05.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/harness
+}

diff --git a/dev-java/netbeans-ide/Manifest b/dev-java/netbeans-ide/Manifest
index 27c320d..9b5fc9a 100644
--- a/dev-java/netbeans-ide/Manifest
+++ b/dev-java/netbeans-ide/Manifest
@@ -167,6 +167,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-ide-8.0.2-r2.ebuild 29330 SHA256 4822cbe26fc19685164c35d69e75bc20578ca8a5ce3394fe97bde6acc721fd2d SHA512 552f35cb1aa5429beb70c72a0cd2a3aa3a006f5870ec4084e88632a39e2ccdc05d0b2b15a87f26c72cdffb3c9a6fa0a124a8d501edeef9aa9580396922071e8d WHIRLPOOL 4c9bce3ca21d5ae61ef9392b9282c2dff9de7f82f2e83d2944a2906ca2180ef0ffab59489bdbb6afc7ba88d5143d77b47a0cf6b219a5a4d385b68afcacd3fe6d
 EBUILD netbeans-ide-8.1-r2.ebuild 30301 SHA256 892f20531352d85b5b72b1c85352eefa444917b515b0b564f04c4f91d1e654f9 SHA512 50af4873fd3ea7755b0d33b086be7e07766b6c009a46ec3954a67a1da9930378bcf9da6d18b7e60078b31af4b36ccf060f22378a8ef26b3829ccf30a529dd023 WHIRLPOOL 1024af16e7cae7f4728dd37f88031be33253b7c62548a095d3e827abeccb6c183d34ce312bd1a0f808f0d107aff217e4b81b7a17eecc6842e1d914d7061df2c9
 EBUILD netbeans-ide-8.2.ebuild 29530 SHA256 90a463cbcf7753c53f3928eb542ad745a81f3b2518e1d6da3f3e28a951e08cad SHA512 37ccead9a142e330c07e030b1957d17cde945ed4fbe9a13f62125f7762d83965919836fdce654c8c305a34d69d585184155799f55495f9247b8916ef780510ab WHIRLPOOL a7e1d1c148dd776698bffa0a1fcb8b7e4f31ff32a7059a1c0327a266eaa5ac8b768b7d7dbba16fd71844f6e8834d2edf884a9f8470df1e22b8ecb7b44e0a6540
@@ -192,4 +193,5 @@ EBUILD netbeans-ide-9999_p20161022.ebuild 29572 SHA256 3a60a9aa4dd947d8445dbece8
 EBUILD netbeans-ide-9999_p20161023.ebuild 29572 SHA256 21103a4cd7b346c1ee2c32ff406a26d82cb70d03540dfc79518eb7f4ddd6550d SHA512 37a59b2680613995dae66ab3e6e88c31ab34cd9e343e23a4e36ac6ede0982dd015a341a183b8b8769f32029ba29f2c1c99a2346682c900db06c1ead30a9aed64 WHIRLPOOL 709d719e7050ba3d60037004c6d2153ac6e0dd57c0fdc6e369d082174f485d0709cb502f442edb6e982aaa1b28c5c94093fee5634347018e67c32b02a3c4da2e
 EBUILD netbeans-ide-9999_p20161024.ebuild 29572 SHA256 8270071b147e88449197f32ab5d036b6eae86b58a06727ef58e51818cdd56755 SHA512 77bf8cba7abc8d88b742dd24d4c3d1bc5c9f1a6824d7bd04511fdd793939b5a48d635729215d24435db0f119bd169de28b30451a058deef8d29535ad45ab65a5 WHIRLPOOL be06c54baaa0136848f182aaec6a0f219df42efebdbb7b98c42d7ba311b1384d48621b8f0063a8d870f45ee506ab0a4c3143db0cbcce6335bf6901e2c442bc8c
 EBUILD netbeans-ide-9999_p20161025.ebuild 29572 SHA256 2d5817aedb7ea5abf8af9197d49e68596ea5d80b00538f19d5353973a8a40b07 SHA512 c59a7ba89993cd22a923c212826ae5532f3bd4762b1134bd4bcd1ee9bd4c5888c2c8e6a2c6bc85c92a37f3983f6a5a2ee643851b832bbc4e8157bbff057d5e8b WHIRLPOOL 541ea052b601ceebfc3f8c2c40e1735fec6bb90b30888728c35e9ba031395123d790bf00e51efdc934dc8dabfab784c5a128e682a32e10903faaafe6ba87b688
+EBUILD netbeans-ide-9999_p20161026.ebuild 29572 SHA256 83fc7d3560fb47fa2ac7fc6136b30a6d021cc6d745e8af484df0874b547c1893 SHA512 b3a8ede529c5466f70ebe0995daa329a320c0e53118b0ffe6d414b192c0c96d02a35aeb07596f639494129b48c03328354d68c154f16e58e61b207e03e34564c WHIRLPOOL 90d0eaf43dd68acede637b02cae1727e70dff2e2965ef2f4aefa70668e85b943107711c6d8010e2a29135b86c8c8c8c67cb1575da87e963b9524aed6babb47e4
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-ide/netbeans-ide-9999_p20161026.ebuild b/dev-java/netbeans-ide/netbeans-ide-9999_p20161026.ebuild
new file mode 100644
index 0000000..3793e60
--- /dev/null
+++ b/dev-java/netbeans-ide/netbeans-ide-9999_p20161026.ebuild
@@ -0,0 +1,362 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans IDE Cluster"
+HOMEPAGE="http://netbeans.org/projects/ide"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar
+	http://hg.netbeans.org/binaries/886FAF4B85054DD6E50D9B3438542F432B5F9251-bytelist-0.1.jar
+	http://hg.netbeans.org/binaries/DCDA3604865C8E80789B4F8E8EECC3D4D15D00F8-com.trilead.ssh2_1.0.0.build220_r167_v20150618_1733.jar
+	http://hg.netbeans.org/binaries/A8762D07E76CFDE2395257A5DA47BA7C1DBD3DCE-commons-io-1.4.jar
+	http://hg.netbeans.org/binaries/0CE1EDB914C94EBC388F086C6827E8BDEEC71AC2-commons-lang-2.6.jar
+	http://hg.netbeans.org/binaries/CD0D5510908225F76C5FE5A3F1DF4FA44866F81E-commons-net-3.3.jar
+	http://hg.netbeans.org/binaries/901D8F815922C435D985DA3814D20E34CC7622CB-css21-spec.zip
+	http://hg.netbeans.org/binaries/83E794DFF9A39401AC65252C8E10157761584224-css3-spec.zip
+	http://hg.netbeans.org/binaries/C9A6304FAA121C97CB2458B93D30B1FD6F0F7691-derbysampledb.zip
+	http://hg.netbeans.org/binaries/3502EB7D4A72C2C684D23AFC241CCF50797079D1-exechlp-1.0.zip
+	http://hg.netbeans.org/binaries/5EEAAC41164FEBCB79C73BEBD678A7B6C10C3E80-freemarker-2.3.19.jar
+	http://hg.netbeans.org/binaries/ED727A8D9F247E2050281CB083F1C77B09DCB5CD-guava-15.0.jar
+	http://hg.netbeans.org/binaries/23123BB29025254556B6E573023FCDF0F6715A66-html-4.01.zip
+	http://hg.netbeans.org/binaries/2541D025F428A361110C4D656CDD99B5C5C5DFCE-html5doc.zip
+	http://hg.netbeans.org/binaries/D528B44AE7593D2275927396BF930B28078C5220-htmlparser-1.2.1.jar
+	http://hg.netbeans.org/binaries/8E737D82ECAC9BA6100A9BBA71E92A381B75EFDC-ini4j-0.5.1.jar
+	http://hg.netbeans.org/binaries/0DCC973606CBD9737541AA5F3E76DED6E3F4D0D0-iri.jar
+	http://hg.netbeans.org/binaries/F90E3DA5259DB07F36E6987EFDED647A5231DE76-ispell-enwl-3.1.20.zip
+	http://hg.netbeans.org/binaries/ECEAF316A8FAF0E794296EBE158AE110C7D72A5A-JavaEWAH-0.7.9.jar
+	http://hg.netbeans.org/binaries/71F434378F822B09A57174AF6C75D37408687C57-jaxb-api.jar
+	http://hg.netbeans.org/binaries/27FAE927B5B9AE53A5B0ED825575DD8217CE7042-jaxb-api-doc.zip
+	http://hg.netbeans.org/binaries/387BE740EAEF52B3F6E6EE2F140757E7632584CE-jaxb-impl.jar
+	http://hg.netbeans.org/binaries/C3787DAB0DDFBD9E98086ED2F219859B0CB77EF7-jaxb-xjc.jar
+	http://hg.netbeans.org/binaries/F4DB465F207907A2406B0BF5C8FFEE22A5C3E4E3-jaxb1-impl.jar
+	http://hg.netbeans.org/binaries/5E40984A55F6FFF704F05D511A119CA5B456DDB1-jfxrt.jar
+	http://hg.netbeans.org/binaries/483A61B688B13C62BB201A683D98A6688B5373B6-jing.jar
+	http://hg.netbeans.org/binaries/036FA0032B44AD06A1F13504D97B3685B1C88961-jsch.agentproxy.core-0.0.7.jar
+	http://hg.netbeans.org/binaries/9F31964104D71855DF6B73F0C761CDEB3FA3C49C-jsch.agentproxy.sshagent-0.0.7.jar
+	http://hg.netbeans.org/binaries/3FA59A536F3DC2197826DC7F224C0823C1534203-jsch.agentproxy.pageant-0.0.7.jar
+	http://hg.netbeans.org/binaries/F759114E5A9F9AE907EADB59DBF65189AA399B45-jsch.agentproxy.usocket-jna-0.0.7.jar
+	http://hg.netbeans.org/binaries/F406B7784A0DA5C4670B038BF55A4DCD4AF30AEB-jzlib-1.0.7.jar
+	http://hg.netbeans.org/binaries/2E07375E5CA3A452472F0E87FB33F243F7A5C08C-libpam4j-1.1.jar
+	http://hg.netbeans.org/binaries/AA2671239EBB762FEEE8B908E9F35473A72AFE1B-org.eclipse.core.contenttype_3.4.100.v20110423-0524_nosignature.jar
+	http://hg.netbeans.org/binaries/1605B38BB28EAE32C11EAB8F9E238A497754A5B8-org.eclipse.core.jobs-3.5.101_nosignature.jar
+	http://hg.netbeans.org/binaries/20800206EB8B490F3CE5BB8AC8A7C3B9E8004A30-org.eclipse.core.net_1.2.100.I20110511-0800_nosignature.jar
+	http://hg.netbeans.org/binaries/D2D2105B1E3C9E2FA6240AD088237A57590DDA8D-org.eclipse.core.runtime-3.7.0_nosignature.jar
+	http://hg.netbeans.org/binaries/16507EAFDC2B95121AA718895BDB54D616EE4B0F-org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110_nosignature.jar
+	http://hg.netbeans.org/binaries/BD55836AABD558DC643A7844B78866AD990544BC-org.eclipse.equinox.app-1.3.100_nosignature.jar
+	http://hg.netbeans.org/binaries/4EE275AE73A140A403903D7E4DBA68C8FBB07001-org.eclipse.equinox.common_3.6.0.v20110523_nosignature.jar
+	http://hg.netbeans.org/binaries/B7001D9CC2E2AC4E167D22A13063F0350C71AAA9-org.eclipse.equinox.preferences-3.4.2_nosignature.jar
+	http://hg.netbeans.org/binaries/C647079E36A4EB7A24AED2C545E4F0F94194C4D1-org.eclipse.equinox.registry_3.5.200.v20120522-1841_nosignature.jar
+	http://hg.netbeans.org/binaries/9267CF311F979078211A70C1B19AF8A8EE71DC8E-org.eclipse.equinox.security-1.1.1_nosignature.jar
+	http://hg.netbeans.org/binaries/B580E446B543A8DD2F5AA368B07F9C4C9C2E7029-org.eclipse.jgit-3.6.2.201501210735-r_nosignature.jar
+	http://hg.netbeans.org/binaries/244560B99152F3F9BC75DF2D6FAFA8A5216B06B6-org.eclipse.jgit.java7-3.6.2.201501210735-r_nosignature.jar
+	http://hg.netbeans.org/binaries/8E2776DE17446EC7450285F19F2C6366117748A8-org.eclipse.mylyn.bugzilla.core_3.17.0.v20150828-2026.jar
+	http://hg.netbeans.org/binaries/D4F2BE52B5C048158B5C046C0ACAC3965027FE12-org.eclipse.mylyn.commons.core_3.17.0.v20150625-2042.jar
+	http://hg.netbeans.org/binaries/4C753A9D8AB768A55EC99A377A0D22EDA67BAE25-org.eclipse.mylyn.commons.net_3.17.0.v20150706-2057.jar
+	http://hg.netbeans.org/binaries/8E52A783A3700FE2F3AED720CBEF6D895C0D5DBC-org.eclipse.mylyn.commons.repositories.core_1.9.0.v20150625-2042.jar
+	http://hg.netbeans.org/binaries/50F0A49BDF7C5610E3E602609926065D47A16C6E-org.eclipse.mylyn.commons.xmlrpc_3.17.0.v20150625-2042.jar
+	http://hg.netbeans.org/binaries/4F2E28BDB091E2DD215FB9B16C8708513288F16A-org.eclipse.mylyn.tasks.core_3.17.0.v20150828-2026.jar
+	http://hg.netbeans.org/binaries/11D1982BE23B06B2721240F424DBEF9F5FDE7F45-org.eclipse.mylyn.wikitext.confluence.core_2.6.0.v20150901-2143.jar
+	http://hg.netbeans.org/binaries/A3FEF6144ED1622E4CDD506B9D745527CC675D8D-org.eclipse.mylyn.wikitext.core_2.6.0.v20150901-2143-patched-nosignature.jar
+	http://hg.netbeans.org/binaries/825DC870D1D423E347F4F8229A211A2C297BB15D-org.eclipse.mylyn.wikitext.markdown.core_2.6.0.v20150901-2143.jar
+	http://hg.netbeans.org/binaries/C3024631DD14008D2FF35A576C3D82AC6FCB2E10-org.eclipse.mylyn.wikitext.textile.core_2.6.0.v20150901-2143.jar
+	http://hg.netbeans.org/binaries/17C0C8D6DEBF5EBE734881C131888D8088BD9E7D-org.tmatesoft.svnkit_1.8.12.r10533_v20160129_0158.jar
+	http://hg.netbeans.org/binaries/6819C79348FCF4F5125C834E7D3B742582DCA34D-processtreekiller-1.0.7.jar
+	http://hg.netbeans.org/binaries/B0D0FCBAC68826D2AFA3C7C89FC4D57B95A000C3-resolver-1.2.jar
+	http://hg.netbeans.org/binaries/DAAEFA7A5F3AF75FE4CDC86A1B5904C9F3B5BBF8-svnClientAdapter-javahl-1.10.12.jar
+	http://hg.netbeans.org/binaries/C47ED3BCD8CEAECDE3BDEEB7D8D14B577B26F9C8-svnClientAdapter-main-1.10.12.jar
+	http://hg.netbeans.org/binaries/AD4A88D99AB7C5B64C8893CA2FF2CBCFCEFC51C8-svnClientAdapter-svnkit-1.10.12.jar
+	http://hg.netbeans.org/binaries/5C47A97F05F761F190D87ED5FCBB08D1E05A7FB5-svnjavahl-1.9.3.jar
+	http://hg.netbeans.org/binaries/4F94E5B4F14B4571A1D8E37885A3037C91F7C02C-svnkit_1.7.8.r9538_v20130107_2001.jar
+	http://hg.netbeans.org/binaries/C0D8A3265D194CC886BAFD585117B6465FD97DCE-swingx-all-1.6.4.jar
+	http://hg.netbeans.org/binaries/EDE7FBABD4C96D34E48FDA0E8FECED24C98CEDCA-sqljet-1.1.10.jar
+	http://hg.netbeans.org/binaries/CD5B5996B46CB8D96C8F0F89A7A734B3C01F3DF7-tomcat-webserver-3.2.jar
+	http://hg.netbeans.org/binaries/89BC047153217F5254506F4C622A771A78883CBC-ValidationAPI.jar
+	http://hg.netbeans.org/binaries/15ACB06E2E3A70FC188782BA51369CA81ACFE860-validator.jar
+	http://hg.netbeans.org/binaries/C9757EFB2CFBA523A7375A78FA9ECFAF0D0AC505-winp-1.14-patched.jar
+	http://hg.netbeans.org/binaries/64F5BEEADD2A239C4BC354B8DFDB97CF7FDD9983-xmlrpc-client-3.0.jar
+	http://hg.netbeans.org/binaries/8FA16AD28B5E79A7CD52B8B72985B0AE8CCD6ADF-xmlrpc-common-3.0.jar
+	http://hg.netbeans.org/binaries/D6917BF718583002CBE44E773EE21E2DF08ADC71-xmlrpc-server-3.0.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-platform-${PV}
+	dev-java/antlr:4
+	dev-java/commons-compress:0
+	dev-java/commons-httpclient:3
+	dev-java/commons-logging:0
+	dev-java/icu4j:55
+	dev-java/iso-relax:0
+	dev-java/jdbc-mysql:0
+	dev-java/jdbc-postgresql:0
+	dev-java/jsch:0
+	>=dev-java/json-simple-1.1:0
+	dev-java/jsr173:0
+	dev-java/jvyamlb:0
+	dev-java/log4j:0
+	dev-java/lucene:3.5
+	dev-java/rhino:1.6
+	dev-java/saxon:9
+	dev-java/smack:2.2
+	dev-java/sun-jaf:0
+	dev-java/tomcat-servlet-api:2.2
+	dev-java/ws-commons-util:0
+	dev-java/xerces:2"
+#	dev-vcs/subversion>=1.8.4:0[java] missing from the tree
+#	app-text/jing:0 our version is probably too old
+#	dev-java/commons-io:1 fails with "Missing manifest tag OpenIDE-Module"
+#	dev-java/commons-lang:2.1 fails with "Missing manifest tag OpenIDE-Module"
+#	dev-java/freemarker:2.3
+#	dev-java/guava:15 fails with "Missing manifest tag OpenIDE-Module"
+#	dev-java/ini4j:0 our version is too old
+#	dev-java/jaxb:2 upstream version contains more stuff so websvccommon does not compile with ours
+#	dev-java/jzlib:0 fails with "Missing manifest tag OpenIDE-Module"
+#	dev-java/trilead-ssh2:0 in overlay
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	dev-java/commons-codec:0
+	${CDEPEND}
+	dev-java/javacc:0
+	dev-java/javahelp:0
+	dev-java/jna:4"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.ide -Dext.binaries.downloaded=true -Djava.awt.headless=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+JAVA_PKG_WANT_SOURCE="1.7"
+JAVA_PKG_WANT_TARGET="1.7"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar libs.antlr3.runtime/external/antlr-runtime-3.4.jar || die
+	ln -s "${DISTDIR}"/886FAF4B85054DD6E50D9B3438542F432B5F9251-bytelist-0.1.jar libs.bytelist/external/bytelist-0.1.jar || die
+	ln -s "${DISTDIR}"/DCDA3604865C8E80789B4F8E8EECC3D4D15D00F8-com.trilead.ssh2_1.0.0.build220_r167_v20150618_1733.jar libs.svnClientAdapter.svnkit/external/com.trilead.ssh2_1.0.0.build220_r167_v20150618_1733.jar || die
+	ln -s "${DISTDIR}"/A8762D07E76CFDE2395257A5DA47BA7C1DBD3DCE-commons-io-1.4.jar o.apache.commons.io/external/commons-io-1.4.jar || die
+	ln -s "${DISTDIR}"/0CE1EDB914C94EBC388F086C6827E8BDEEC71AC2-commons-lang-2.6.jar o.apache.commons.lang/external/commons-lang-2.6.jar || die
+	ln -s "${DISTDIR}"/CD0D5510908225F76C5FE5A3F1DF4FA44866F81E-commons-net-3.3.jar libs.commons_net/external/commons-net-3.3.jar || die
+	ln -s "${DISTDIR}"/901D8F815922C435D985DA3814D20E34CC7622CB-css21-spec.zip css.editor/external/css21-spec.zip || die
+	ln -s "${DISTDIR}"/83E794DFF9A39401AC65252C8E10157761584224-css3-spec.zip css.editor/external/css3-spec.zip || die
+	ln -s "${DISTDIR}"/C9A6304FAA121C97CB2458B93D30B1FD6F0F7691-derbysampledb.zip derby/external/derbysampledb.zip || die
+	ln -s "${DISTDIR}"/3502EB7D4A72C2C684D23AFC241CCF50797079D1-exechlp-1.0.zip dlight.nativeexecution/external/exechlp-1.0.zip || die
+	ln -s "${DISTDIR}"/5EEAAC41164FEBCB79C73BEBD678A7B6C10C3E80-freemarker-2.3.19.jar libs.freemarker/external/freemarker-2.3.19.jar || die
+	ln -s "${DISTDIR}"/ED727A8D9F247E2050281CB083F1C77B09DCB5CD-guava-15.0.jar c.google.guava/external/guava-15.0.jar || die
+	ln -s "${DISTDIR}"/23123BB29025254556B6E573023FCDF0F6715A66-html-4.01.zip html.editor/external/html-4.01.zip || die
+	ln -s "${DISTDIR}"/2541D025F428A361110C4D656CDD99B5C5C5DFCE-html5doc.zip html.parser/external/html5doc.zip || die
+	ln -s "${DISTDIR}"/D528B44AE7593D2275927396BF930B28078C5220-htmlparser-1.2.1.jar html.parser/external/htmlparser-1.2.1.jar || die
+	ln -s "${DISTDIR}"/8E737D82ECAC9BA6100A9BBA71E92A381B75EFDC-ini4j-0.5.1.jar libs.ini4j/external/ini4j-0.5.1.jar || die
+	ln -s "${DISTDIR}"/0DCC973606CBD9737541AA5F3E76DED6E3F4D0D0-iri.jar html.validation/external/iri.jar || die
+	ln -s "${DISTDIR}"/F90E3DA5259DB07F36E6987EFDED647A5231DE76-ispell-enwl-3.1.20.zip spellchecker.dictionary_en/external/ispell-enwl-3.1.20.zip || die
+	ln -s "${DISTDIR}"/ECEAF316A8FAF0E794296EBE158AE110C7D72A5A-JavaEWAH-0.7.9.jar c.googlecode.javaewah.JavaEWAH/external/JavaEWAH-0.7.9.jar || die
+	ln -s "${DISTDIR}"/71F434378F822B09A57174AF6C75D37408687C57-jaxb-api.jar xml.jaxb.api/external/jaxb-api.jar || die
+	ln -s "${DISTDIR}"/27FAE927B5B9AE53A5B0ED825575DD8217CE7042-jaxb-api-doc.zip libs.jaxb/external/jaxb-api-doc.zip || die
+	ln -s "${DISTDIR}"/387BE740EAEF52B3F6E6EE2F140757E7632584CE-jaxb-impl.jar libs.jaxb/external/jaxb-impl.jar || die
+	ln -s "${DISTDIR}"/C3787DAB0DDFBD9E98086ED2F219859B0CB77EF7-jaxb-xjc.jar libs.jaxb/external/jaxb-xjc.jar || die
+	ln -s "${DISTDIR}"/F4DB465F207907A2406B0BF5C8FFEE22A5C3E4E3-jaxb1-impl.jar libs.jaxb/external/jaxb1-impl.jar || die
+	ln -s "${DISTDIR}"/5E40984A55F6FFF704F05D511A119CA5B456DDB1-jfxrt.jar libs.javafx/external/jfxrt.jar || die
+	ln -s "${DISTDIR}"/483A61B688B13C62BB201A683D98A6688B5373B6-jing.jar html.validation/external/jing.jar || die
+	ln -s "${DISTDIR}"/036FA0032B44AD06A1F13504D97B3685B1C88961-jsch.agentproxy.core-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.core-0.0.7.jar || die
+	ln -s "${DISTDIR}"/9F31964104D71855DF6B73F0C761CDEB3FA3C49C-jsch.agentproxy.sshagent-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.sshagent-0.0.7.jar || die
+	ln -s "${DISTDIR}"/3FA59A536F3DC2197826DC7F224C0823C1534203-jsch.agentproxy.pageant-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.pageant-0.0.7.jar || die
+	ln -s "${DISTDIR}"/F759114E5A9F9AE907EADB59DBF65189AA399B45-jsch.agentproxy.usocket-jna-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.usocket-jna-0.0.7.jar || die
+	ln -s "${DISTDIR}"/F406B7784A0DA5C4670B038BF55A4DCD4AF30AEB-jzlib-1.0.7.jar c.jcraft.jzlib/external/jzlib-1.0.7.jar || die
+	ln -s "${DISTDIR}"/2E07375E5CA3A452472F0E87FB33F243F7A5C08C-libpam4j-1.1.jar extexecution.process/external/libpam4j-1.1.jar || die
+	ln -s "${DISTDIR}"/AA2671239EBB762FEEE8B908E9F35473A72AFE1B-org.eclipse.core.contenttype_3.4.100.v20110423-0524_nosignature.jar o.eclipse.core.contenttype/external/org.eclipse.core.contenttype_3.4.100.v20110423-0524_nosignature.jar || die
+	ln -s "${DISTDIR}"/1605B38BB28EAE32C11EAB8F9E238A497754A5B8-org.eclipse.core.jobs-3.5.101_nosignature.jar o.eclipse.core.jobs/external/org.eclipse.core.jobs-3.5.101_nosignature.jar || die
+	ln -s "${DISTDIR}"/20800206EB8B490F3CE5BB8AC8A7C3B9E8004A30-org.eclipse.core.net_1.2.100.I20110511-0800_nosignature.jar o.eclipse.core.net/external/org.eclipse.core.net_1.2.100.I20110511-0800_nosignature.jar || die
+	ln -s "${DISTDIR}"/D2D2105B1E3C9E2FA6240AD088237A57590DDA8D-org.eclipse.core.runtime-3.7.0_nosignature.jar o.eclipse.core.runtime/external/org.eclipse.core.runtime-3.7.0_nosignature.jar || die
+	ln -s "${DISTDIR}"/16507EAFDC2B95121AA718895BDB54D616EE4B0F-org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110_nosignature.jar o.eclipse.core.runtime.compatibility.auth/external/org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110_nosignature.jar || die
+	ln -s "${DISTDIR}"/BD55836AABD558DC643A7844B78866AD990544BC-org.eclipse.equinox.app-1.3.100_nosignature.jar o.eclipse.equinox.app/external/org.eclipse.equinox.app-1.3.100_nosignature.jar || die
+	ln -s "${DISTDIR}"/4EE275AE73A140A403903D7E4DBA68C8FBB07001-org.eclipse.equinox.common_3.6.0.v20110523_nosignature.jar o.eclipse.equinox.common/external/org.eclipse.equinox.common_3.6.0.v20110523_nosignature.jar || die
+	ln -s "${DISTDIR}"/B7001D9CC2E2AC4E167D22A13063F0350C71AAA9-org.eclipse.equinox.preferences-3.4.2_nosignature.jar o.eclipse.equinox.preferences/external/org.eclipse.equinox.preferences-3.4.2_nosignature.jar || die
+	ln -s "${DISTDIR}"/C647079E36A4EB7A24AED2C545E4F0F94194C4D1-org.eclipse.equinox.registry_3.5.200.v20120522-1841_nosignature.jar o.eclipse.equinox.registry/external/org.eclipse.equinox.registry_3.5.200.v20120522-1841_nosignature.jar || die
+	ln -s "${DISTDIR}"/9267CF311F979078211A70C1B19AF8A8EE71DC8E-org.eclipse.equinox.security-1.1.1_nosignature.jar o.eclipse.equinox.security/external/org.eclipse.equinox.security-1.1.1_nosignature.jar || die
+	ln -s "${DISTDIR}"/B580E446B543A8DD2F5AA368B07F9C4C9C2E7029-org.eclipse.jgit-3.6.2.201501210735-r_nosignature.jar o.eclipse.jgit/external/org.eclipse.jgit-3.6.2.201501210735-r_nosignature.jar || die
+	ln -s "${DISTDIR}"/244560B99152F3F9BC75DF2D6FAFA8A5216B06B6-org.eclipse.jgit.java7-3.6.2.201501210735-r_nosignature.jar o.eclipse.jgit.java7/external/org.eclipse.jgit.java7-3.6.2.201501210735-r_nosignature.jar || die
+	ln -s "${DISTDIR}"/8E2776DE17446EC7450285F19F2C6366117748A8-org.eclipse.mylyn.bugzilla.core_3.17.0.v20150828-2026.jar o.eclipse.mylyn.bugzilla.core/external/org.eclipse.mylyn.bugzilla.core_3.17.0.v20150828-2026.jar || die
+	ln -s "${DISTDIR}"/D4F2BE52B5C048158B5C046C0ACAC3965027FE12-org.eclipse.mylyn.commons.core_3.17.0.v20150625-2042.jar o.eclipse.mylyn.commons.core/external/org.eclipse.mylyn.commons.core_3.17.0.v20150625-2042.jar || die
+	ln -s "${DISTDIR}"/4C753A9D8AB768A55EC99A377A0D22EDA67BAE25-org.eclipse.mylyn.commons.net_3.17.0.v20150706-2057.jar o.eclipse.mylyn.commons.net/external/org.eclipse.mylyn.commons.net_3.17.0.v20150706-2057.jar || die
+	ln -s "${DISTDIR}"/8E52A783A3700FE2F3AED720CBEF6D895C0D5DBC-org.eclipse.mylyn.commons.repositories.core_1.9.0.v20150625-2042.jar o.eclipse.mylyn.commons.repositories.core/external/org.eclipse.mylyn.commons.repositories.core_1.9.0.v20150625-2042.jar || die
+	ln -s "${DISTDIR}"/50F0A49BDF7C5610E3E602609926065D47A16C6E-org.eclipse.mylyn.commons.xmlrpc_3.17.0.v20150625-2042.jar o.eclipse.mylyn.commons.xmlrpc/external/org.eclipse.mylyn.commons.xmlrpc_3.17.0.v20150625-2042.jar || die
+	ln -s "${DISTDIR}"/4F2E28BDB091E2DD215FB9B16C8708513288F16A-org.eclipse.mylyn.tasks.core_3.17.0.v20150828-2026.jar o.eclipse.mylyn.tasks.core/external/org.eclipse.mylyn.tasks.core_3.17.0.v20150828-2026.jar || die
+	ln -s "${DISTDIR}"/11D1982BE23B06B2721240F424DBEF9F5FDE7F45-org.eclipse.mylyn.wikitext.confluence.core_2.6.0.v20150901-2143.jar o.eclipse.mylyn.wikitext.confluence.core/external/org.eclipse.mylyn.wikitext.confluence.core_2.6.0.v20150901-2143.jar || die
+	ln -s "${DISTDIR}"/A3FEF6144ED1622E4CDD506B9D745527CC675D8D-org.eclipse.mylyn.wikitext.core_2.6.0.v20150901-2143-patched-nosignature.jar o.eclipse.mylyn.wikitext.core/external/org.eclipse.mylyn.wikitext.core_2.6.0.v20150901-2143-patched-nosignature.jar || die
+	ln -s "${DISTDIR}"/825DC870D1D423E347F4F8229A211A2C297BB15D-org.eclipse.mylyn.wikitext.markdown.core_2.6.0.v20150901-2143.jar o.eclipse.mylyn.wikitext.markdown.core/external/org.eclipse.mylyn.wikitext.markdown.core_2.6.0.v20150901-2143.jar || die
+	ln -s "${DISTDIR}"/C3024631DD14008D2FF35A576C3D82AC6FCB2E10-org.eclipse.mylyn.wikitext.textile.core_2.6.0.v20150901-2143.jar o.eclipse.mylyn.wikitext.textile.core/external/org.eclipse.mylyn.wikitext.textile.core_2.6.0.v20150901-2143.jar || die
+	ln -s "${DISTDIR}"/17C0C8D6DEBF5EBE734881C131888D8088BD9E7D-org.tmatesoft.svnkit_1.8.12.r10533_v20160129_0158.jar libs.svnClientAdapter.svnkit/external/org.tmatesoft.svnkit_1.8.12.r10533_v20160129_0158.jar || die
+	ln -s "${DISTDIR}"/6819C79348FCF4F5125C834E7D3B742582DCA34D-processtreekiller-1.0.7.jar extexecution.process/external/processtreekiller-1.0.7.jar || die
+	ln -s "${DISTDIR}"/4F94E5B4F14B4571A1D8E37885A3037C91F7C02C-svnkit_1.7.8.r9538_v20130107_2001.jar libs.svnClientAdapter.svnkit/external/svnkit_1.7.8.r9538_v20130107_2001.jar || die
+	ln -s "${DISTDIR}"/B0D0FCBAC68826D2AFA3C7C89FC4D57B95A000C3-resolver-1.2.jar o.apache.xml.resolver/external/resolver-1.2.jar || die
+	ln -s "${DISTDIR}"/EDE7FBABD4C96D34E48FDA0E8FECED24C98CEDCA-sqljet-1.1.10.jar libs.svnClientAdapter.svnkit/external/sqljet-1.1.10.jar || die
+	ln -s "${DISTDIR}"/DAAEFA7A5F3AF75FE4CDC86A1B5904C9F3B5BBF8-svnClientAdapter-javahl-1.10.12.jar libs.svnClientAdapter.javahl/external/svnClientAdapter-javahl-1.10.12.jar || die
+	ln -s "${DISTDIR}"/C47ED3BCD8CEAECDE3BDEEB7D8D14B577B26F9C8-svnClientAdapter-main-1.10.12.jar libs.svnClientAdapter/external/svnClientAdapter-main-1.10.12.jar || die
+	ln -s "${DISTDIR}"/AD4A88D99AB7C5B64C8893CA2FF2CBCFCEFC51C8-svnClientAdapter-svnkit-1.10.12.jar libs.svnClientAdapter.svnkit/external/svnClientAdapter-svnkit-1.10.12.jar || die
+	ln -s "${DISTDIR}"/5C47A97F05F761F190D87ED5FCBB08D1E05A7FB5-svnjavahl-1.9.3.jar libs.svnClientAdapter.javahl/external/svnjavahl-1.9.3.jar || die
+	ln -s "${DISTDIR}"/3B91269E9055504778F57744D24F505856698602-svnkit-1.7.0-beta4-20120316.233307-1.jar libs.svnClientAdapter.svnkit/external/svnkit-1.7.0-beta4-20120316.233307-1.jar || die
+	ln -s "${DISTDIR}"/015525209A02BD74254930FF844C7C13498B7FB9-svnkit-javahl16-1.7.0-beta4-20120316.233536-1.jar libs.svnClientAdapter.svnkit/external/svnkit-javahl16-1.7.0-beta4-20120316.233536-1.jar || die
+	ln -s "${DISTDIR}"/C0D8A3265D194CC886BAFD585117B6465FD97DCE-swingx-all-1.6.4.jar libs.swingx/external/swingx-all-1.6.4.jar || die
+	ln -s "${DISTDIR}"/CD5B5996B46CB8D96C8F0F89A7A734B3C01F3DF7-tomcat-webserver-3.2.jar httpserver/external/tomcat-webserver-3.2.jar || die
+	ln -s "${DISTDIR}"/89BC047153217F5254506F4C622A771A78883CBC-ValidationAPI.jar swing.validation/external/ValidationAPI.jar || die
+	ln -s "${DISTDIR}"/15ACB06E2E3A70FC188782BA51369CA81ACFE860-validator.jar html.validation/external/validator.jar || die
+	ln -s "${DISTDIR}"/C9757EFB2CFBA523A7375A78FA9ECFAF0D0AC505-winp-1.14-patched.jar extexecution.process/external/winp-1.14-patched.jar || die
+	ln -s "${DISTDIR}"/64F5BEEADD2A239C4BC354B8DFDB97CF7FDD9983-xmlrpc-client-3.0.jar o.apache.xmlrpc/external/xmlrpc-client-3.0.jar || die
+	ln -s "${DISTDIR}"/8FA16AD28B5E79A7CD52B8B72985B0AE8CCD6ADF-xmlrpc-common-3.0.jar o.apache.xmlrpc/external/xmlrpc-common-3.0.jar || die
+	ln -s "${DISTDIR}"/D6917BF718583002CBE44E773EE21E2DF08ADC71-xmlrpc-server-3.0.jar o.apache.xmlrpc/external/xmlrpc-server-3.0.jar || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --into c.jcraft.jsch/external jsch jsch.jar jsch-0.1.54.jar
+	java-pkg_jar-from --into db.drivers/external jdbc-mysql jdbc-mysql.jar mysql-connector-java-5.1.23-bin.jar
+	java-pkg_jar-from --into db.drivers/external jdbc-postgresql jdbc-postgresql.jar postgresql-9.4.1209.jar
+	java-pkg_jar-from --build-only --into db.sql.visualeditor/external javacc javacc.jar javacc-3.2.jar
+	java-pkg_jar-from --into html.parser/external icu4j-55 icu4j.jar icu4j-4_4_2.jar
+	java-pkg_jar-from --into html.validation/external iso-relax iso-relax.jar isorelax.jar
+	java-pkg_jar-from --into html.validation/external log4j log4j.jar log4j-1.2.15.jar
+	java-pkg_jar-from --into html.validation/external saxon-9 saxon.jar saxon9B.jar
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --into libs.antlr4.runtime/external antlr-4 antlr-runtime.jar antlr-runtime-4.5.3.jar
+	java-pkg_jar-from --into libs.commons_compress/external commons-compress commons-compress.jar commons-compress-1.8.1.jar
+	# java-pkg_jar-from --into libs.freemarker/external freemarker-2.3 freemarker.jar freemarker-2.3.19.jar
+	java-pkg_jar-from --build-only --into libs.jna/external jna-4 jna.jar jna-4.2.2-stripped.jar
+	java-pkg_jar-from --into libs.json_simple/external json-simple json-simple.jar json-simple-1.1.1.jar
+	java-pkg_jar-from --into libs.jvyamlb/external jvyamlb jvyamlb.jar jvyamlb-0.2.7.jar
+	java-pkg_jar-from --into libs.lucene/external lucene-3.5 lucene-core.jar lucene-core-3.5.0.jar
+	java-pkg_jar-from --into libs.smack/external smack-2.2 smack.jar smack.jar
+	java-pkg_jar-from --into libs.smack/external smack-2.2 smackx.jar smackx.jar
+	# java-pkg_jar-from --into libs.svnClientAdapter.javahl/external subversion svn-javahl.jar svnjavahl-1.8.4.jar
+	java-pkg_jar-from --into libs.xerces/external xerces-2 xercesImpl.jar xerces-2.8.0.jar
+	java-pkg_jar-from --build-only --into o.apache.commons.codec/external commons-codec commons-codec.jar apache-commons-codec-1.3.jar
+	java-pkg_jar-from --into o.apache.commons.httpclient/external commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.1.jar
+	java-pkg_jar-from --into o.apache.commons.logging/external commons-logging commons-logging.jar commons-logging-1.1.1.jar
+	java-pkg_jar-from --into o.apache.ws.commons.util/external ws-commons-util ws-commons-util.jar ws-commons-util-1.0.1.jar
+	java-pkg_jar-from --into servletapi/external tomcat-servlet-api-2.2 servlet.jar servlet-2.2.jar
+	java-pkg_jar-from --into xml.jaxb.api/external sun-jaf activation.jar activation.jar
+	java-pkg_jar-from --into xml.jaxb.api/external jsr173 jsr173.jar jsr173_1.0_api.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_compile() {
+	unset DISPLAY
+	eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
+}
+
+src_install() {
+	pushd nbbuild/netbeans/ide >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/ide$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+	rm -fr "${D}"/${INSTALL_DIR}/bin/nativeexecution || die
+	rm -fr "${D}"/${INSTALL_DIR}/modules/lib || die
+
+	insinto ${INSTALL_DIR}/bin/nativeexecution
+	doins bin/nativeexecution/*
+
+	pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution >/dev/null || die
+	for file in *.sh ; do
+		fperms 755 ${file}
+	done
+	popd >/dev/null || die
+
+	if use x86 ; then
+		doins -r bin/nativeexecution/Linux-x86
+		pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution/Linux-x86 >/dev/null || die
+		for file in * ; do
+			fperms 755 ${file}
+		done
+		popd >/dev/null || die
+	elif use amd64 ; then
+		doins -r bin/nativeexecution/Linux-x86_64
+		pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution/Linux-x86_64 >/dev/null || die
+		for file in * ; do
+			fperms 755 ${file}
+		done
+		popd >/dev/null || die
+	fi
+
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules
+	pushd "${instdir}" >/dev/null || die
+	rm com-jcraft-jsch.jar && java-pkg_jar-from --into "${instdir}" jsch jsch.jar com-jcraft-jsch.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext
+	pushd "${instdir}" >/dev/null || die
+	rm antlr-runtime-4.5.3.jar && java-pkg_jar-from --into "${instdir}" antlr-4 antlr-runtime.jar antlr-runtime-4.5.3.jar
+	rm commons-compress-1.8.1.jar && java-pkg_jar-from --into "${instdir}" commons-compress commons-compress.jar commons-compress-1.8.1.jar
+	# rm freemarker-2.3.19.jar && dosym /usr/share/freemarker-2.3/lib/freemarker.jar ${instdir}/freemarker-2.3.19.jar || die
+	rm icu4j-4_4_2.jar && java-pkg_jar-from --into "${instdir}" icu4j-55 icu4j.jar icu4j-4_4_2.jar
+	rm isorelax.jar && java-pkg_jar-from --into "${instdir}" iso-relax iso-relax.jar isorelax.jar
+	rm json-simple-1.1.1.jar && java-pkg_jar-from --into "${instdir}" json-simple json-simple.jar json-simple-1.1.1.jar
+	rm jvyamlb-0.2.7.jar && java-pkg_jar-from --into "${instdir}" jvyamlb jvyamlb.jar jvyamlb-0.2.7.jar
+	rm log4j-1.2.15.jar && java-pkg_jar-from --into "${instdir}" log4j log4j.jar log4j-1.2.15.jar
+	rm lucene-core-3.5.0.jar && java-pkg_jar-from --into "${instdir}" lucene-3.5 lucene-core.jar lucene-core-3.5.0.jar
+	rm mysql-connector-java-5.1.23-bin.jar && java-pkg_jar-from --into "${instdir}" jdbc-mysql jdbc-mysql.jar mysql-connector-java-5.1.23-bin.jar
+	rm postgresql-9.4.1209.jar && java-pkg_jar-from --into "${instdir}" jdbc-postgresql jdbc-postgresql.jar postgresql-9.4.1209.jar
+	rm saxon9B.jar && java-pkg_jar-from --into "${instdir}" saxon-9 saxon.jar saxon9B.jar
+	rm servlet-2.2.jar && java-pkg_jar-from --into "${instdir}" tomcat-servlet-api-2.2 servlet.jar servlet-2.2.jar
+	rm smack.jar && java-pkg_jar-from --into "${instdir}" smack-2.2 smack.jar
+	rm smackx.jar && java-pkg_jar-from --into "${instdir}" smack-2.2 smackx.jar
+	# rm svnjavahl.jar && dosym /usr/share/subversion/lib/svn-javahl.jar ${instdir}/svnjavahl.jar || die
+	rm xerces-2.8.0.jar && java-pkg_jar-from --into "${instdir}" xerces-2 xercesImpl.jar xerces-2.8.0.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/jaxb
+	pushd "${instdir}" >/dev/null || die
+	rm activation.jar && java-pkg_jar-from --into "${instdir}" sun-jaf activation.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/jaxb/api
+	pushd "${instdir}" >/dev/null || die
+	rm jsr173_1.0_api.jar && java-pkg_jar-from --into "${instdir}" jsr173 jsr173.jar jsr173_1.0_api.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/ide
+}

diff --git a/dev-java/netbeans-java/Manifest b/dev-java/netbeans-java/Manifest
index e31ef3f..877abb0 100644
--- a/dev-java/netbeans-java/Manifest
+++ b/dev-java/netbeans-java/Manifest
@@ -23,6 +23,7 @@ DIST A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar 89171
 DIST A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip 19717645 SHA256 618aa42390667bd4cf2343edfe134f5665d9815379ec311c3c776c9dbd21831d SHA512 160fa0353baa9b31090432053a2d602fdffa663fe1f83ad79de4788ed74d3e5938d0bba0ef28ff4a946e6bc99c3a629b3fc8ff7d44ada98348fee816cb39b42e WHIRLPOOL 23408ae921b1712584eef8d51678547cf24ce3db75743524cbb046511cac60f162ab46e4c3b65e639d9c8b3f2463b674791f491d6e377ef69207ef701b7dbc09
 DIST B2EB2006BCDB022420BDB4C2D596564539C65699-nb-javac-api.jar 173819 SHA256 4f2dbc36ec77519df339846cf5333e874d6f147f5d46ccdfabb18af34ee3bd5b SHA512 ccd48f9fe445b669763428dace1a02d5820a33d872c952d3a74608f868ca225c017999ae15857ed544799d467068b759d216121ba79d3288f323aa2cffb95fa8 WHIRLPOOL 02e8556df81839b0b90c912b9e22c22c9f10c54ee0aabda4768eaf6956f7e3e29c9b24a46e20bb264f2ea186c1642ec7baeb375b2a8951737543ac16e73f9260
 DIST B572007A07023ADF7ECBDB7FC2D572BF1BDED20D-wagon-http-2.8-shaded.jar 2259343 SHA256 551a7c1bfacb60eebe7eb5b004b69f546840cc3fca82f44431e4ac6215163f39 SHA512 67b973d2a3d52fba14ec2d285f4c2f0b0490be04d73c38918c2657f7fc257656f793e1e4eaa9221579ed93cd3ec1ce0c120f5b4fbc86582b95308c1f8b64fb79 WHIRLPOOL ae6e765a49e0cf8284a3496005a571f96ba730133c220ea77b8d19520a8579e4ac4879f1218ec38c0210c56add19ead8b3a4d104613c9788387213ce8561c8cf
+DIST BCFFEEBC737C345E7CE643ADCFC7BDE5FBEF4794-nb-javac-impl.jar 3238206 SHA256 fe9c7b1641f3a2cbf293a2d7284a3b96edb6cfe260a753cb214ab326814b2d5e SHA512 d67835826e27188d54ac421e72ecb207290a4bcc0d1fe2878ba2f96f741a71b1f64c89b00964159af53ca1f1fb79cf3caab2158843ac83405feadb09b95bb50e WHIRLPOOL a6145243ce828398f398fc6b28c02addbfd19bf01d88ab13307881deb3635f507028f1ddde10675744db95062bd440bbf2a02021db05a8a8f6df517eb1ff00a7
 DIST BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar 56032 SHA256 817762baeabb24daf8a41a9716e31f85a7659147d09264a499f4d35b0fe04115 SHA512 c84d4066b9519cf2c00d5d4f054865693cd1665e5db3b30f6e77b44a7c0d3055cc40a1641b805ea38d2294e2cab1a27fab85035950ff0d94960a4de185bcc76b WHIRLPOOL aae6bc05d3b441443b9f0d80e65fde81614b0206eee5714f4e51ceaa0adb778758a5d65efb3a4963111f3b258753e0154447914a5586251883d22b0c1e09f9f3
 DIST BFCC4C322190D6E3DD2FA9F191C0359D380D87C5-wagon-file-2.10.jar 11429 SHA256 bf363540ede1db9782511d5ddcfcc6871d5026946ba4d214061ca992f064e128 SHA512 f7a69e5622153a3f6568a7b28b753ab0d19adea6c34a265b5efeaf95a9961dd0af711d0719956e0859fa3c63a1c06237381c35f20fb14e1fc9d9894f09f3522a WHIRLPOOL 4d223e3c256956d05ebf7d5e58ae3276027f0ff2effa8b54a3a8badf480029e19b8cb1b880139bde75167d886daaa6bc9c1d27c68d3b5bab01babbe607f56b54
 DIST CA4F4DB7B6C140E36B0001873BEEA7C26489D2A1-netbeans-cos.jar 10121 SHA256 c229a949b35bacebe798971b05b1fa6bdee4e923fcc08f02a7ae0a71fc6de4c7 SHA512 22333aab9419fafc86544492d384683a14c7f5feb313d9555f424ed4db46dd82c5a53b74b6e41221cf7d48d640145a63a653b4a05575df8ab2a2fba1b85815fa WHIRLPOOL 18dbad03b5cbcaa76ab528b2af074f566b3cd0a786e3e8bf2b56b8e0e265461fc15527a41e013f8685d1c824f48e28607833f30e02143a09be360574be38f3d3
@@ -63,6 +64,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-java-8.0.2-r4.ebuild 13298 SHA256 d4172dfdec5afecb1cd099e18a21aa872c7822bff40b192b5f4ec4d35e6e0ef8 SHA512 48ae6f7141117fbf58123ded750d76f2e7311211a6be3b62bd491349817460da11f781ec5694da91584315547c32008f568fac3bfb406dbdb5ed7fd825ff694e WHIRLPOOL 73fb68aec003707c14b2b390c2de80f24e1e5413cf7e16cf7e661af47c908e2d559214580379e45e21d316767987ac906b5a119a61ae39f03c3d01dafad49b7c
 EBUILD netbeans-java-8.1-r2.ebuild 14814 SHA256 1f49212c90fcaa9a6483f19bb60c963520f20aa08c2a509aa19cc7fda12e4564 SHA512 2d6b225f5d32f0ce1801124808b0cc2101f16a703540877c4818be06694742cfa262c3a2e7018761254f9244a7992eb7fe9bc15cdb20f6f4cb83958789c0ef42 WHIRLPOOL 8557163a46ea91a47efec3c272b8a8a0f2acbf9eaa8f6c280d0ddaac6dd8b2185f06716ab12ebf76fb87fe6c05ab1a14bfd281875ebef586f1304d2162e5f2dc
 EBUILD netbeans-java-8.2.ebuild 15331 SHA256 c35725f6dee4e634e4de474617a307e2aaa6434a9569bffd9566304501adc9d5 SHA512 259c16a255409df4d0519bf7bddd4200ccaefdcbae4436fb321c33b215b757910c8cd807c8f142e8ae42ab4bd59478436ecee8c4d3d38615e8bbf110c265e950 WHIRLPOOL 07b86ee0c402eaed18f3a640ec5a447bbb781154e477db93ca51ee8034b991be39d8203c88ed0119bd785091cd82ae41367477e902dfb96ad41ca97410f5f41d
@@ -88,4 +90,5 @@ EBUILD netbeans-java-9999_p20161022.ebuild 15377 SHA256 e4fc5012c0a779dabf6f0f92
 EBUILD netbeans-java-9999_p20161023.ebuild 15377 SHA256 3abbb3db52d79e37dda384769a7a2a514e4542b260f0fd1cef92dd3378469659 SHA512 317056e06d6d8ba900ddc3e502dd15c18e5136eb91c6c603eab7024a7d4fbe85da1ebd7f1f44c71e18930103c5e6b280184c9b93fc47827f1cb63d15df1c1874 WHIRLPOOL 957596a15c10dd704caa57ebcfab5460395554d2267487d9728a39324e9fd3053b8caf7d6a0c7afe5c6eed314b3ddb9ba8de722012a2050a9f7071456a32906b
 EBUILD netbeans-java-9999_p20161024.ebuild 15377 SHA256 cfd90bfb6aee479bd99f549ddaf002d603615c8576e9378911e430bdb6ceff18 SHA512 b5cacbe962a1ea8fb5725ebb51eb2bc539234a21c5ff4511c0105129438b1f93fda73ed73c00767ed889fc00e877b0a1f6fd8b86fbc55c9691fa5c38a12404d4 WHIRLPOOL 37a33141636c411a2607a599917ac67729995a4158838e7d6e4685f4383569377544813af08b96664310bec0f8260c4bd3079413bd431c03fbfc7bbabfa645ba
 EBUILD netbeans-java-9999_p20161025.ebuild 15377 SHA256 299b744d7f8e712a7d64a3117b7a96817d1052ca26ae7c230d8c68d9330888fb SHA512 0d67fa0a7608d4bf0d767964b576993731a11ad0205085b605bec9b58d1fe5fe4db4c19d3ce8eed3ac2c13370f7cd20e3cfea0cc6e0a1f398720722873d07c8a WHIRLPOOL 0b1824a2d16db0b9ee895c469fb1a3a4c614bdf43eda001ca1581cbc735ac58b8508a97ea595e778d2bdbcc89f9c89cc1de5baa3ae82d1f76c39c6f8afeb7a0f
+EBUILD netbeans-java-9999_p20161026.ebuild 15377 SHA256 e8c29d5a26bbe9e22b660bc58783f184f8a025842111ae86e6959fccad8bc624 SHA512 29a63afd23672eb78f5af6ca2b4d856cead37b712f75dd25496264a0f2d5ca8a2d759ec5f245d335f8df746bfd9c47fd5c836242c42559671bacb27054136f32 WHIRLPOOL 36f3bb2000134a6bf7afa1cdc3ee508519c660713cb616417d021d1f3917a2c7be72683bce88a4d6ea0f263ead422f7e6a621a6dd28b17ea315aa622da55633f
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-java/netbeans-java-9999_p20161026.ebuild b/dev-java/netbeans-java/netbeans-java-9999_p20161026.ebuild
new file mode 100644
index 0000000..946f933
--- /dev/null
+++ b/dev-java/netbeans-java/netbeans-java-9999_p20161026.ebuild
@@ -0,0 +1,268 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+# Maven cannot be unbundled because it depends on exact maven version and exact content of maven directory
+
+DESCRIPTION="Netbeans Java Cluster"
+HOMEPAGE="http://netbeans.org/projects/java"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+# jarjar-1.4 contains also asm libraries
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/839F93A5213FB3E233B09BFD6D6B95669F7043C0-aether-api-1.0.2.v20150114.jar
+	http://hg.netbeans.org/binaries/694F57282D92C434800F79218E64704E5947008A-apache-maven-3.0.5-bin.zip
+	http://hg.netbeans.org/binaries/F7BD95641780C2AAE8CB9BED1686441A1CE5E749-beansbinding-1.2.1-doc.zip
+	http://hg.netbeans.org/binaries/CD2211635F3011E300CA8FEDC1CE0E1CF61C175B-eclipselink.jar
+	http://hg.netbeans.org/binaries/A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip
+	http://hg.netbeans.org/binaries/562F0CFA47F0636EBB5A544968EE7A692FC5D26D-indexer-artifact-5.1.1.jar
+	http://hg.netbeans.org/binaries/E775F5BEB07F8303A9AD3DDC12E3128DD48AB03A-indexer-core-5.1.1-patched.jar
+	http://hg.netbeans.org/binaries/D87F53C99E4CD88F5416EDD5ABB77F2A1CCFB050-jarjar-1.4.jar
+	http://hg.netbeans.org/binaries/5BAB675816DBE0F64BB86004B108BF2A00292358-javax.persistence_2.1.0.v201304241213.jar
+	http://hg.netbeans.org/binaries/84E2020E5499015E9F40D1212C86918264B89EB1-jaxws-2.2.6.zip
+	http://hg.netbeans.org/binaries/D64C40E770C95C2A6994081C00CCD489C0AA20C9-jaxws-2.2.6-api.zip
+	http://hg.netbeans.org/binaries/8ECD169E9E308C258287E4F28B03B6D6F1E55F47-jaxws-api-doc.zip
+	http://hg.netbeans.org/binaries/A8BD39C5B88571B4D4697E78DD1A56566E44B1DD-JPAjavadocs04032013.zip
+	http://hg.netbeans.org/binaries/9EC77E2507F9CC01756964C71D91EFD8154A8C47-lucene-core-3.6.2.jar
+	http://hg.netbeans.org/binaries/A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar
+	http://hg.netbeans.org/binaries/BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar
+	http://hg.netbeans.org/binaries/3BB258C976F65C78D890CACB5C0D3096B793289E-nb-javac-api.jar
+	http://hg.netbeans.org/binaries/BCFFEEBC737C345E7CE643ADCFC7BDE5FBEF4794-nb-javac-impl.jar
+	http://hg.netbeans.org/binaries/29AF1D338CBB76290D1A96F5A6610F1E8C319AE5-org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
+	http://hg.netbeans.org/binaries/3CE04BDB48FE315736B1DCE407362C57DFAE286D-org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar
+	http://hg.netbeans.org/binaries/7666B94C1004AFFFE88E5328BD70EBA6F60125F4-spring-framework-3.2.7.RELEASE.zip
+	http://hg.netbeans.org/binaries/91B55CDAC59BC4DDDF0AF9A54EAAE4304EDEF266-spring-framework-4.0.1.RELEASE.zip
+	http://hg.netbeans.org/binaries/BFCC4C322190D6E3DD2FA9F191C0359D380D87C5-wagon-file-2.10.jar
+	http://hg.netbeans.org/binaries/4EF309C09ABB5F8B2D0C6A4010205DB185729CDC-wagon-http-2.10-shaded.jar
+	http://hg.netbeans.org/binaries/3B96251214DF697E902C849EB0B4A0EFA2CD1A53-wagon-http-shared-2.10.jar
+	http://hg.netbeans.org/binaries/0CD9CDDE3F56BB5250D87C54592F04CBC24F03BF-wagon-provider-api-2.10.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-websvccommon-${PV}
+	dev-java/beansbinding:0
+	dev-java/cglib:3
+	dev-java/jdom:0"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0
+	dev-java/json-simple:0
+	dev-java/junit:4"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}
+	dev-java/absolutelayout:0
+	>=dev-java/antlr-2.7.7-r7:0
+	dev-java/c3p0:0
+	dev-java/commons-cli:1
+	dev-java/commons-collections:0
+	dev-java/dom4j:1
+	dev-java/fastinfoset:0
+	dev-java/glassfish-transaction-api:0
+	dev-java/javassist:3
+	dev-java/jboss-logging:0
+	dev-java/jsr67:0
+	dev-java/jsr181:0
+	>=dev-java/jtidy-1:0
+	dev-java/log4j:0
+	dev-java/mimepull:0
+	dev-java/oracle-javamail:0
+	dev-java/saaj:0
+	dev-java/slf4j-api:0
+	dev-java/slf4j-log4j12:0
+	dev-java/slf4j-simple:0
+	dev-java/stax-ex:0
+	dev-java/stax2-api:0
+	dev-java/xmlstreambuffer:0"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.java -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+pkg_pretend() {
+	local die_now=""
+
+	if [ -d /usr/share/netbeans-java-${SLOT}/ant ]; then
+		if [ -n "$(find /usr/share/netbeans-java-${SLOT}/ant -type l)" ]; then
+			eerror "Please remove following symlinks and run emerge again:"
+			find /usr/share/netbeans-java-${SLOT}/ant -type l
+			die_now="1"
+		fi
+	fi
+
+	if [ -L /usr/share/netbeans-java-${SLOT}/maven ]; then
+		if [ -z "${die_now}" ]; then
+			eerror "Please remove following symlinks and run emerge again:"
+		fi
+
+		echo "/usr/share/netbeans-java-${SLOT}/maven"
+		die_now="1"
+	fi
+
+	if [ -n "${die_now}" ]; then
+		die "Symlinks exist"
+	fi
+}
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/839F93A5213FB3E233B09BFD6D6B95669F7043C0-aether-api-1.0.2.v20150114.jar maven/external/aether-api-1.0.2.v20150114.jar || die
+	ln -s "${DISTDIR}"/694F57282D92C434800F79218E64704E5947008A-apache-maven-3.0.5-bin.zip maven.embedder/external/apache-maven-3.0.5-bin.zip || die
+	ln -s "${DISTDIR}"/F7BD95641780C2AAE8CB9BED1686441A1CE5E749-beansbinding-1.2.1-doc.zip o.jdesktop.beansbinding/external/beansbinding-1.2.1-doc.zip || die
+	ln -s "${DISTDIR}"/CD2211635F3011E300CA8FEDC1CE0E1CF61C175B-eclipselink.jar j2ee.eclipselink/external/eclipselink.jar || die
+	ln -s "${DISTDIR}"/A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip hibernate4lib/external/hibernate-release-4.3.1-lib.zip || die
+	ln -s "${DISTDIR}"/562F0CFA47F0636EBB5A544968EE7A692FC5D26D-indexer-artifact-5.1.1.jar maven.indexer/external/indexer-artifact-5.1.1.jar || die
+	ln -s "${DISTDIR}"/E775F5BEB07F8303A9AD3DDC12E3128DD48AB03A-indexer-core-5.1.1-patched.jar maven.indexer/external/indexer-core-5.1.1-patched.jar || die
+	ln -s "${DISTDIR}"/D87F53C99E4CD88F5416EDD5ABB77F2A1CCFB050-jarjar-1.4.jar maven/external/jarjar-1.4.jar || die
+	ln -s "${DISTDIR}"/5BAB675816DBE0F64BB86004B108BF2A00292358-javax.persistence_2.1.0.v201304241213.jar j2ee.eclipselink/external/javax.persistence_2.1.0.v201304241213.jar || die
+	ln -s "${DISTDIR}"/84E2020E5499015E9F40D1212C86918264B89EB1-jaxws-2.2.6.zip websvc.jaxws21/external/jaxws-2.2.6.zip || die
+	ln -s "${DISTDIR}"/D64C40E770C95C2A6994081C00CCD489C0AA20C9-jaxws-2.2.6-api.zip websvc.jaxws21api/external/jaxws-2.2.6-api.zip || die
+	ln -s "${DISTDIR}"/8ECD169E9E308C258287E4F28B03B6D6F1E55F47-jaxws-api-doc.zip websvc.jaxws21/external/jaxws-api-doc.zip || die
+	ln -s "${DISTDIR}"/A8BD39C5B88571B4D4697E78DD1A56566E44B1DD-JPAjavadocs04032013.zip j2ee.eclipselink/external/JPAjavadocs04032013.zip || die
+	ln -s "${DISTDIR}"/9EC77E2507F9CC01756964C71D91EFD8154A8C47-lucene-core-3.6.2.jar maven.indexer/external/lucene-core-3.6.2.jar || die
+	ln -s "${DISTDIR}"/A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar maven.indexer/external/lucene-highlighter-3.6.2.jar || die
+	ln -s "${DISTDIR}"/BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar maven.embedder/external/maven-dependency-tree-2.0.jar || die
+	ln -s "${DISTDIR}"/3BB258C976F65C78D890CACB5C0D3096B793289E-nb-javac-api.jar libs.javacapi/external/nb-javac-api.jar || die
+	ln -s "${DISTDIR}"/BCFFEEBC737C345E7CE643ADCFC7BDE5FBEF4794-nb-javac-impl.jar libs.javacimpl/external/nb-javac-impl.jar || die
+	ln -s "${DISTDIR}"/CA4F4DB7B6C140E36B0001873BEEA7C26489D2A1-netbeans-cos.jar maven/external/netbeans-cos.jar || die
+	ln -s "${DISTDIR}"/29AF1D338CBB76290D1A96F5A6610F1E8C319AE5-org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar j2ee.eclipselink/external/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar || die
+	ln -s "${DISTDIR}"/3CE04BDB48FE315736B1DCE407362C57DFAE286D-org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar j2ee.eclipselinkmodelgen/external/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar || die
+	ln -s "${DISTDIR}"/7666B94C1004AFFFE88E5328BD70EBA6F60125F4-spring-framework-3.2.7.RELEASE.zip libs.springframework/external/spring-framework-3.2.7.RELEASE.zip || die
+	ln -s "${DISTDIR}"/91B55CDAC59BC4DDDF0AF9A54EAAE4304EDEF266-spring-framework-4.0.1.RELEASE.zip libs.springframework/external/spring-framework-4.0.1.RELEASE.zip || die
+	ln -s "${DISTDIR}"/BFCC4C322190D6E3DD2FA9F191C0359D380D87C5-wagon-file-2.10.jar maven.embedder/external/wagon-file-2.10.jar || die
+	ln -s "${DISTDIR}"/4EF309C09ABB5F8B2D0C6A4010205DB185729CDC-wagon-http-2.10-shaded.jar maven.embedder/external/wagon-http-2.10-shaded.jar || die
+	ln -s "${DISTDIR}"/3B96251214DF697E902C849EB0B4A0EFA2CD1A53-wagon-http-shared-2.10.jar maven.embedder/external/wagon-http-shared-2.10.jar || die
+	ln -s "${DISTDIR}"/0CD9CDDE3F56BB5250D87C54592F04CBC24F03BF-wagon-provider-api-2.10.jar maven.embedder/external/wagon-provider-api-2.10.jar || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --into libs.cglib/external cglib-3 cglib.jar cglib-2.2.jar
+	java-pkg_jar-from --build-only --into libs.json_simple/external json-simple json-simple.jar json-simple-1.1.1.jar
+	java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.12.jar
+	java-pkg_jar-from --into maven.embedder/external jdom jdom.jar jdom-1.0.jar
+	java-pkg_jar-from --into o.jdesktop.beansbinding/external beansbinding beansbinding.jar beansbinding-1.2.1.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
+	cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.websvccommon.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/java >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+	grep -E "/java$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+	chmod 755 "${D}"/${INSTALL_DIR}/maven/bin/mvn* || die
+	rm -fr "${D}"/${INSTALL_DIR}/maven/bin/*.bat || die
+
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/maven/lib
+	pushd "${instdir}" >/dev/null || die
+	rm commons-cli-1.2.jar && java-pkg_jar-from --into "${instdir}" commons-cli-1 commons-cli.jar commons-cli-1.2.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext
+	pushd "${instdir}" >/dev/null || die
+	rm AbsoluteLayout.jar  && java-pkg_jar-from --into "${instdir}" absolutelayout absolutelayout.jar AbsoluteLayout.jar
+	rm beansbinding-1.2.1.jar && java-pkg_jar-from --into "${instdir}" beansbinding beansbinding.jar beansbinding-1.2.1.jar
+	rm cglib-2.2.jar && java-pkg_jar-from --into "${instdir}" cglib-3 cglib.jar cglib-2.2.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/hibernate4
+	pushd "${instdir}" >/dev/null || die
+	rm antlr-2.7.7.jar && java-pkg_jar-from --into "${instdir}" antlr antlr.jar antlr-2.7.7.jar
+	rm c3p0-0.9.2.1.jar && java-pkg_jar-from --into "${instdir}" c3p0 c3p0.jar c3p0-0.9.2.1.jar
+	rm cglib-2.2.jar && java-pkg_jar-from --into "${instdir}" cglib-3 cglib.jar cglib-2.2.jar
+	rm commons-collections-3.2.1.jar && java-pkg_jar-from --into "${instdir}" commons-collections commons-collections.jar commons-collections-3.2.1.jar
+	rm dom4j-1.6.1.jar && java-pkg_jar-from --into "${instdir}" dom4j-1 dom4j.jar dom4j-1.6.1.jar
+	rm javassist-3.18.1-GA.jar && java-pkg_jar-from --into "${instdir}" javassist-3 javassist.jar javassist-3.18.1-GA.jar
+	rm jboss-logging-3.1.3.GA.jar && java-pkg_jar-from --into "${instdir}" jboss-logging jboss-logging.jar jboss-logging-3.1.3.GA.jar
+	rm jboss-transaction-api_1.2_spec-1.0.0.Final.jar && java-pkg_jar-from --into "${instdir}" glassfish-transaction-api jta.jar jboss-transaction-api_1.2_spec-1.0.0.Final.jar
+	rm jtidy-r8-20060801.jar && java-pkg_jar-from --into "${instdir}" jtidy jtidy.jar jtidy-r8-20060801.jar
+	rm log4j-1.2.12.jar && java-pkg_jar-from --into "${instdir}" log4j log4j.jar log4j-1.2.12.jar
+	rm slf4j-api-1.6.1.jar && java-pkg_jar-from --into "${instdir}" slf4j-api slf4j-api.jar slf4j-api-1.6.1.jar
+	rm slf4j-log4j12-1.6.1.jar && java-pkg_jar-from --into "${instdir}" slf4j-log4j12 slf4j-log4j12.jar slf4j-log4j12-1.6.1.jar
+	rm slf4j-simple-1.6.1.jar && java-pkg_jar-from --into "${instdir}" slf4j-simple slf4j-simple.jar slf4j-simple-1.6.1.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/jaxws22
+	pushd "${instdir}" >/dev/null || die
+	rm FastInfoset.jar && java-pkg_jar-from --into "${instdir}" fastinfoset fastinfoset.jar FastInfoset.jar
+	rm javax.mail_1.4.jar && java-pkg_jar-from --into "${instdir}" oracle-javamail mail.jar javax.mail_1.4.jar
+	rm mimepull.jar && java-pkg_jar-from --into "${instdir}" mimepull mimepull.jar
+	rm saaj-impl.jar && java-pkg_jar-from --into "${instdir}" saaj saaj.jar saaj-impl.jar
+	rm stax-ex.jar && java-pkg_jar-from --into "${instdir}" stax-ex stax-ex.jar
+	rm stax2-api.jar && java-pkg_jar-from --into "${instdir}" stax2-api stax2-api.jar
+	rm streambuffer.jar && java-pkg_jar-from --into "${instdir}" xmlstreambuffer xmlstreambuffer.jar streambuffer.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/jaxws22/api
+	pushd "${instdir}" >/dev/null || die
+	rm jsr181-api.jar && java-pkg_jar-from --into "${instdir}" jsr181 jsr181.jar jsr181-api.jar
+	rm saaj-api.jar && java-pkg_jar-from --into "${instdir}" jsr67 jsr67.jar saaj-api.jar
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext/maven
+	pushd "${instdir}" >/dev/null || die
+	rm jdom-1.0.jar && java-pkg_jar-from --into "${instdir}" jdom jdom.jar jdom-1.0.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/java
+}

diff --git a/dev-java/netbeans-javacard/Manifest b/dev-java/netbeans-javacard/Manifest
index 5b00b50..9285bc7 100644
--- a/dev-java/netbeans-javacard/Manifest
+++ b/dev-java/netbeans-javacard/Manifest
@@ -31,6 +31,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-javacard-8.0.2.ebuild 4906 SHA256 944fee40d693c2c287e748f70ba565f3cd84bb7c19110f8be716134ec20694a7 SHA512 1f66cd2756effbfde7d43f9da7d8d93cb6252c58a02ee3d821f6faeaf63bf3c63e28f80c6eb44689e3aa954452a2f3893c65e75de84158dff1da0d94cafea14a WHIRLPOOL 88197e03008b8acb1ce62f72783bb096d9a3fc2a289b83367841a8adbee2bf822031f9bd6051831515ee44b1d5d2a109c5646f98ca723506f27c874301fb4189
 EBUILD netbeans-javacard-8.1.ebuild 4930 SHA256 5342d0d3f4207da3d36eb19f0fa78015f33b4a6e6435fcf43b7f568afabb9d02 SHA512 5275ae0fd617e26cd8580f6256a766bdd9cc0299f5a488be5a97744ec6abddf262e5fb1db358b9ac00203bbedfe7ac152828b174856d9cf6fa06e1e2128e219b WHIRLPOOL 427bfed5b61a421340acf7ec0cfb5e88a8b4a68cb546b9d0546b7c69ab0e29700d03e2bf58641bde63a2a43579b0521c028cf57dbf25af280fb0732565a30617
 EBUILD netbeans-javacard-8.2.ebuild 4646 SHA256 3eb779b4872b425a8f9ac0b2eb78984eba38c614d784be47af32a3fc90b8b2fc SHA512 361cb549efbb2835509d9a6aba409832173a4f3731e1ae31016a286faa9e8da94a206ec876109f1a1095fd1f7e9d73f3360c5c385802268314e93aed1f187218 WHIRLPOOL ff13272370d4782a140484c0d4967c3b2d16a2687c9fba444637577ac3560ac4cd23a67699debc539b884049a61feefe4cc91af842c3c0243ee9077a2b6b9c4f
@@ -56,4 +57,5 @@ EBUILD netbeans-javacard-9999_p20161022.ebuild 4692 SHA256 c9a1e12de019b58fd78b4
 EBUILD netbeans-javacard-9999_p20161023.ebuild 4692 SHA256 653f832ce46108a4cdc83204da79f01dcadc3880123d6432c5d34c03eb6ab318 SHA512 abe390561a57aaae8281ceef34fcd8bbf6ffed31644a5cb515f4932dcf798b73a675c531d1a0c09832f03ddd70b10da35b879e1af6aaa7a0b99ee3d642b36d1d WHIRLPOOL a4050ab96cadb2993d39e54f8667116aa02d9c4a3ba307e7a931c1951e56af7b4d00f72bc6e4f28c2ee0cbf3272f69892c7c05234cc4f0c8ac7b69089f232697
 EBUILD netbeans-javacard-9999_p20161024.ebuild 4692 SHA256 d15d9ac401e415df28c25afce8c68f5b5827a8f0cf9d690dcd323a7ca0b91a4f SHA512 3bc26c8fa3b5f574b441c62482004451a5ef00aae672244bf654255cc879630932823618b820f7699da6c9eda062314edde719ad7f19ea8376899aa912863f92 WHIRLPOOL 65a50d18b092c7ec0ce92757d1322a716b75ae335cbad0d7438ae975f8315d6a4aec084574c4cf1320bac3aa741655c380e9e0092a3bdeea6bb1d6c6f894d6ab
 EBUILD netbeans-javacard-9999_p20161025.ebuild 4692 SHA256 9eda4d807ad856504c18db23f6e5770ab35ee3ff975084578b49ac658a0d1c03 SHA512 db8317c48cb1546af1046a9d7886a27c9644dff3648c9d10f698015ffd5acc7a5a9a60509885ee526f59b8ac6b3266d0f14c413af3398e423f33e873ed796a03 WHIRLPOOL c837ee13ff6801d1d0d50923114f65216818b863cd9b0ce52fcef1645595e9743e47177d407dbce7c372be7327881f50bdaa5d80e4abfd170ed70aa49ca4ffd0
+EBUILD netbeans-javacard-9999_p20161026.ebuild 4692 SHA256 cd7e5ede39dcbff3bc6ff2e3e4bf06f41104066bfc79faf81bd7501863927a01 SHA512 ba872ba217c11afbf97c6149157711ca1d02c6bc4075ae50205114f37ddcc5a2e8bff06affe60e1fa407a364891e2c57aeb74e1d551a2bc372110c9e7a8c6ca6 WHIRLPOOL 8a4e4367b572b82adcf118d6aecdf83451f894fcd8e9b30767e23b13bcbcfcf13e8a956b8979791108857a9fe608a5359a9a1d90e0f096b4d89cabbcbe00ed86
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-javacard/netbeans-javacard-9999_p20161026.ebuild b/dev-java/netbeans-javacard/netbeans-javacard-9999_p20161026.ebuild
new file mode 100644
index 0000000..7b10062
--- /dev/null
+++ b/dev-java/netbeans-javacard/netbeans-javacard-9999_p20161026.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans JavaCard Cluster"
+HOMEPAGE="http://netbeans.org/projects/javacard"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/33DCFAE258453BDD3D8A042F6ECF80656A82B8DD-anttasks.jar
+	http://hg.netbeans.org/binaries/9C1A8BC9D3270D184F1D1BCC5F60AA81D46E1ADF-apduio.jar
+	http://hg.netbeans.org/binaries/6243337E93F5841D4FFB404011AA076BFEB1590A-javacard_ri.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}
+	dev-java/ant-contrib:0
+	dev-java/asm:3
+	dev-java/bcel:0
+	dev-java/commons-cli:1
+	dev-java/commons-codec:0
+	dev-java/commons-httpclient:3
+	dev-java/commons-logging:0"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.javacard -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/33DCFAE258453BDD3D8A042F6ECF80656A82B8DD-anttasks.jar javacard.ri.platform/external/anttasks.jar || die
+	ln -s "${DISTDIR}"/9C1A8BC9D3270D184F1D1BCC5F60AA81D46E1ADF-apduio.jar javacard.apdu.io/external/apduio.jar || die
+	ln -s "${DISTDIR}"/6243337E93F5841D4FFB404011AA076BFEB1590A-javacard_ri.zip javacard.ri.bundle/external/javacard_ri.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/javacard >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/javacard$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+	rm -fr "${D}"/${INSTALL_DIR}/bin || die
+
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/JCDK3.0.2_ConnectedEdition/lib
+	pushd "${instdir}" >/dev/null || die
+	rm ant-contrib-1.0b3.jar && java-pkg_jar-from --into "${instdir}" ant-contrib ant-contrib.jar ant-contrib-1.0b3.jar
+	rm asm-all-3.1.jar && java-pkg_jar-from --into "${instdir}" asm-3 asm.jar asm-all-3.1.jar
+	rm bcel-5.2.jar && java-pkg_jar-from --into "${instdir}" bcel bcel.jar bcel-5.2.jar
+	rm commons-cli-1.0.jar && java-pkg_jar-from --into "${instdir}" commons-cli-1 commons-cli.jar commons-cli-1.0.jar
+	rm commons-codec-1.3.jar && java-pkg_jar-from --into "${instdir}" commons-codec commons-codec.jar commons-codec-1.3.jar
+	rm commons-httpclient-3.0.jar && java-pkg_jar-from --into "${instdir}" commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.jar
+	rm commons-logging-1.1.jar && java-pkg_jar-from --into "${instdir}" commons-logging commons-logging.jar commons-logging-1.1.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/javacard
+}

diff --git a/dev-java/netbeans-javadoc/Manifest b/dev-java/netbeans-javadoc/Manifest
index e3861e3..4d33d10 100644
--- a/dev-java/netbeans-javadoc/Manifest
+++ b/dev-java/netbeans-javadoc/Manifest
@@ -31,6 +31,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-javadoc-8.0.2.ebuild 5993 SHA256 baf9da38d87b86eb8ed10ef46017361f36ca8583dd90885c9d1667a51851bc52 SHA512 892bc25b30dc26e3ee7c8be9aaf8542c00a7fa1d1d8f883d82bebb816edfa93e1ee9abeac1b0c47ecc8b4169bcaded56c5c71f18151fdc22fe241fcee0fd4521 WHIRLPOOL 2012f28f3ba5074b4d262b20e9a1c8ddf590ce444339ec1a404c890867c1271e38f9f9e09717d0648fae061553f5c8da3d97a70c35c8e853fe4894fb6fd4ec96
 EBUILD netbeans-javadoc-8.1.ebuild 6247 SHA256 5f0ab01cbea85353ac471a46e341750785f4889732c9da111d77b87bbd1bcc2d SHA512 4a4636f4f58a9baba9d9f5bac4ee7d4f57c0e07d6790902d34974383660f2926c4c4b16a27bacc2a3a7a0a6d5b7699caae90bb2ac513ac8e0535e46d11ec345e WHIRLPOOL 9cbac0234b9f1a8122df116512d5154b7e85561fd9541e0a77dc5c2b5863cf3238400ac17d05499e950705309faa97caace6da00c912ea07d6a74b0076f683ed
 EBUILD netbeans-javadoc-8.2.ebuild 5947 SHA256 1f1c2aab9b63d0e87c93339f5457515573248c09532f2596ad272001605d096a SHA512 d133bfe2588f9a766ef4d5f01f8f0aacd683813ee93815af11f4560b2a7a9d7c48e919d36f002e667aec6ac978f02e07bbaf67a26512b69cd965a8f238b2f60b WHIRLPOOL f5e83670d013e22d4448d70bfdf38ca28adf99b2418446aa3018a59b5fcb75d43ed932659e222e6383e75a56de2340b4f939066631efdfa98ab016e438bcfcd1
@@ -56,4 +57,5 @@ EBUILD netbeans-javadoc-9999_p20161022.ebuild 6011 SHA256 a3d32c8cde610d6e5a071d
 EBUILD netbeans-javadoc-9999_p20161023.ebuild 6011 SHA256 c508c6ff239dd0536b2420cc9e79f02752dce758c39ed12493443c01e5b93f66 SHA512 6f37bc3852d72799a706e4119bf9772d9fbe49fd3bcd7c619695b5a038ea72210bac5768d7ec5e56fc24bf13a8e398d10374208fd21a2a396ff853e9dd055c69 WHIRLPOOL 9ce2792e3c8f00798bb1c67878ee6fbb72f21ae1fb4bec0b211602d6285a1b07868c8db730f77956fdfb771364a57ef791f882b3370a18ce9374a60dc65e5351
 EBUILD netbeans-javadoc-9999_p20161024.ebuild 6011 SHA256 31c57d7e7e056c1e12df8ed837fa1f2e0e34eda9c51257d72d4ba977f066a2e0 SHA512 b43680042e57a282f51bfc5691675efcc1cc878be747a8f35de338638110fb182ffbbcdf9b2447e1932ab3d2359bf39bf2cd0e1250bf06f97ecaf7d0d0343555 WHIRLPOOL 2b931bb3050a62c682441b36d92d06b2414796ee97a88868d8d2044c8ada49b00bdca2d6f26875bb4bcf3ef176aba897f7384c9ebf6ba5c3472d836edab81bdf
 EBUILD netbeans-javadoc-9999_p20161025.ebuild 6011 SHA256 f6ece127fafae4ff351b294c7ebd763f553ab31827dfad981d91e9de1ed9ab7c SHA512 bfe35b70a9191b4c7f92bd8c5fef6c6adc7127c9f61d24b50763724811a79fbdaff012dc19bea2a994c9df2e452b0bccbb4275316fa8e7af717bc8ac8b1cdf2c WHIRLPOOL 513dd21cf28e61366d8fdcafb84ce6ce729be97bdfe7324310408a0faecb190f36c4d348b52c16f300a56cf7585220a4d246f218e73391d122f1bf2dddad5709
+EBUILD netbeans-javadoc-9999_p20161026.ebuild 6011 SHA256 bb7316ead36820cfa34b37372407cf4be7a7c7ac65437899b779b767080ca922 SHA512 a21f3961f1bf90335d49c407cb9dcae188490d1596a43873b66d85f86ff5c2ec4f99ac22dae9d7327b601c85427752d889945816ef8a966f9f868028686b4c3c WHIRLPOOL 9afa867598733cee2621944a90be5f4c5b56213c6be3fa9bf476df99b53ad96cf042d1ad2179fb24285b4b514442f9e424b98c9d1d7b9315fad85ddbf00c585b
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-javadoc/netbeans-javadoc-9999_p20161026.ebuild b/dev-java/netbeans-javadoc/netbeans-javadoc-9999_p20161026.ebuild
new file mode 100644
index 0000000..15581d9
--- /dev/null
+++ b/dev-java/netbeans-javadoc/netbeans-javadoc-9999_p20161026.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans JavaDocs"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/7B38E2908FFD70F2AB580D21A9E688A78C6365E7-ant-libs-1.10.0alpha.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+# oracle-jdk-bin is needed because of javafx which is not currently packaged separately
+DEPEND="dev-java/oracle-jdk-bin:1.8[javafx]
+	app-arch/unzip
+	dev-java/javahelp:0
+	dev-java/junit:4
+	~dev-java/netbeans-apisupport-${PV}
+	~dev-java/netbeans-cnd-${PV}
+	~dev-java/netbeans-dlight-${PV}
+	~dev-java/netbeans-enterprise-${PV}
+	~dev-java/netbeans-ergonomics-${PV}
+	~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-groovy-${PV}
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-javacard-${PV}
+	~dev-java/netbeans-mobility-${PV}
+	~dev-java/netbeans-nb-${PV}
+	~dev-java/netbeans-php-${PV}
+	~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-profiler-${PV}
+	~dev-java/netbeans-websvccommon-${PV}"
+RDEPEND=""
+
+JAVA_PKG_BSFIX="off"
+JAVA_PKG_WANT_BUILD_VM="oracle-jdk-bin-1.8"
+JAVA_PKG_WANT_SOURCE="1.7"
+JAVA_PKG_WANT_TARGET="1.7"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/7B38E2908FFD70F2AB580D21A9E688A78C6365E7-ant-libs-1.10.0alpha.zip o.apache.tools.ant.module/external/ant-libs-1.10.0alpha.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.12.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
+	cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.apisupport.built
+
+	ln -s /usr/share/netbeans-cnd-${SLOT} cnd || die
+	cat /usr/share/netbeans-cnd-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.cnd.built
+
+	ln -s /usr/share/netbeans-dlight-${SLOT} dlight || die
+	cat /usr/share/netbeans-dlight-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.dlight.built
+
+	ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
+	cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.enterprise.built
+
+	ln -s /usr/share/netbeans-ergonomics-${SLOT} ergonomics || die
+	cat /usr/share/netbeans-ergonomics-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ergonomics.built
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-groovy-${SLOT} groovy || die
+	cat /usr/share/netbeans-groovy-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.groovy.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-javacard-${SLOT} javacard || die
+	cat /usr/share/netbeans-javacard-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.javacard.built
+
+	ln -s /usr/share/netbeans-mobility-${SLOT} mobility || die
+	cat /usr/share/netbeans-mobility-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.mobility.built
+
+	ln -s /usr/share/netbeans-nb-${SLOT}/nb nb || die
+	cat /usr/share/netbeans-nb-${SLOT}/nb/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.nb.built
+
+	ln -s /usr/share/netbeans-php-${SLOT} php || die
+	cat /usr/share/netbeans-php-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.php.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-profiler-${SLOT} profiler || die
+	cat /usr/share/netbeans-profiler-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.profiler.built
+
+	ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
+	cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.websvccommon.built
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_compile() {
+	eant -Dpermit.jdk8.builds=true -f nbbuild/build.xml bootstrap || die
+	ANT_OPTS="-Xmx1536m" eant -Dpermit.jdk8.builds=true -f nbbuild/javadoctools/build.xml build-javadoc
+}
+
+src_install() {
+	rm nbbuild/build/javadoc/*.zip
+	java-pkg_dojavadoc nbbuild/build/javadoc
+}

diff --git a/dev-java/netbeans-javafx/Manifest b/dev-java/netbeans-javafx/Manifest
index 7ff2fec..41c7369 100644
--- a/dev-java/netbeans-javafx/Manifest
+++ b/dev-java/netbeans-javafx/Manifest
@@ -37,6 +37,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-javafx-8.0.2.ebuild 4647 SHA256 15e5e0b1c4729852dd55e5bfb2dcb520ba7c959bd9927d315c0abcb3f94e4ecc SHA512 520c60264fee67b0ccfd50ced0cc8586d5653d5186fa75c6b7cd8b400aae834de446b7e6145ad38df7e68207391fb360ef4834140e096d48add568fed387ac98 WHIRLPOOL 416a56ceb2ba85e3923ada0c8ef485cdd6fa16b3423b8fd0de523fa54dd082cbaedee5da4f1a92b50e440195f9256376f50e99a850d70ccdcb8c0ff370007f7c
 EBUILD netbeans-javafx-8.1.ebuild 4671 SHA256 2a12bebaca0ddbb03b84c33de7f5933f76a8381db3c40013fc4014687ded6cd4 SHA512 ff410f96e808c414e3e9485461866239080098e46e843ee771a78a0afffddc1c776697dccb276daf7f87dadf915a212bfe9c2a07b3a8a9057cb3ea19b77163fb WHIRLPOOL 51729142255a16d4cd949d4bf5f3b681d36bc83f30dad39aad9d1dd56f7dcec0dae4377817350e7947d518129a74eec7f227c3cb1600ac168ea90d056b87d195
 EBUILD netbeans-javafx-8.2.ebuild 4392 SHA256 8f8d1cb51f4071d00fd550a3cbcf48df0e1f3ccc8906bb43d7c384adf3ac2764 SHA512 4b4f347d25f758fb8c3f9ece13f831ca2365e510b895f6cf71b8063213a8db6cbc83f4cc4c3173e3778a536e425e969e7810df79ceaa453ea57b502d5080b239 WHIRLPOOL 73f50442c2d03473d0e3075c6c90f6dde8900faea51ed19974445db7a6a2abba6f525511ddc58d9da03e011e851e5a58539b73fe6e1c5b408b3d000318ce5630
@@ -62,4 +63,5 @@ EBUILD netbeans-javafx-9999_p20161022.ebuild 4438 SHA256 a3e233f5033b9236f3f442c
 EBUILD netbeans-javafx-9999_p20161023.ebuild 4438 SHA256 2b754cd4bd61cc30d6c506270aa41d8b6698eb0340e55fa9fafa84018b782d8b SHA512 3d5e9f88abb31e6d5d3523410cfaa5d4b17f9e150b18df98e8bb57e951370b6fe2f28e03e5859f007ca8612121a06148952b46e00114eb1b1ab8467de3a00dd6 WHIRLPOOL 62a1292016352a7739b4ac84e749c08eab0d63bb6990ea583591b2e3eea495e34b235dab12d22342426437dee5d5fb336b2af55e82a5aee8601855781e356bee
 EBUILD netbeans-javafx-9999_p20161024.ebuild 4438 SHA256 d9909888f9ddca924fa7f3a394c3e5d9679d9e850e88f04563040c423c54c91d SHA512 d383f8b9a25865eadffe7ca981e8620813584b1efd91f61376ff4224f3d79561a031670bef88f37cccfcb7b3ecc4ceda8df98b485b129607b4812b3bb0a65b57 WHIRLPOOL 5d3a1f0df4f2a2babdd2d7f006ad8815d3fd6a04ab4b9b718a028c44b2d0a0114cd9612f3546eaa12899ee0716d888e2b7fcc80725f4b96e48b87b595f3cad10
 EBUILD netbeans-javafx-9999_p20161025.ebuild 4438 SHA256 4c5b5f99dd2106b00386514ea3f58527a1c74789747933541faf267efd6dabcf SHA512 aed2fa41cc295ce492a64895e62d6533620f8fa68eb60f502cb6716ef8f18123f44011a040fd16dc5d9c54adfcdd612087972563f451f7d73da3abac9a4bb14e WHIRLPOOL c60f3ff0660ab1be141659f4eb89c7be9b6816a67a5eebcf543a89247f75f3dca9bc4bb93e9ced54d311322b772f00723fbc05f6cc385debaef3b7211aa1bdae
+EBUILD netbeans-javafx-9999_p20161026.ebuild 4438 SHA256 c935c6c66f3be442068398278f5d94ba905bb579b667075516f907846cea36ab SHA512 a09bdaf432e905b402f469bdc96fe0d8cbdb71d950ba01e3ab84a107a84f9b743e6086dcde68eaaad1103f24cc6c11379feb1bf365b34432557ef33820964927 WHIRLPOOL c378d9956f12939d880e3cc300584283965839434af332adbeb72f27879ed5b47bf12af080500a4ec8c9a3f63061376db81aef11216a01935ed308ad5c36d616
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-javafx/netbeans-javafx-9999_p20161026.ebuild b/dev-java/netbeans-javafx/netbeans-javafx-9999_p20161026.ebuild
new file mode 100644
index 0000000..368fff5
--- /dev/null
+++ b/dev-java/netbeans-javafx/netbeans-javafx-9999_p20161026.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans JavaFX Cluster"
+HOMEPAGE="http://netbeans.org/projects/javafx"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar
+	http://hg.netbeans.org/binaries/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar
+	http://hg.netbeans.org/binaries/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip
+	http://hg.netbeans.org/binaries/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip
+	http://hg.netbeans.org/binaries/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar
+	http://hg.netbeans.org/binaries/3BB258C976F65C78D890CACB5C0D3096B793289E-nb-javac-api.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0
+	dev-java/junit:4"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.javafx -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar apisupport.harness/external/bindex-2.2.jar || die
+	ln -s "${DISTDIR}"/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar apisupport.harness/external/jnlp-servlet.jar || die
+	ln -s "${DISTDIR}"/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar jemmy/external/jemmy-2.3.1.1.jar || die
+	ln -s "${DISTDIR}"/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip jemmy/external/jemmy-2.3.1.1-doc.zip || die
+	ln -s "${DISTDIR}"/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip jemmy/external/jemmy-2.3.1.1-src.zip || die
+	ln -s "${DISTDIR}"/3BB258C976F65C78D890CACB5C0D3096B793289E-nb-javac-api.jar libs.javacapi/external/nb-javac-api.jar || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into apisupport.harness/external javahelp jsearch.jar jsearch-2.0_05.jar
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.12.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/javafx >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/javafx$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/javafx
+}

diff --git a/dev-java/netbeans-mobility/Manifest b/dev-java/netbeans-mobility/Manifest
index c14c96c..366cfb3 100644
--- a/dev-java/netbeans-mobility/Manifest
+++ b/dev-java/netbeans-mobility/Manifest
@@ -28,6 +28,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-mobility-8.0.2.ebuild 4342 SHA256 e9b4ff8fe38904346bc21a82219696e97322bf9df4e9d4cad2259b6f08bbe7f9 SHA512 338711fe61c469cee80e499ddf8c3ad70a3a38e6658311afcd1d24edd1a99b87566fafcbd392bb958b589796e0913d2574b07570870c8d3382a91a324227082f WHIRLPOOL 855b2817c36bea67c8fb368a0740be18b71dbebb2b98a154552f002a56eaff34f54eee2698379d7200a6042c1de699df23e7717b5b6c532776852d8757b74cb0
 EBUILD netbeans-mobility-8.1.ebuild 4366 SHA256 fe10d103a284b8f82b67179ea52d51d57b43cfc4a4084b97e3f9650526621497 SHA512 36bdf0948b41bfe4f9c66fe093030d5f27b90f5a89be94dfbd176e3887b249d5aa3eb9b0924df142291f0d693f274eef840ed3a7f658106847327befd0374710 WHIRLPOOL f9dd44e6401367b2df73c5f1428bff53547ac012068297667666d0241c29310aed4413a368e5350a996af37ad026e875325467b1a165cba6953d99a5da3a0d76
 EBUILD netbeans-mobility-8.2.ebuild 4087 SHA256 38f5fef1c2f2ff5030842622999f12ca02d8978eea528a38a6bb3c0705e46344 SHA512 2b6c00f2f2003b336e25f6c4a524be1835c2565302ed43f3eade9cfb251d368eb94ad5fed01578561684e8a1ed37f3368c78b0b9d00ea6c794abf200f007525d WHIRLPOOL b990976000d451d23144bbf1378365ad019252601e261558750fe38821abbf293fb40ccd5a966890a688162aa05bb34fe69b78519fa2b09fef0a539a482bd5dd
@@ -53,4 +54,5 @@ EBUILD netbeans-mobility-9999_p20161022.ebuild 4133 SHA256 38c0f390ce5420be77db4
 EBUILD netbeans-mobility-9999_p20161023.ebuild 4133 SHA256 a0f356217e49ff302dd605b56991136326996e1a5e5f11fe11c340b2cb52e932 SHA512 cf7779f0759ba2c5e3081da4da024b044d093f190f3dd8df2fd61b7c0624435a67f8166132560b6e3c9cf8be21ab677dabc6ae8bb85c0cd698b497c0ae656dc1 WHIRLPOOL dd941033925f9c13f49b9d0ca6004d4560fc47aed06e10e5197881ef2059ec8d9fb9c349ccddcd5bd806e1cc5e33f133e44bb36c7250d1fd75267d962b61555b
 EBUILD netbeans-mobility-9999_p20161024.ebuild 4133 SHA256 5c201eabc471f29551bbd1835d5ea223aed86ed8680d2d5bbb3bba908cbcba6b SHA512 196b2c4e2c7761bf3f5b702ccc3a903d721129e8348cee96f3b800c1bee3d2e368ec7a24aad7642fa52abebec46ec67355a489886f023a538ca0b829ea70604c WHIRLPOOL fb75c76071d05eb54c322d10e6250d06e7fc11d97f7aeb0852372f692e4a070f0ed419b26084757ac44862d5b67e6915475fa2b7d788a666a402439f235b33f0
 EBUILD netbeans-mobility-9999_p20161025.ebuild 4133 SHA256 a3161c4e29f9ed2819510b57d22066c037f86d6290cd7d676af52cfc9365054b SHA512 f5138241ee3812a5947b9863448c0843ebb91d786c2e9987fef323595cfa4c532ac1e585e15c3f80fa972fec770c67491f88afd8e11b83b7fdb35d7e653868e0 WHIRLPOOL a7df1a497e29837ef67946d31b115f258cd314dec0a130b60653c0c538c981e0ae92a75f9602bc4ec52402cc92290f9ca8b21b777fbe7633eebc4d5b88dbc1b3
+EBUILD netbeans-mobility-9999_p20161026.ebuild 4133 SHA256 4d8fe1da11206efe49ff03acce6e2dce5e1bf977e2baf91fd17000f0af4ad79b SHA512 4c469734ba036f4b4a46c7dbc1bc340046a15aeb073bfbdb78094ae3fee235ade1e70e3eb229b3a0a1fa246c88cc2e830f2ab9469dc9e7f44494e2896d6846ea WHIRLPOOL 9d13a7a9398c16d5f7dc9e662b7c269554171fa59bcaa375fb5a66591d5e4084998817abc8af06077694efa15ad034352ee0ce339d82968e10b1ff7279e1df02
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-mobility/netbeans-mobility-9999_p20161026.ebuild b/dev-java/netbeans-mobility/netbeans-mobility-9999_p20161026.ebuild
new file mode 100644
index 0000000..b740c91
--- /dev/null
+++ b/dev-java/netbeans-mobility/netbeans-mobility-9999_p20161026.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Mobility Cluster"
+HOMEPAGE="http://netbeans.org/features/platform/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-apisupport-${PV}
+	~dev-java/netbeans-enterprise-${PV}
+	~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-websvccommon-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.mobility -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f | grep -vE "mobility.databindingme/lib/netbeans_databindingme.*\.jar" \
+		| grep -v "vmd.components.midp/netbeans_midp_components_basic/dist/netbeans_midp_components_basic.jar" \
+		| grep -v "vmd.components.midp.pda/netbeans_midp_components_pda/dist/netbeans_midp_components_pda.jar" \
+		| grep -v "vmd.components.midp.wma/netbeans_midp_components_wma/dist/netbeans_midp_components_wma.jar" \
+		| grep -v "vmd.components.svg/nb_svg_midp_components/dist/nb_svg_midp_components.jar" | xargs rm
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
+	cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.apisupport.built
+
+	ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
+	cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.enterprise.built
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
+	cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.websvccommon.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/mobility >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/mobility$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+	rm -rf "${D}"/${INSTALL_DIR}/modules/lib || die
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/mobility
+}

diff --git a/dev-java/netbeans-nb/Manifest b/dev-java/netbeans-nb/Manifest
index 77c64ac..ea35382 100644
--- a/dev-java/netbeans-nb/Manifest
+++ b/dev-java/netbeans-nb/Manifest
@@ -31,6 +31,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-nb-8.0.2.ebuild 4927 SHA256 7531e50c4d76608bf925efdba4f54f522de3a8ceeef4d48807fb4ee48bfabdf6 SHA512 925734f331cf228066c5c9e614f48b756af31cac8b559cfe756347b6a2cb0ce362c7c41489a25084f2ed3f2e415baefd148a54f39fc00269fb14179efe056cb9 WHIRLPOOL e3224c5f22bb8e4792a5f98bbe819e071ff18c99533ce05a3fc1c5898ddcca1e3ce34487ba78159bb4d60155acdf15ae4fe81189ff2d5b1bc77ffd9ee4e20aca
 EBUILD netbeans-nb-8.1.ebuild 4065 SHA256 c1bfd704ecaa1fd62b149114b7391b4633a90a8a1d87645b833731920aa6efbb SHA512 56bda99c3d05522d5becb032177e4b4411d862d18a069e2d4343ddc8b08d05ed6c3199588e28aece7e583ccc9f95517621780a246bdd65c7d3edf072a61ef1cb WHIRLPOOL b9a43e6b4ada929bcf2aaed0bffe9cdfe0b9dbbf001e8ee4f2ab3cf8a08e27d318ea435d0580c80fd23cf921d261ca9b54d54a2b2e7a53173f955bde03aa0a12
 EBUILD netbeans-nb-8.2.ebuild 3786 SHA256 52734d6772f8851119fd367429d69e4b2a1396cdaf0145cf5969a2532ecd2ec9 SHA512 52494c0b0b6988461d0ae2b730f2dce5a4ba7477851f3076637c4d4bba01525efa2ccd869db7f59827c201f47cdd933c25430fd441282bc6be41991f26af8370 WHIRLPOOL ca58b3abfe895c4c68b8b2bb60388924181fd9f44832281ec43d5561c36936ec13f189046bd9e6e12d17c80199a7692758ceabd903e839fd57c6776e3da21898
@@ -56,4 +57,5 @@ EBUILD netbeans-nb-9999_p20161022.ebuild 3832 SHA256 8fd0cdbefb9bfc82c124bbdd4d0
 EBUILD netbeans-nb-9999_p20161023.ebuild 3832 SHA256 7b208b78b728309c7fab63c322a748d3d0c6adf0567c9e77dd4ec1b084c122d2 SHA512 a93d9b37f7ce75a96de3ff71b004dcd70d8e4ae50d7108ccd6eaa68ad1daa67326a676c50d179f9fedf82354940dcd9a92cdaf05e958a018aa44276b52b153f0 WHIRLPOOL 49939eddf9d4d17cd8b1e748c87272dd6e9913f5bda8756f78998bde197adec5eb672162b5047d2a49096c87f662379615eb0a4430337d0770e8538e026ee33f
 EBUILD netbeans-nb-9999_p20161024.ebuild 3832 SHA256 640fe74c2e5815f7241f7bc002141e7342bb66886d736d1679c9f103000ac6d2 SHA512 3f5e9d5d18f77e906e7a08d026acc92a8add035947e7f450b645fc584cf817cb6e9ad40d41a1c42246942c1e4f67be4c96b9179a81cbaaeef15e17f303d07532 WHIRLPOOL e2771d4222308f0cea60f6e2c9cc18b0ffcf9c5c8f6f3abfc555409c0db06808c029e4be5509f0fb582153cf4621a94ea14a8cbba6a6477c9a50c6956729f05f
 EBUILD netbeans-nb-9999_p20161025.ebuild 3832 SHA256 c11539ce295a90f3f00514fbb2fde04d8966bddd882b31a838e204f5b7b43849 SHA512 83193faff77fb098f17cd5f5482286720abd9888379f9b5568dbd1f737568cad356473f959a9037a78333dcf3a443829ec5464ad2c6890ac14307976e70e369a WHIRLPOOL 82afc8014673cf117c5f7a7949069be6d73ba2c1c777c51cad2f4c85d91f07326493e6cd2ea762a597f6e034973d8638cac28148256cbf1adab2477968268af1
+EBUILD netbeans-nb-9999_p20161026.ebuild 3832 SHA256 3898ee7e103d09849d0d695d8f9c8744e1b09892beb25f366ebe4ec386a43fae SHA512 cbb233c4b43fe8ddce776926dc0cd543edcd73d887a427f0e1a4b04dac24cf3c17f553631d46f1f07f53da5430f86c90c8347f682ac0457c61b6ff75402a7678 WHIRLPOOL 7055d52e3ab894d356660a3675bc54c2105320642d8baa45112fc20f2b9f514e6ea2ae23bfd7023709c6ee7572806a186abf4a5049edaacffea4209e2be77908
 MISC metadata.xml 392 SHA256 01cdbcc83099b97486bd7b8e813e5b19c1138eb0d8d3e8a5683aafd579820435 SHA512 4d2f9160baa022d6a48b61d5f42e71cfd411d244e7a36436629bc5ee4036e4ce19079134d9a6c704ebe942306c2e0199d0591c1e54f92f8f3c8835147e639246 WHIRLPOOL c1131764e1cec66c56b977ebe36014b29e5a68e35ccc326c0cbadd050a6c625cf191c85c212e0a733661c008dab0d99f9a4cdc4c4ae0cc9d775ba1de554795a9

diff --git a/dev-java/netbeans-nb/netbeans-nb-9999_p20161026.ebuild b/dev-java/netbeans-nb/netbeans-nb-9999_p20161026.ebuild
new file mode 100644
index 0000000..6696da0
--- /dev/null
+++ b/dev-java/netbeans-nb/netbeans-nb-9999_p20161026.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans IDE Branding"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.0.png"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster create-netbeans-import finish-build"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.nb -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-harness-${SLOT} harness || die
+	cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.harness.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans >/dev/null || die
+
+	insinto ${INSTALL_DIR}/nb
+
+	grep -E "/nb$" moduleCluster.properties > "${D}"/${INSTALL_DIR}/nb/moduleCluster.properties || die
+
+	insinto ${INSTALL_DIR}
+	doins -r nb
+	dodoc *.txt
+	dohtml *.html *.css
+
+	insinto ${INSTALL_DIR}/bin
+	doins bin/netbeans
+	dosym ${INSTALL_DIR}/bin/netbeans /usr/bin/netbeans-${SLOT}
+	fperms 755 ${INSTALL_DIR}/bin/netbeans
+
+	insinto /etc/netbeans-${SLOT}
+	doins etc/*
+	dosym /etc/netbeans-${SLOT} ${INSTALL_DIR}/etc
+
+	# fix paths per bug# 163483
+	if [[ -e "${D}"/${INSTALL_DIR}/bin/netbeans ]]; then
+		sed -i -e "s:\"\$progdir\"/../etc/:/etc/netbeans-${SLOT}/:" "${D}"/${INSTALL_DIR}/bin/netbeans
+		sed -i -e "s:\"\${userdir}\"/etc/:/etc/netbeans-${SLOT}/:" "${D}"/${INSTALL_DIR}/bin/netbeans
+	fi
+
+	dodir /usr/share/icons/hicolor/32x32/apps
+	dosym ${INSTALL_DIR}/nb/netbeans.png /usr/share/icons/hicolor/32x32/apps/netbeans-${SLOT}.png
+	dodir /usr/share/icons/hicolor/128x128/apps
+	cp "${DISTDIR}"/netbeans-7.0.png "${D}"/usr/share/icons/hicolor/128x128/apps/netbeans-${SLOT}.png || die
+	dosym /usr/share/icons/hicolor/128x128/apps/netbeans-${SLOT}.png /usr/share/pixmaps/netbeans-${SLOT}.png
+
+	popd >/dev/null || die
+
+	make_desktop_entry netbeans-${SLOT} "Netbeans ${PV}" netbeans-${SLOT} Development
+
+	mkdir -p  "${D}"/${INSTALL_DIR}/nb/config || die
+	echo "NBGNT" > "${D}"/${INSTALL_DIR}/nb/config/productid || die
+}

diff --git a/dev-java/netbeans-php/Manifest b/dev-java/netbeans-php/Manifest
index 592cddb..5ee7cc4 100644
--- a/dev-java/netbeans-php/Manifest
+++ b/dev-java/netbeans-php/Manifest
@@ -33,6 +33,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-php-8.0.2.ebuild 4347 SHA256 585b2488d748f3d0f87c17c951870e167aac7bf10847428add786e4a8a446583 SHA512 1431305d4f340cb0a2c7c896c54d45f6f02ef82a4201f82053278b98511a5a4a68210317530e9cdf5cf1f495996d3a3f9c4b2c3c479aa407abd375072ab3182f WHIRLPOOL af8476f2ff2d119f2657e6be03cfea1160f86e41bd791f40609f1bc8a8aada46ba1081e4f2417b0fddde931fa4e43d20956c0fe1d4fdf3617b78d01afd23f9b4
 EBUILD netbeans-php-8.1.ebuild 4371 SHA256 a9e7565a8cbcc5dfca4d9449f43b959911c47ad8da59648e383ecce55c4b0064 SHA512 67d43532ea43abf007adce73e7da2345d9cc42229189ba90d254d7764e19e3fd3c86b990ea2fe08cf52e49422def481046fe6e0e447fdc1de1680ac59f51d9d3 WHIRLPOOL 433275570fd81db477180e58909ebd50b83cde03bd5df807cc9ee213e2f3a44f65f3ec4877851aa6322e7752969aa72313ee7b35b8ee07446e8c22be4321d536
 EBUILD netbeans-php-8.2.ebuild 4093 SHA256 849571671ca312e7c0f800927c355cc43497e2c1f0608ca59fc24a6e1c27700a SHA512 ce37abd91c8bed53c0ec17a71491c1ae734e973f1d537e8163e1ad49ef4ef7b7e26b9a5c8d58d9b43875f8d265e05664b9029841797e2207c9d8ff95467a573e WHIRLPOOL 3f1207f96c384836bd834ccc5287954b8767d8569cb1e0184d48da740de4c241d182d8016e53c6133f9c23788bdc168d4ce601141e88488329b299ce23e64e39
@@ -58,4 +59,5 @@ EBUILD netbeans-php-9999_p20161022.ebuild 4139 SHA256 656631f809d6124b0a1e05b0ce
 EBUILD netbeans-php-9999_p20161023.ebuild 4139 SHA256 bf80283dfb8a60b2f6ebb477bc01877ef2cd41f22462c939dd7a063c82e2555d SHA512 23d949476528688cb0a9583e72b08dc4226b29c3b5ed5992dd7b5b7099372b67467544c94eed238030c7dd72cf3c43eae13d0b6f6548b8934c1574972f53e794 WHIRLPOOL cf4972b399cd3c4ae401b972c9bf2c9b8072f170fae96c0aa52454e930c97fb1231fbb353f2740a3ed41b786817da314639260cb1307cbd651f9d4d781c9c61d
 EBUILD netbeans-php-9999_p20161024.ebuild 4139 SHA256 9abb26815a8b9c7b64cbe3ae0537c474cfdfac9ba28d56925225d5fdca5904f1 SHA512 22fdc20c0e48f64a191cba299fcd0499e2eacc8aed19fb8c45185cb304533a4039451306c23b0ac35dd11fa536218e9e42ccd0286ef55c05654862ac9de9472c WHIRLPOOL 5cde51f090c8ad0af5b7467b06dcf47360d57118ab66dac9bf457c46b5f0e930f8829fe55c6eae54ca0fead8a2405b07fc1b30ad4658777770a7d07b4e66bcb6
 EBUILD netbeans-php-9999_p20161025.ebuild 4139 SHA256 d24473837e51cc234337cafa722b59991a7a943aaad78ad127d92f4108d3b158 SHA512 64cbe875d484652a90e1e82e15f46c36e8997b86a5de0c8ce3a8761ce7f8f1819e7dc15647b19be1746e4f86c759f9810144c16d168e233c0eac115914a74e0d WHIRLPOOL 9026a5f9915d4a7d48c4feb7aa46a149af67680db987a13888dcf7fa12e13e0cd290867b2ae397fe4b0834e65d4553ffe6f210109da0656ea5234e64d04aae40
+EBUILD netbeans-php-9999_p20161026.ebuild 4139 SHA256 ea48a791808d76c4b72c0026ce8c4f9fbd550d4f7abc6496d78ebf152caf0054 SHA512 dc18a5b361e4660e3fe67d21610fa68c10d0a8f0747881624a5442d2de02a21dd284cceb01160cb4b664515ba2a27efffc09038139825de3b9769700a793a0a7 WHIRLPOOL 624223c58b81ea4cbbe4adbb994eab9673b6db8915c80e11ad97f0423bb881d10d814dc5c8d690c2068de870343bfdd2dd891340deff02630c2f64117945b52d
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-php/netbeans-php-9999_p20161026.ebuild b/dev-java/netbeans-php/netbeans-php-9999_p20161026.ebuild
new file mode 100644
index 0000000..1355b35
--- /dev/null
+++ b/dev-java/netbeans-php/netbeans-php-9999_p20161026.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans PHP Cluster"
+HOMEPAGE="http://netbeans.org/projects/php"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/0702230EB3354A1687E4496D73A94F33A1E343BD-phpdocdesc.zip
+	http://hg.netbeans.org/binaries/472A52636BE09823B4E5F707071B31FB990A7375-phpsigfiles.zip
+	http://hg.netbeans.org/binaries/3D6AF75EA20D715887DAF47A3F063864EF0814C1-predefined_vars.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-webcommon-${PV}
+	~dev-java/netbeans-websvccommon-${PV}
+	dev-java/javacup:0"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.php -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/0702230EB3354A1687E4496D73A94F33A1E343BD-phpdocdesc.zip php.phpdoc.documentation/external/phpdocdesc.zip || die
+	ln -s "${DISTDIR}"/472A52636BE09823B4E5F707071B31FB990A7375-phpsigfiles.zip php.project/external/phpsigfiles.zip || die
+	ln -s "${DISTDIR}"/3D6AF75EA20D715887DAF47A3F063864EF0814C1-predefined_vars.zip php.editor/external/predefined_vars.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --into libs.javacup/external javacup javacup.jar java-cup-11a.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-webcommon-${SLOT} webcommon || die
+	cat /usr/share/netbeans-webcommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.webcommon.built
+
+	ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
+	cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.websvccommon.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/php >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/php$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	popd >/dev/null || die
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext
+	pushd "${instdir}" >/dev/null || die
+	rm java-cup-11a.jar && java-pkg_jar-from --into "${instdir}" javacup javacup.jar java-cup-11a.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/php
+}

diff --git a/dev-java/netbeans-platform/Manifest b/dev-java/netbeans-platform/Manifest
index 2314223..b1448c9 100644
--- a/dev-java/netbeans-platform/Manifest
+++ b/dev-java/netbeans-platform/Manifest
@@ -54,6 +54,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-platform-8.0.2.ebuild 5406 SHA256 98e9861da45ead0d2d975a0527315df5282870b2d7e71a089724d91c18852e81 SHA512 cadbe66132d3ad81f6d149e20731b558c11c529e2ec15b1fe47ff97d99a3f4b4612fa5c98c435c4ff979eaefab6702721db009a03162202c96b4b411cf9f872a WHIRLPOOL 9552948e8bbad308f4379eaae69d8c214da9fbfab87d75226949b69ddca3e68c2d36c4d05738196073e5b959ab0b764064c9186d421198937122aa4bdc4988dc
 EBUILD netbeans-platform-8.1.ebuild 9320 SHA256 4a03fc6a399aaab949edb3df7c629da5bc7ce6288d44dbc848097352c2b4ae3a SHA512 7015cb042dd4e371cdcad49838eb2e4109d1ec505ac618f3a6f98d4dce328ab34be90a3cb0820896bd75337a180a1bd9c91c842a143fdffdf033696d5f496402 WHIRLPOOL 8c5311df396a374bf9d8c994b37c5c9fe6aa3c82a9e9e0824a5caefb0006fd9b44f4fdddd387ee12da48592929d5c4dd7e7fb2d866c9ddaf76acf5b3adbe310e
 EBUILD netbeans-platform-8.2.ebuild 9195 SHA256 6d0332d7983992e46c28840c56a9e2d2fd3fe7cde121f7b3b0fd861c2c2fe87b SHA512 3b62b7a2c35d6a4f124e17724a60145a673464d406d93925de616db07413d585b69a8dc6725c6c3e3ecb0f5ef89a9153c7d527b0d9e9c2922488f73f65123ae0 WHIRLPOOL dc00da4b290ae6148e7cd1636703207903688fc4f5a9d3593ed904aabf327358cac670b739e68ebf4514edf6d4d9ae5079082b84d3c11aafdbd586d5c15bc8d6
@@ -79,4 +80,5 @@ EBUILD netbeans-platform-9999_p20161022.ebuild 9278 SHA256 8b13b5fc1d11f3c8d887d
 EBUILD netbeans-platform-9999_p20161023.ebuild 9278 SHA256 aec9ced064a25dab9bcbc8a5b7c0824b62c39f08366fdb7865ff6f78ff163211 SHA512 1f02d18a3add6fdbba599f3159a6335b85d84b8da273d5d78154be81e0358f8c7c1997fc6560c8a80b12e81f8b79920a8d38d0a376ba5c033e3af1430dd49c57 WHIRLPOOL 4688cfb1a22d0e630c1bbaf6effdb06c18d06b0909197e586a21ade31b0dee965d01c7ea3e14e8da4d38bb16e3b3b996d8f99e745625456d1c29e3e354b3f264
 EBUILD netbeans-platform-9999_p20161024.ebuild 9278 SHA256 3294d15945ad530d1925122b8d263f9b0bdf039582c3cbf54b57eec6d539b8ef SHA512 94fb2c684999934fc238631845b9e9a1749921afc1fc2efc2b84384f394f436e1e0f2a43b0774f3cc78b67f9704fa6da5a482a466cc18e6389d7687b796e7dff WHIRLPOOL 76a1ce2b4659b3c71b1152c86177ca015b1beea68b55300c688ac9b80a38ea6301fa023ad4aa17a37864af5abb66381ae36a4b2ee3937482664bfdb3f17c77d9
 EBUILD netbeans-platform-9999_p20161025.ebuild 9278 SHA256 d0bc5da9bf7bbdd994dcb90ed17798e6ced5257e9e4a09e598c85c149ad8c35b SHA512 dfa532ad016d4d3e05c6b10eff0d0213b0a6747b51edea98b82490aafcb1bd0a32b98d4b87ae42360be52a7e02af0504dd6d7279c808a3c48f88cb91bf7357b2 WHIRLPOOL b796ff8d110cd35c43d3ea1c4475564927de40fc867b8930393392d350baebee4af7e59670614327808beb9ad1a67dc7a49a8755876b6fd18d97aa2ab2ea453d
+EBUILD netbeans-platform-9999_p20161026.ebuild 9278 SHA256 e2552b1d252269a814c3ff67dd9c0408687733cc44c05c3713c1a6c917b006fd SHA512 03eb879a95f74fe5c70a8a8a51a9e0f0eccdb5721175c5e93ae1e2807296f7a057ba962bb08517e6abe5c766b0b4cc20a108fbb0170d433fcb5e06edb4009a2b WHIRLPOOL cebe2f45e3fd94b2ce82858cdbbe93b4fe552831dee797e1e3fff2afeec9cd16bbd6f4f301ddb16aef14f1d44993157b4cb4a0e255a92ca97097dc008860c79d
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-platform/netbeans-platform-9999_p20161026.ebuild b/dev-java/netbeans-platform/netbeans-platform-9999_p20161026.ebuild
new file mode 100644
index 0000000..9e5fa24
--- /dev/null
+++ b/dev-java/netbeans-platform/netbeans-platform-9999_p20161026.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Platform"
+HOMEPAGE="http://netbeans.org/features/platform/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/2F7553F50B0D14ED811B849C282DA8C1FFC32AAE-asm-all-5.0.1.jar
+	http://hg.netbeans.org/binaries/1BA97A9FFD4A1DFF3E75B76CD3AE3D0EFF8493B7-felix-4.2.1.jar
+	http://hg.netbeans.org/binaries/941A8BE4506C65F0A9001C08812FB7DA1E505E21-junit-4.12-javadoc.jar
+	http://hg.netbeans.org/binaries/771CDCA0A3F2F3CE818E20CC2D707A3592422485-ko4j-1.3.jar
+	http://hg.netbeans.org/binaries/A3085BAA78C8EE7F55081E70C79ABE04CA38CE93-net.java.html-1.3.jar
+	http://hg.netbeans.org/binaries/7FC91530F4395FA0D58F9539F3B40858E766BFA3-net.java.html.boot-1.3.jar
+	http://hg.netbeans.org/binaries/5C992BAEC0111EE293BD44173140A9D8EC860765-net.java.html.boot.fx-1.3.jar
+	http://hg.netbeans.org/binaries/BF6C9BB0FFB78A6B846ECAEB880C460D883B4F72-net.java.html.boot.script-1.3.jar
+	http://hg.netbeans.org/binaries/10E4214A89082C70FCF9F721953001C0932037BA-net.java.html.geo-1.3.jar
+	http://hg.netbeans.org/binaries/D97314CE1869DD3B8B8942256A70673E2991C9DD-net.java.html.json-1.3.jar
+	http://hg.netbeans.org/binaries/6BDCE8349F83CD02F2942D4FBFA86A81A129F42A-net.java.html.sound-1.3.jar
+	http://hg.netbeans.org/binaries/E5DDC5E827D3D62E7BE9F7E32927CA01F2839971-org.eclipse.osgi_3.9.1.v20140110-1610.jar
+	http://hg.netbeans.org/binaries/1C7FE319052EF49126CF07D0DB6953CB7007229E-swing-layout-1.0.4-doc.zip
+	http://hg.netbeans.org/binaries/AF022CBCACD8CBFCF946816441D1E7568D817745-testng-6.8.1-javadoc.zip
+	http://hg.netbeans.org/binaries/CEC2829EC391CB404AD32EB2D08F879C418B745B-xhr4j-1.3.jar"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+# oracle-jdk-bin is needed for now because of javafx which is not packaged separately yet
+# [parseprojectxml] Distilling /var/tmp/portage/dev-java/netbeans-platform-9999_p20151108/work/nbbuild/build/public-package-jars/org-netbeans-libs-javafx.jar from [/var/tmp/portage/dev-java/netbeans-platform-9999_p20151108/work/nbbuild/netbeans/platform/modules/org-netbeans-libs-javafx.jar, /usr/lib64/icedtea8/jre/lib/ext/jfxrt.jar]
+# [parseprojectxml] Classpath entry /usr/lib64/icedtea8/jre/lib/ext/jfxrt.jar does not exist; skipping
+#  [nbmerge] Failed to build target: all-api.htmlui
+
+CDEPEND="dev-java/hamcrest-core:1.3
+	dev-java/javahelp:0
+	dev-java/jna:4
+	dev-java/junit:4[source]
+	>=dev-java/osgi-core-api-5:0
+	dev-java/osgi-compendium:0
+	dev-java/swing-layout:1[source]
+	dev-java/testng:0"
+DEPEND="dev-java/oracle-jdk-bin:1.8[javafx]
+	app-arch/unzip
+	${CDEPEND}"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.platform -Dext.binaries.downloaded=true -Djava.awt.headless=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+JAVA_PKG_WANT_BUILD_VM="oracle-jdk-bin-1.8"
+JAVA_PKG_WANT_SOURCE="1.7"
+JAVA_PKG_WANT_TARGET="1.7"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/2F7553F50B0D14ED811B849C282DA8C1FFC32AAE-asm-all-5.0.1.jar libs.asm/external/asm-all-5.0.1.jar || die
+	ln -s "${DISTDIR}"/1BA97A9FFD4A1DFF3E75B76CD3AE3D0EFF8493B7-felix-4.2.1.jar libs.felix/external/felix-4.2.1.jar || die
+	ln -s "${DISTDIR}"/941A8BE4506C65F0A9001C08812FB7DA1E505E21-junit-4.12-javadoc.jar junitlib/external/junit-4.12-javadoc.jar || die
+	ln -s "${DISTDIR}"/771CDCA0A3F2F3CE818E20CC2D707A3592422485-ko4j-1.3.jar o.n.html.ko4j/external/ko4j-1.3.jar || die
+	ln -s "${DISTDIR}"/A3085BAA78C8EE7F55081E70C79ABE04CA38CE93-net.java.html-1.3.jar net.java.html/external/net.java.html-1.3.jar || die
+	ln -s "${DISTDIR}"/7FC91530F4395FA0D58F9539F3B40858E766BFA3-net.java.html.boot-1.3.jar net.java.html.boot/external/net.java.html.boot-1.3.jar || die
+	ln -s "${DISTDIR}"/5C992BAEC0111EE293BD44173140A9D8EC860765-net.java.html.boot.fx-1.3.jar net.java.html.boot.fx/external/net.java.html.boot.fx-1.3.jar || die
+	ln -s "${DISTDIR}"/BF6C9BB0FFB78A6B846ECAEB880C460D883B4F72-net.java.html.boot.script-1.3.jar net.java.html.boot.script/external/net.java.html.boot.script-1.3.jar || die
+	ln -s "${DISTDIR}"/10E4214A89082C70FCF9F721953001C0932037BA-net.java.html.geo-1.3.jar net.java.html.geo/external/net.java.html.geo-1.3.jar || die
+	ln -s "${DISTDIR}"/D97314CE1869DD3B8B8942256A70673E2991C9DD-net.java.html.json-1.3.jar net.java.html.json/external/net.java.html.json-1.3.jar || die
+	ln -s "${DISTDIR}"/6BDCE8349F83CD02F2942D4FBFA86A81A129F42A-net.java.html.sound-1.3.jar net.java.html.sound/external/net.java.html.sound-1.3.jar || die
+	ln -s "${DISTDIR}"/E5DDC5E827D3D62E7BE9F7E32927CA01F2839971-org.eclipse.osgi_3.9.1.v20140110-1610.jar netbinox/external/org.eclipse.osgi_3.9.1.v20140110-1610.jar || die
+	ln -s "${DISTDIR}"/1C7FE319052EF49126CF07D0DB6953CB7007229E-swing-layout-1.0.4-doc.zip o.jdesktop.layout/external/swing-layout-1.0.4-doc.zip || die
+	ln -s "${DISTDIR}"/AF022CBCACD8CBFCF946816441D1E7568D817745-testng-6.8.1-javadoc.zip libs.testng/external/testng-6.8.1-javadoc.zip || die
+	ln -s "${DISTDIR}"/CEC2829EC391CB404AD32EB2D08F879C418B745B-xhr4j-1.3.jar o.n.html.xhr4j/external/xhr4j-1.3.jar || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	# upstream jna jar contains bundled binary libraries so we disable that feature
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --into libs.junit4/external hamcrest-core-1.3 hamcrest-core.jar hamcrest-core-1.3.jar
+	java-pkg_jar-from --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --into libs.jna/external jna-4 jna.jar jna-4.2.2-stripped.jar
+	java-pkg_jar-from --into libs.jna.platform/external jna-4 jna-platform.jar jna-platform-4.2.2.jar
+	java-pkg_jar-from --into libs.junit4/external junit-4 junit.jar junit-4.12.jar
+	ln -s /usr/share/junit-4/sources/junit-src.zip junitlib/external/junit-4.12-sources.jar || die
+	java-pkg_jar-from --into libs.osgi/external osgi-core-api osgi-core-api.jar osgi.core-5.0.0.jar
+	java-pkg_jar-from --into libs.osgi/external osgi-compendium osgi-compendium.jar osgi.cmpn-4.2.jar
+	java-pkg_jar-from --into o.jdesktop.layout/external swing-layout-1 swing-layout.jar swing-layout-1.0.4.jar
+	ln -s /usr/share/swing-layout-1/sources/swing-layout-src.zip o.jdesktop.layout/external/swing-layout-1.0.4-src.zip || die
+	java-pkg_jar-from --into libs.testng/external testng testng.jar testng-6.8.1-dist.jar
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_compile() {
+	unset DISPLAY
+	eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
+}
+
+src_install() {
+	pushd nbbuild/netbeans/platform >/dev/null || die
+
+	java-pkg_dojar lib/*.jar
+	grep -E "/platform$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	insinto ${INSTALL_DIR}
+	doins -r *
+	rm "${D}"/${INSTALL_DIR}/docs/junit-4.12-sources.jar || die
+	dosym /usr/share/junit-4/sources/junit-src.zip ${INSTALL_DIR}/docs/junit-4.12-sources.jar
+	rm "${D}"/${INSTALL_DIR}/docs/swing-layout-1.0.4-src.zip || die
+	dosym /usr/share/swing-layout-1/sources/swing-layout-src.zip ${INSTALL_DIR}/docs/swing-layout-1.0.4-src.zip
+	find "${D}"/${INSTALL_DIR} -name "*.exe" -delete
+	find "${D}"/${INSTALL_DIR} -name "*.dll" -delete
+	rm -fr "${D}"/modules/lib || die
+
+	popd >/dev/null || die
+
+	fperms 775 ${INSTALL_DIR}/lib/nbexec
+	dosym ${INSTALL_DIR}/lib/nbexec /usr/bin/nbexec-${SLOT}
+
+	local instdir="${D}"/${INSTALL_DIR}/modules/ext
+	pushd "${instdir}" >/dev/null || die
+	rm hamcrest-core-1.3.jar && java-pkg_jar-from --into "${instdir}" hamcrest-core-1.3 hamcrest-core.jar hamcrest-core-1.3.jar
+	rm jhall-2.0_05.jar && java-pkg_jar-from --into "${instdir}" javahelp jhall.jar jhall-2.0_05.jar
+	rm jna-4.2.2-stripped.jar && java-pkg_jar-from --into "${instdir}" jna-4 jna.jar jna-4.2.2-stripped.jar
+	rm jna-platform-4.2.2.jar && java-pkg_jar-from --into "${instdir}" jna-4 jna-platform.jar jna-platform-4.2.2.jar
+	rm junit-4.12.jar && java-pkg_jar-from --into "${instdir}" junit-4 junit.jar junit-4.12.jar
+	rm osgi.cmpn-4.2.jar && java-pkg_jar-from --into "${instdir}" osgi-compendium osgi-compendium.jar osgi.cmpn-4.2.jar
+	rm osgi.core-5.0.0.jar && java-pkg_jar-from --into "${instdir}" osgi-core-api osgi-core-api.jar osgi.core-5.0.0.jar
+	rm swing-layout-1.0.4.jar && java-pkg_jar-from --into "${instdir}" swing-layout-1 swing-layout.jar swing-layout-1.0.4.jar
+	rm testng-6.8.1-dist.jar && java-pkg_jar-from --into "${instdir}" testng testng.jar testng-6.8.1-dist.jar
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/platform
+}

diff --git a/dev-java/netbeans-profiler/Manifest b/dev-java/netbeans-profiler/Manifest
index 434a25a..e148ccf 100644
--- a/dev-java/netbeans-profiler/Manifest
+++ b/dev-java/netbeans-profiler/Manifest
@@ -28,6 +28,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-profiler-8.0.2.ebuild 3402 SHA256 8021dea620d1bc26214ff0ec285f8061c24693dd28a62a97a48ac3223707e920 SHA512 2660390337a973256b1aac3a02b14e16782c230fa2714ae695213b0cabc0eb60621c6a1ae234f9e57259a19de22a87447f9a89ab846bd59bcedd2be313c35072 WHIRLPOOL 5d1053ded03143b2de05b64cfbe59b515cb786d60bfa65566be795567bfaf5feb88a2f8e7161a05da512fafd523f871778d5ddeb3c6b89fc95885096e379f65d
 EBUILD netbeans-profiler-8.1.ebuild 3426 SHA256 81f8b3b135f021a2dbe7b5ccb53fc7fcf79908ab83ef14ca0e912732b7fb4b53 SHA512 210bc0c5214aa8f79f559cccf69f1ed885dd2d14dc55cd17bd89c8a7f04f1a76de5b414426337b2ba6e99576850f0753f13e41e0f424b3f0adc58001dffc217a WHIRLPOOL 293d12a03294532dc9ce10503b030282cb636f08af6300ea796885eb6a3fe36c9d37c2a07138d03e9c4d45b31352ce160901a96f659f26d50a0fe5caee3bf0fa
 EBUILD netbeans-profiler-8.2.ebuild 3147 SHA256 74556e56694578c6645cae3aa5257abe399a984e11d9982e49051731f1f1cf95 SHA512 3f4e0998aca161292f813d50e0e6420225b24e2020812011d5cb28e9465514855766bd9d4508b8739c9a38c9fb3d8cc652a69f722470bfeda968fae453183b10 WHIRLPOOL 3dc0441cb0fadae8cfc315c11826ae020d4242e0fa0901fa147a90777a9b2dc33c6081f2f251b5b2ac9f9fd32f03ad87cf999956dcdabe4fe339ee1b48976849
@@ -53,4 +54,5 @@ EBUILD netbeans-profiler-9999_p20161022.ebuild 3193 SHA256 9feec38a190b0a80e36c1
 EBUILD netbeans-profiler-9999_p20161023.ebuild 3193 SHA256 f0935bddf21059a8583f609ce413c810f773bec26787dc0aeb0e8f589824a43f SHA512 605f766ce305b0bc801e7cb676695ee738c49763fc8186ee51430f8205251b74445c13f2aeb2097806336a0ed12279cd805591d37ace5ceafe1780361f9b84e7 WHIRLPOOL b2f36097bba208e989fdad2c915979d62a6d66fa6fe07b951f5eb99cc2a06db7bb1a6c2b570a4d9af5a17cd9aa23b221f81b2aa6bac84c607ae0ac4508708fd7
 EBUILD netbeans-profiler-9999_p20161024.ebuild 3193 SHA256 1ab58d0c689aa3c45a0c5726f8964eec45db9b7454ed5b1dc68c5930599a7bbe SHA512 5a4550674ee7a05310427f2998e7eff3bd98dbf784dddf6c4abc474fcf6f145915b979bd23a45285499f00ca94c1a51c73f6af12863261cb9695b017a7aa31a0 WHIRLPOOL cd2aca68e39e07e5c75891c1a7e7f26468d95accfefbb61cccfccb07200a341e21ee517825c9ab9bf0f61dd10a98ce15b86aabd2f24652cf2983bfae0f249202
 EBUILD netbeans-profiler-9999_p20161025.ebuild 3193 SHA256 ec070838310c1fffbe903266d9abe39840538bedeea02e5c39b3d74066993bc0 SHA512 ddbe309b23867dfd6774f1b73c1a8f4f608a09826fbc8a17dc383a3e94882634a3a0a2e18341ea78ec7f562ffe69cb9e17a63db1f8cb94a0633879a2a2218117 WHIRLPOOL c58c8a1079ebe737b867668aaa39c1d375753c9d000d03328f031c097706ba858bdebb48fb2a2b85315910dc9a05e339f6264724fb5aa31235257549bebb9f56
+EBUILD netbeans-profiler-9999_p20161026.ebuild 3193 SHA256 ccbd32f1cb370f2067936575f602566ff9414ed8e0db453d1d8396d3e357acdf SHA512 9e84bec01cf3af6e278f42fe4c1cc066354f8e4ac012375cb25cdde027e677eb1782bb54d221bc7e8d875d34d4221b6a8aed806954aa0408028b6aeb05ba97ae WHIRLPOOL 874a54f632366ed2c90eb3b56a9afb637d454224ece06e5519e550ccf53b928d157babaa13017265817a5ba8e5cb5d3d209f6479a667b76b779d6e9d2facf85b
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-profiler/netbeans-profiler-9999_p20161026.ebuild b/dev-java/netbeans-profiler/netbeans-profiler-9999_p20161026.ebuild
new file mode 100644
index 0000000..ea8ddf2
--- /dev/null
+++ b/dev-java/netbeans-profiler/netbeans-profiler-9999_p20161026.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Profiler Cluster"
+HOMEPAGE="http://netbeans.org/projects/profiler"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+# Binary files needed for remote profiling
+QA_PREBUILT="usr/share/netbeans-profiler-${SLOT}/lib/deployed/*"
+
+CDEPEND="~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-java-${PV}
+	~dev-java/netbeans-platform-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.profiler -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	ln -s /usr/share/netbeans-java-${SLOT} java || die
+	cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.java.built
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/profiler >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+
+	grep -E "/profiler$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+
+	doins -r *
+
+	for file in lib/deployed/cvm/linux/*.so ; do
+		fperms 755 ${file}
+	done
+
+	for file in lib/deployed/jdk*/linux*/*.so ; do
+		fperms 755 ${file}
+	done
+
+	for file in remote-pack-defs/*.sh ; do
+		fperms 755 ${file}
+	done
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/profiler
+}

diff --git a/dev-java/netbeans-webcommon/Manifest b/dev-java/netbeans-webcommon/Manifest
index c5d8d6b..73d59cc 100644
--- a/dev-java/netbeans-webcommon/Manifest
+++ b/dev-java/netbeans-webcommon/Manifest
@@ -47,6 +47,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-webcommon-8.0.2.ebuild 4723 SHA256 e2ba39cb6f22c990acf9a492eac5707f130382d56f9bc1e3636e82cbe4d61938 SHA512 61955d38f829b3ed54bc5cb9a71da07f05676a2bf7219fa8073aeee0f0e2d0e73f7aa6ec1636be39fb071d3d2b9de7ceb813a247a61961874f4cc78697d4e568 WHIRLPOOL 1a272650fc2394716a790b79cb85a9322929c7cc96ea4776cc639fb869c5b536140dbdc632b1a8aa9cb1fc8e740050125c2ebe9390de7a8f4207e88e24924206
 EBUILD netbeans-webcommon-8.1.ebuild 4945 SHA256 55c57b638481134d659763154a7820467a9866707112cba0e60dbd9ba8cd2840 SHA512 a98987535f60b533bf0df701f83693a58584dfa9a10d5c8646186165d884fb7e8a3348ec77cbf25d1a8cc8cfd947bf54cdb30d251ae1a3fffb74947070d76579 WHIRLPOOL 36fe1b7b9b34a02fcda227aaeebed8a33562e6fe4a014c78e9a464d709bf5120322a35bd54a0ffa15c4dd4f3ae605cf6fc2d35c5652f7162ae646c61ad69210a
 EBUILD netbeans-webcommon-8.2.ebuild 5917 SHA256 c035b5efd55709fe58822548a97119768f99f33d025869d97da3d895c0e8e9a0 SHA512 5a5d6273239984590791ca40d4caaefee9f30c8ea44a4ec2d5abc07f087bcf4f4f35df444944badb7f7d80604d146f6768dcef5de911ac90b9b44891c6a02a9b WHIRLPOOL af8d1d6c692b206b90bbb81d54d839a486a9cbec1f38e6fb09b5745aef87a5c3de3961f0512f731e63abd8fc3fb54e03a70449034095173c2541ea7a12bdf389
@@ -72,4 +73,5 @@ EBUILD netbeans-webcommon-9999_p20161022.ebuild 5974 SHA256 fa51b7337c73754a1792
 EBUILD netbeans-webcommon-9999_p20161023.ebuild 5974 SHA256 ae9b046c20d35fcf03bb2a84d4e0e2c1234397d31391e36c884c9ac9cb854123 SHA512 8251218cc3ac827bac5e45d444a2f873683d5a7fe579eacf3aafe603922fb8925af0929d51533ee9cfa34266c9d2cce550ef7c987663896ae638680acbdd1bd8 WHIRLPOOL 2af8b5c6ea5798ecedebf8e588efa4e636732b6e075418982bdead042b6fa2bdca83985e04cecee293902ef6195c6224f4f1205ed4d73e05674a7483dd150302
 EBUILD netbeans-webcommon-9999_p20161024.ebuild 5974 SHA256 7f85002e8546fb96be8b529443fe3fd236d94e36d2eb9356f55789b757a5f028 SHA512 9a3dbb3a70eeac359d7493aac8cd78422fb093d8fe9a32ca3b3f3695280ae621a1302e76eccca134507e8da06aaa05bcf08e5b9e705e4d5615c06577ddbc5aca WHIRLPOOL 48d435a68c4925b178fb069ff5f4504d4504ab138fb13c3531ba123c1bfe0ed53aa3c273e2dce23fbf0cf1196efd243437d31ef7539066a18bb3dfa4fb415e6d
 EBUILD netbeans-webcommon-9999_p20161025.ebuild 5974 SHA256 5ccebf72df75c9b78a2851d49903acb798eb5bc74cd83de4377a501e52c2e5bb SHA512 7e71d4038dfb9d0ccbe052553b092dae6cc1221b67a07dff942d03ac3c69e7e26d9ebe18ee04a1ebc0393ab8a05eeb9eccb69ab6a08efe9b7a712935bb5eb907 WHIRLPOOL 17279e7b013ea954d5d18c605b0da541afe6f50541bf18ec542b165e514ac9f9d5c2cfcea3979c83e2c072156c56ff7af25e30fe27d69b8ca2163aa33944f45a
+EBUILD netbeans-webcommon-9999_p20161026.ebuild 5974 SHA256 6a930554ec566e7d254ef848407630e044bcc344a74b1e828aa47d55cfcf50bf SHA512 1d16e87a188d942f7e9fea70e959e195f03b6fafb1e1c71826246964376356a2f1486cf8c5128198a50e0e2d0a8a1bf89e63c94214498d9adc088895fccf2635 WHIRLPOOL fa61746e5cd055ecdc6e6991415c50c548808295556d667b2ff1856c9ffc85cefe21ae1372283f71af7e2c89eaaad969b48459e456d908740374d04b92c45676
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-webcommon/netbeans-webcommon-9999_p20161026.ebuild b/dev-java/netbeans-webcommon/netbeans-webcommon-9999_p20161026.ebuild
new file mode 100644
index 0000000..9b48766
--- /dev/null
+++ b/dev-java/netbeans-webcommon/netbeans-webcommon-9999_p20161026.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Web Services Cluster"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2
+	http://hg.netbeans.org/binaries/7CA13589F586F659BB0E1561719A91CA47BF1897-com.oracle.js.parser.jar
+	http://hg.netbeans.org/binaries/59631804B5A7FF3CEAA3F0E113584AF7E1BB6E9B-dd-plist.jar
+	http://hg.netbeans.org/binaries/7C4A82593A85524A3541E55A4A9C906B773ABAD6-ios-sim
+	http://hg.netbeans.org/binaries/C8EEAB10E4539BEAF97476EBA252BD4B40377FA9-js-corestubs.zip
+	http://hg.netbeans.org/binaries/2AA13ACCC4059C930C4AD3B6ABD8E1C0FC06235C-js-domstubs.zip
+	http://hg.netbeans.org/binaries/7C0C3CFD989EE775198337C11715C1ACD6C84F41-js-reststubs.zip
+	http://hg.netbeans.org/binaries/0929AC5F40B5A8667021408748D64F30F77B3165-libiDeviceNativeBinding.dylib
+	http://hg.netbeans.org/binaries/2A38DA3DB5D36DBBDC0B03990B46810F72430D5E-libimobiledevice.4.dylib
+	http://hg.netbeans.org/binaries/480C9E376169E21EA3BDA5D5841425BD7CC054D7-libplist.1.dylib
+	http://hg.netbeans.org/binaries/08FE518AB60FFA2E5440B75B4D9F8502E0791B3C-libs.jstestdriver-ext.jar
+	http://hg.netbeans.org/binaries/C1BB9FF4232248B0054E5A26A33474A251EA19CB-libusbmuxd.2.dylib
+	http://hg.netbeans.org/binaries/D4BD3F62EADB61216A47EF96B3152EDD35A56005-ojetdocs-1_0_0.zip
+	http://hg.netbeans.org/binaries/1EFED55F8C442E4DB1C2338A5C35D494364F9ECD-ojetdocs-1_1_2.zip
+	http://hg.netbeans.org/binaries/CA8F6968FED0BE20E786C70CF9B603F4D7B66C68-ojetdocs-2_0_0.zip"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-extide-${PV}
+	~dev-java/netbeans-ide-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0
+	dev-java/jna:4"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.webcommon -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+
+	pushd "${S}" >/dev/null || die
+	ln -s "${DISTDIR}"/7CA13589F586F659BB0E1561719A91CA47BF1897-com.oracle.js.parser.jar libs.nashorn/external/com.oracle.js.parser.jar || die
+	ln -s "${DISTDIR}"/59631804B5A7FF3CEAA3F0E113584AF7E1BB6E9B-dd-plist.jar libs.plist/external/dd-plist.jar || die
+	ln -s "${DISTDIR}"/7C4A82593A85524A3541E55A4A9C906B773ABAD6-ios-sim cordova.platforms.ios/external/ios-sim || die
+	ln -s "${DISTDIR}"/C8EEAB10E4539BEAF97476EBA252BD4B40377FA9-js-corestubs.zip javascript2.editor/external/js-corestubs.zip || die
+	ln -s "${DISTDIR}"/2AA13ACCC4059C930C4AD3B6ABD8E1C0FC06235C-js-domstubs.zip javascript2.editor/external/js-domstubs.zip || die
+	ln -s "${DISTDIR}"/7C0C3CFD989EE775198337C11715C1ACD6C84F41-js-reststubs.zip javascript2.editor/external/js-reststubs.zip || die
+	ln -s "${DISTDIR}"/0929AC5F40B5A8667021408748D64F30F77B3165-libiDeviceNativeBinding.dylib cordova.platforms.ios/external/libiDeviceNativeBinding.dylib || die
+	ln -s "${DISTDIR}"/2A38DA3DB5D36DBBDC0B03990B46810F72430D5E-libimobiledevice.4.dylib cordova.platforms.ios/external/libimobiledevice.4.dylib || die
+	ln -s "${DISTDIR}"/480C9E376169E21EA3BDA5D5841425BD7CC054D7-libplist.1.dylib cordova.platforms.ios/external/libplist.1.dylib || die
+	ln -s "${DISTDIR}"/08FE518AB60FFA2E5440B75B4D9F8502E0791B3C-libs.jstestdriver-ext.jar libs.jstestdriver/external/libs.jstestdriver-ext.jar || die
+	ln -s "${DISTDIR}"/C1BB9FF4232248B0054E5A26A33474A251EA19CB-libusbmuxd.2.dylib cordova.platforms.ios/external/libusbmuxd.2.dylib || die
+	ln -s "${DISTDIR}"/D4BD3F62EADB61216A47EF96B3152EDD35A56005-ojetdocs-1_0_0.zip html.ojet/external/ojetdocs-1_0_0.zip || die
+	ln -s "${DISTDIR}"/1EFED55F8C442E4DB1C2338A5C35D494364F9ECD-ojetdocs-1_1_2.zip html.ojet/external/ojetdocs-1_1_2.zip || die
+	ln -s "${DISTDIR}"/CA8F6968FED0BE20E786C70CF9B603F4D7B66C68-ojetdocs-2_0_0.zip html.ojet/external/ojetdocs-2_0_0.zip || die
+	popd >/dev/null || die
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	java-pkg_jar-from --build-only --into libs.jna/external jna-4 jna.jar jna-4.2.2-stripped.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-extide-${SLOT} extide || die
+	cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.extide.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/webcommon >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+	grep -E "/webcommon$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/webcommon
+}

diff --git a/dev-java/netbeans-websvccommon/Manifest b/dev-java/netbeans-websvccommon/Manifest
index 545e2bf..b7a4ace 100644
--- a/dev-java/netbeans-websvccommon/Manifest
+++ b/dev-java/netbeans-websvccommon/Manifest
@@ -28,6 +28,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-websvccommon-8.0.2.ebuild 2651 SHA256 a195b307847c466dbb5f46eb04240358ce3c92cadeecb8fda1562304de46820f SHA512 933626bd2073f58e3508180c042e237b9e61ba6f3c992cf37ea43978ac2fc972d2dcc3ef0b5c390b3867296e197ed2605c43452c98e36acf0982e7338b6d1eb7 WHIRLPOOL c3db8f0b50116d0129f50778e1961166e76601d8c165e20e73d75c91b02c8a095067e0f13e18178d849dd29adcedaeee7d3e0e62f99be592d7ce159fd6af632e
 EBUILD netbeans-websvccommon-8.1.ebuild 2675 SHA256 c9ff3d598c5f76c2b69dd5488a80c63025acc3cd0cc99321a0e84a493502df36 SHA512 89daec44b860aa8011d9e5533230f89dad7bcc50a119664122d2718db3e53501d1319ae4b27eac1d71596671e9a7c21315a641346e6cbab22edb3c7232bf5ce3 WHIRLPOOL 521521094b396c98687e2054742e4c019023045f19b01a6cc3a5f826f4cabe9448254db8b834448f3b33368c76dd667942554e1bae459c55de2c571bb5cfb4f5
 EBUILD netbeans-websvccommon-8.2.ebuild 2396 SHA256 a015f50a9fcebf084d42a550d5a654e80129a5d92d2bec7cfd543d065a4c32e2 SHA512 cf4fd6fcb2ea088be645a79009205a84588c9c7f1b7e5ceeb9c95552ffba860d211e3d6b4fe95196e652f5c3c5665638ee95f1ca8f2f5b938d2b09100dc186aa WHIRLPOOL aa37154ee5fdb6ff7892e3bc1218c37b45fcbfc7a4da81c8cada6d9b50a1bbbc51c685b00389d1114f3d0ae84d5a06d9e10ba0e9101f385e6cb59358eef3e59c
@@ -53,4 +54,5 @@ EBUILD netbeans-websvccommon-9999_p20161022.ebuild 2442 SHA256 26126df4982288c3c
 EBUILD netbeans-websvccommon-9999_p20161023.ebuild 2442 SHA256 5e76ec59a0b943bb4262da477a5d14d6d3c5c63575627717e47139be872497b9 SHA512 9790035836d0a13e340241885da3e80b5b3a20d0cde267f3f45b889d03b644ad0799c31d4b39a0cf811eed1fed0a35489a900be7f5f037d1f12995d731dd03d4 WHIRLPOOL cb819aa433376599f97118cdf690cde03fec03af697cfaa297807c7514d3c60d0f5200b191d23b2e123ab10c6cd63506e6af7a4b3309e15cbb0654abedd43255
 EBUILD netbeans-websvccommon-9999_p20161024.ebuild 2442 SHA256 540fc6775d959155b4127e61bc848be520996923ac89012c8f255d45cb437d00 SHA512 e3224dcfb3082f5504330814f9d49f263c6c6cd5684ca995f88152b1130399ef09d2e6f9c5a179347c9ee9ed9f7f8def37a3877f534c6fcea0f8b3bb7f264687 WHIRLPOOL 028c29352b11e42cce56711aaf68391ebaafe95a2d1575737e18ed114e42fcdc96c256ef66f16be71a50da93b8f591c2d2c66a3aaabbc91d18ed500fa495b664
 EBUILD netbeans-websvccommon-9999_p20161025.ebuild 2442 SHA256 33728a35a31a812a87c6a9aa8aac432d4bc8188b48a18772ecad87e6512b6ade SHA512 219a6ca80ce5a6fcd35a9b6a0cb28889e0db0d0588418a9554a470baed67ec4ac94a89b297516756bdd5bb0e403306da6b2e9cd166122c2d52be6551f8d86786 WHIRLPOOL 67a0f0aafd1c2e55f5798ec97e90968ff2667f1479b966650cc66141b32207b171de2dadd07ac6744f8454a5aae3f7d739b28c3bc7667a41fc9dc9bbffefd339
+EBUILD netbeans-websvccommon-9999_p20161026.ebuild 2442 SHA256 bd9cff20503a39eb624bea3b2b099a947f77dd2d9ceb2935f16ce4b7e7a000c7 SHA512 61d7b345f10667536b6848a4e917bca33915f5c7a1f2bcc26287e61e44ae788e678b55e8896294d518b21c6bb3fd37c6091c11707eb7178971033a0c29373e9d WHIRLPOOL 177dc54209a26f6c44d109943ee4241c8c4cb8ae57bc930b43fdcdc04ebb4023de360667f5916b6fd13d82af8c5afd1ce45d30d3e236fdb4a34d2b0e8187b076
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-websvccommon/netbeans-websvccommon-9999_p20161026.ebuild b/dev-java/netbeans-websvccommon/netbeans-websvccommon-9999_p20161026.ebuild
new file mode 100644
index 0000000..bb39f89
--- /dev/null
+++ b/dev-java/netbeans-websvccommon/netbeans-websvccommon-9999_p20161026.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans Web Services Common Cluster"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+SRC_URI="${SOURCE_URL}
+	http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+CDEPEND="~dev-java/netbeans-platform-${PV}
+	~dev-java/netbeans-ide-${PV}"
+DEPEND=">=virtual/jdk-1.7
+	app-arch/unzip
+	${CDEPEND}
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	${CDEPEND}"
+
+INSTALL_DIR="/usr/share/${PN}-${SLOT}"
+
+EANT_BUILD_XML="nbbuild/build.xml"
+EANT_BUILD_TARGET="rebuild-cluster"
+EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.websvccommon -Dext.binaries.downloaded=true -Dpermit.jdk8.builds=true"
+EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+	unpack $(basename ${SOURCE_URL})
+
+	einfo "Deleting bundled jars..."
+	find -name "*.jar" -type f -delete
+
+	unpack netbeans-9999-r17-build.xml.patch.bz2
+}
+
+src_prepare() {
+	einfo "Deleting bundled class files..."
+	find -name "*.class" -type f | xargs rm -vf
+
+	epatch netbeans-9999-r17-build.xml.patch
+
+	einfo "Symlinking external libraries..."
+	java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+
+	einfo "Linking in other clusters..."
+	mkdir "${S}"/nbbuild/netbeans || die
+	pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+	ln -s /usr/share/netbeans-platform-${SLOT} platform || die
+	cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.platform.built
+
+	ln -s /usr/share/netbeans-ide-${SLOT} ide || die
+	cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
+	touch nb.cluster.ide.built
+
+	popd >/dev/null || die
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_install() {
+	pushd nbbuild/netbeans/websvccommon >/dev/null || die
+
+	insinto ${INSTALL_DIR}
+	grep -E "/websvccommon$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
+	doins -r *
+
+	popd >/dev/null || die
+
+	dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/websvccommon
+}

diff --git a/dev-util/netbeans/Manifest b/dev-util/netbeans/Manifest
index 5d46841..370b751 100644
--- a/dev-util/netbeans/Manifest
+++ b/dev-util/netbeans/Manifest
@@ -33,6 +33,7 @@ DIST netbeans-trunk-nightly-201610220002-src.zip 218422757 SHA256 94b0238a6bc41e
 DIST netbeans-trunk-nightly-201610230002-src.zip 218423650 SHA256 5c7589af378dbaa47190a0396d96c16508cacfd7c36abed0a1d02cab767a02cb SHA512 ae0ff14e2815ca82394a48931688b8d8554d80754793fed0e7f4189b355980b9696ef47a2a1126d7fd092e31bdd2f30bae06a829561a8df91a3663b8072afd22 WHIRLPOOL 68dd718aeb55f4342bc6f0901f85ac02540d1093f5d4f3b3e8303da2cff8969b78f13a0abc2961e5f9fce8614e7b53a8a24b589a0e83a12202502151b3278d22
 DIST netbeans-trunk-nightly-201610240002-src.zip 218423650 SHA256 f75e639fc4c7735798d94383fcd04d6f46310a1d7ca999f3d20b8a627708aa09 SHA512 1e52a97974035f3cd17e88ddbbe195afaee23e3e75e055d766f5eed9819db4206fb5a6bf6cb2c9c2a3d53330796775b682f481335a97d1d5898bc2ad14ae5e85 WHIRLPOOL 0647d5ec4205ad0a0b6c8064dc0e26baa6202524dabc714027f88049d2894bf197e8a2663e7c757e748c1c806ddd6f58b6aab7ac0a81ea42633040f6b797e5aa
 DIST netbeans-trunk-nightly-201610250002-src.zip 218423689 SHA256 0c1d844730110394a6207e2838229fe935943598c53e240043055c2d5b3eb051 SHA512 aaf8f06d8ecde12e21b6a6bd1255c2568a47273cc05e05122e0432c4b5d573f1601856b36c05124c583d534d732329dae0ee0ca9b938921270c01138559a3836 WHIRLPOOL 8af2d6aaea312d5cece96bcff905f5253f7dafa96accc98c5360e7eeda9fec1905991a10d6d280d62726a40d41857d1932d0a98ba11edb4b0cc97cfcf8fd1733
+DIST netbeans-trunk-nightly-201610260002-src.zip 218423689 SHA256 fb5c8952b33e324b7c2a14e397d26b5395455dcf4fad8f07f8e37b1147820e47 SHA512 23ded8d290188508644044e0e115569534ef40abe088ed8c8be9d93d99208d4f683feedd8e3df8038529f0d7f1e6111e1c307da6d06190fde28ff6eb16ac800a WHIRLPOOL 40c396b68f7265a16027a2010a1e4d2925b440e06eda11892f4d381b60302086345d9172b102beb2cc7550ea4df32cdee25165126f129f28217d3660251411b9
 EBUILD netbeans-8.0.2.ebuild 7167 SHA256 80e31382a0ceb680c2a055dc5c78c1dce8edf32c50bbae6a1c14a2c568492519 SHA512 0ab466ca247ec953896ef0ab3b01b43ffea3a9f37e9bcdacecfc0476226d45cef35e4ddf27f2b85628d9512ed304e6cc6cfe963a5e547217d08cad400eefc4b9 WHIRLPOOL d09668e669f4f8d7987ab02cf26104fc6e54ba29b8b497fe0013cc8816a2d7560c99e6e1b02db77ead872d5240b84c09e3fabbc3465587d1d1ca7d6fcae114c1
 EBUILD netbeans-8.1.ebuild 6891 SHA256 22a19f05bdcea85475c0451df867367b69363bfbc6280f78b087248d9f8e9513 SHA512 812b6cdae3e5feaf37db5ca8b5efa1b374d5492f11cfa1df2adbd3617986cdca6a79d2d4dffd024c8c48492fc8a21704190242f5741c5699b12070620cea2c87 WHIRLPOOL baf5f750574c01effa0d02c72194139fb2757be932054f4900ceb0534607064af10f2b5b38063ff2cca34e75ab5be23d00c7e5d90d1c724339666d20f1bb10d3
 EBUILD netbeans-8.2.ebuild 6152 SHA256 ddb5db62422e635ff3aee1137e93bb45cdee59adf1d6444d3291659846810d0c SHA512 f20b5fce0a14233796ebf4bc2a6669bb6d9f429fecc05564bc2170a8577c1c7dd64c027a4c8f3ab929e12d1e258fc5718f073050efc6ecccb01b1bbc33f8903e WHIRLPOOL 017adf9ee69bc95e291a73419d2c043acb3d1c67ecbd73c8e2f924e408562c46b5c9eb0ef58a6f02562a879dd5aa0080ed84ac16bd5502f361c925d1db3aaac5
@@ -58,4 +59,5 @@ EBUILD netbeans-9999_p20161022.ebuild 6199 SHA256 b65472215a06d0951bdc9814d17f6b
 EBUILD netbeans-9999_p20161023.ebuild 6199 SHA256 2c8e709b78d90c7e4d48fcab2d22c981817f91c2d90aea3bfe7cfc8f5f25b950 SHA512 448458fcd9f27cd8281e255fd0b116a195541ed3e5c81b17885fa6a950209fb89a00459afe43e94a53d1d83c070b6c2abad70ebbdde8e969e50af17caad218fc WHIRLPOOL 2c2945e3102f0a6207968823e2699698e6ef1a3e16e04aeb8a31b65ee47b2b649fc5997f603558ffc1c3836bd45ef92f3a19c15adbe8bf2e02e7c654a0516c63
 EBUILD netbeans-9999_p20161024.ebuild 6199 SHA256 3989a574f6bd41647ea691bdb0dd84d90d55edb8e5d15f57217d1b3df05d6e25 SHA512 4d9c45ec401378f246fa5a4420f995a6e7c1dbac042eb8a3819d4ffd4a6c6fc7b8f818c2732c06eeba95a399a8b3b56c9fe670059e0a5860e0ce1559deaff07c WHIRLPOOL 0c8ca63c23690a9d3225eea054e301d26afcc3fd6eb4037fc258d7ba200910827dfd4e11b06b65054317ab4afdf8120ae779407bcefe964b56c0aa92b48bd7d5
 EBUILD netbeans-9999_p20161025.ebuild 6199 SHA256 079c97960d4fbadf4161867df931707af2b0f24041390fe6909e8b198233574c SHA512 2ebef82b50de620aa6fe4c60256eebbf7fb2ec296b0106cb6d1f2ec518342c13571426e1d928cf48bd0f88fba2afac21251322310a93d0a098f49aa920a8a296 WHIRLPOOL 1ffde1a72a56a459edda113a54b1255c625ec5ae690ffb8fae9e62b83cadf21627876c4ec8fb0516d6f2dc0ef7bd9eeb2b0ad7018cdf120234e611d2967483cd
+EBUILD netbeans-9999_p20161026.ebuild 6199 SHA256 e6be8fe830b7c6e798a09ff7e22ce70e70f0b185cfc760fef4efb30417308f79 SHA512 79c077bc5bec65b6ecee9a97df954ccbe0ecdfa6c73a2e7dd8c7aa3c6fa26cb4a7e333c778159d1c5b401a41a6f9c9c504d0ed470f22dea0027ba02befe639a3 WHIRLPOOL 6c94e0f3354ee4f366cf106ee0235d87af3bf7a79891db1fa5f4871e0cfca4a3c3d3808b9f9a344bdd241b3ff50727cb47a4e1afab0a1b1f7dcf9c10eeade55e
 MISC metadata.xml 329 SHA256 8aeaf2a0228f15c2e4140f401b30f083509bd99d0a578873069f3595cd8555f3 SHA512 d5d878b3903238db8e1c807862c68fff34e86b972daac3e38a3b283c802ba8a5e6345723740f5ecf7b0313daa5430708a21eca4d4a1415069cf836aaf5429640 WHIRLPOOL 799a9b79b1b447bda9631f67e2dfaf722376740e1d2037796528a05f9745eeed00d9990a74a65ce09f74bc5e1d60a887abde540c3c62487d7dd49b8377c15834

diff --git a/dev-util/netbeans/netbeans-9999_p20161026.ebuild b/dev-util/netbeans/netbeans-9999_p20161026.ebuild
new file mode 100644
index 0000000..3f28bfe
--- /dev/null
+++ b/dev-util/netbeans/netbeans-9999_p20161026.ebuild
@@ -0,0 +1,235 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans IDE"
+HOMEPAGE="http://netbeans.org/"
+SLOT="9999"
+SOURCE_URL="http://bits.netbeans.org/download/trunk/nightly/2016-10-26_00-02-33/zip/netbeans-trunk-nightly-201610260002-src.zip"
+PATCHES_URL="http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r17-build.xml.patch.bz2"
+L10N_URL="http://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-9999-20160920.tar.bz2"
+ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
+SRC_URI="l10n_af? ( ${ALL_URLS} )
+	l10n_ar? ( ${ALL_URLS} )
+	l10n_bg? ( ${ALL_URLS} )
+	l10n_ca? ( ${ALL_URLS} )
+	l10n_cs? ( ${ALL_URLS} )
+	l10n_de? ( ${ALL_URLS} )
+	l10n_el? ( ${ALL_URLS} )
+	l10n_es? ( ${ALL_URLS} )
+	l10n_fil? ( ${ALL_URLS} )
+	l10n_fr? ( ${ALL_URLS} )
+	l10n_gl? ( ${ALL_URLS} )
+	l10n_hi? ( ${ALL_URLS} )
+	l10n_id? ( ${ALL_URLS} )
+	l10n_it? ( ${ALL_URLS} )
+	l10n_ja? ( ${ALL_URLS} )
+	l10n_ko? ( ${ALL_URLS} )
+	l10n_lt? ( ${ALL_URLS} )
+	l10n_nl? ( ${ALL_URLS} )
+	l10n_pl? ( ${ALL_URLS} )
+	l10n_pt-BR? ( ${ALL_URLS} )
+	l10n_pt-PT? ( ${ALL_URLS} )
+	l10n_ro? ( ${ALL_URLS} )
+	l10n_ru? ( ${ALL_URLS} )
+	l10n_si? ( ${ALL_URLS} )
+	l10n_sq? ( ${ALL_URLS} )
+	l10n_sr? ( ${ALL_URLS} )
+	l10n_sv? ( ${ALL_URLS} )
+	l10n_ta? ( ${ALL_URLS} )
+	l10n_tr? ( ${ALL_URLS} )
+	l10n_vi? ( ${ALL_URLS} )
+	l10n_zh-CN? ( ${ALL_URLS} )
+	l10n_zh-TW? ( ${ALL_URLS} )
+"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE_NETBEANS_MODULES="
+	+netbeans_modules_apisupport
+	netbeans_modules_cnd
+	netbeans_modules_dlight
+	netbeans_modules_enterprise
+	netbeans_modules_ergonomics
+	netbeans_modules_extide
+	netbeans_modules_groovy
+	+netbeans_modules_java
+	netbeans_modules_javacard
+	+netbeans_modules_javafx
+	netbeans_modules_mobility
+	netbeans_modules_php
+	+netbeans_modules_profiler
+	netbeans_modules_webcommon
+	+netbeans_modules_websvccommon"
+IUSE_L10N="
+	l10n_af
+	l10n_ar
+	l10n_bg
+	l10n_ca
+	l10n_cs
+	l10n_de
+	l10n_el
+	l10n_es
+	l10n_fil
+	l10n_fr
+	l10n_gl
+	l10n_hi
+	l10n_id
+	l10n_it
+	l10n_ja
+	l10n_ko
+	l10n_lt
+	l10n_nl
+	l10n_pl
+	l10n_pt-BR
+	l10n_pt-PT
+	l10n_ro
+	l10n_ru
+	l10n_si
+	l10n_sq
+	l10n_sr
+	l10n_sv
+	l10n_ta
+	l10n_tr
+	l10n_vi
+	l10n_zh-CN
+	l10n_zh-TW"
+IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_L10N}"
+S="${WORKDIR}"
+
+DEPEND=">=virtual/jdk-1.7
+	dev-java/javahelp:0"
+RDEPEND="|| ( virtual/jdk:1.7 virtual/jdk:1.8 )
+	~dev-java/netbeans-harness-${PV}
+	~dev-java/netbeans-ide-${PV}
+	~dev-java/netbeans-nb-${PV}
+	~dev-java/netbeans-platform-${PV}
+	netbeans_modules_apisupport? ( ~dev-java/netbeans-apisupport-${PV} )
+	netbeans_modules_cnd? ( ~dev-java/netbeans-cnd-${PV} )
+	netbeans_modules_dlight? ( ~dev-java/netbeans-dlight-${PV} )
+	netbeans_modules_enterprise? ( ~dev-java/netbeans-enterprise-${PV} )
+	netbeans_modules_ergonomics? ( ~dev-java/netbeans-ergonomics-${PV} )
+	netbeans_modules_extide? ( ~dev-java/netbeans-extide-${PV} )
+	netbeans_modules_groovy? ( ~dev-java/netbeans-groovy-${PV} )
+	netbeans_modules_java? ( ~dev-java/netbeans-java-${PV} )
+	netbeans_modules_javacard? ( ~dev-java/netbeans-javacard-${PV} )
+	netbeans_modules_javafx? ( ~dev-java/netbeans-javafx-${PV} )
+	netbeans_modules_mobility? ( ~dev-java/netbeans-mobility-${PV} )
+	netbeans_modules_php? ( ~dev-java/netbeans-php-${PV} )
+	netbeans_modules_profiler? ( ~dev-java/netbeans-profiler-${PV} )
+	netbeans_modules_webcommon? ( ~dev-java/netbeans-webcommon-${PV} )
+	netbeans_modules_websvccommon? ( ~dev-java/netbeans-websvccommon-${PV} )
+	doc? ( ~dev-java/netbeans-javadoc-${PV} )"
+
+JAVA_PKG_BSFIX="off"
+NBLOCALES=""
+
+pkg_setup() {
+	for lingua in ${IUSE_L10N} ; do
+		if use ${lingua} ; then
+			local lang=${lingua/l10n_/}
+			lang=${lang/-/_}
+
+			case ${lang} in
+				ar)  lang="ar_EG,ar_SA" ;;
+				es)  lang="es,es_CO"    ;;
+				fil) lang="fil_PH"	;;
+				gl)  lang="gl_ES"	;;
+				hi)  lang="hi_IN"	;;
+				id)  lang="in_ID"	;;
+				nl)  lang="nl_BE,nl_NL" ;;
+				ta)  lang="ta_IN"	;;
+			esac
+
+			if [ -z "${NBLOCALES}" ] ; then
+				NBLOCALES="${lang}"
+			else
+				NBLOCALES="${NBLOCALES},${lang}"
+			fi
+		fi
+	done
+
+	java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+	if [ -n "${NBLOCALES}" ] ; then
+		unpack $(basename ${SOURCE_URL})
+		unpack $(basename ${L10N_URL})
+
+		einfo "Deleting bundled jars..."
+		find -name "*.jar" -type f -delete
+
+		unpack netbeans-9999-r17-build.xml.patch.bz2
+	fi
+}
+
+src_prepare() {
+	if [ -n "${NBLOCALES}" ] ; then
+		einfo "Deleting bundled class files..."
+		find -name "*.class" -type f | xargs rm -vf
+
+		epatch netbeans-9999-r17-build.xml.patch
+
+		einfo "Symlinking external libraries..."
+		java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+	fi
+
+	java-pkg-2_src_prepare
+	default
+}
+
+src_compile() {
+	if [ -n "${NBLOCALES}" ] ; then
+		einfo "Compiling support for locales: ${NBLOCALES}"
+		eant -f nbbuild/build.xml bootstrap || die
+		eant -Dlocales=${NBLOCALES} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
+			-Dpermit.jdk7.builds=true -f l10n/build.xml build || die
+	fi
+}
+
+src_install() {
+	if [ -n "${NBLOCALES}" ] ; then
+		pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+		for cluster in apisupport cnd dlight enterprise ergonomics groovy harness ide java javacard javafx mobility php platform profiler webcommon websvccommon ; do
+			if [ -d "${cluster}" ] ; then
+				insinto /usr/share/netbeans-${cluster}-${SLOT}
+				doins -r ${cluster}/*
+			fi
+		done
+
+		if [ -d nb ] ; then
+			insinto /usr/share/netbeans-nb-${SLOT}/nb
+			doins -r nb/*
+		fi
+
+		popd >/dev/null || die
+
+		make_desktop_entry "netbeans-${SLOT} --locale en" "Netbeans ${PV} en" netbeans-${SLOT} Development
+
+		for lingua in ${IUSE_L10N}; do
+			if use ${lingua} ; then
+				local locales=${lingua/l10n_/}
+				locales=${locales/-/:}
+
+				case ${locales} in
+					ar)  lang="ar:EG ar:SA" ;;
+					es)  lang="es es:CO"    ;;
+					fil) lang="fil:PH"	;;
+					gl)  lang="gl:ES"	;;
+					hi)  lang="hi:IN"	;;
+					id)  lang="in:ID"	;;
+					nl)  lang="nl:BE nl:NL" ;;
+					ta)  lang="ta:IN"	;;
+				esac
+
+				for locale in ${locales}; do
+					make_desktop_entry "netbeans-${SLOT} --locale ${locale}" "Netbeans ${PV} ${locale}" netbeans-${SLOT} Development
+				done
+			fi
+		done
+	fi
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-26  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26  9:22 [gentoo-commits] dev/fordfrog:master commit in: dev-java/netbeans-profiler/, dev-java/netbeans-javafx/, Miroslav Šulc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox