public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/fordfrog:master commit in: dev-java/netbeans-platform/, dev-java/netbeans-java/, ...
Date: Mon, 17 Oct 2016 08:05:55 +0000 (UTC)	[thread overview]
Message-ID: <1476691547.7d8f46e4aeed3d800b0cc49325d472bb79d18163.fordfrog@gentoo> (raw)

commit:     7d8f46e4aeed3d800b0cc49325d472bb79d18163
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 17 08:05:47 2016 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Oct 17 08:05:47 2016 +0000
URL:        https://gitweb.gentoo.org/dev/fordfrog.git/commit/?id=7d8f46e4

netbeans: bumped to the latest nightly sources

Package-Manager: portage-2.3.2

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

diff --git a/dev-java/netbeans-apisupport/Manifest b/dev-java/netbeans-apisupport/Manifest
index a0a13d8..cf92d9b 100644
--- a/dev-java/netbeans-apisupport/Manifest
+++ b/dev-java/netbeans-apisupport/Manifest
@@ -27,6 +27,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -51,4 +52,5 @@ EBUILD netbeans-apisupport-9999_p20161006.ebuild 3105 SHA256 1ac7c89afa52a654ce2
 EBUILD netbeans-apisupport-9999_p20161007.ebuild 3105 SHA256 a36edf281a811d8282a36be4dedb39726e5fc5f49ed7d505ea116cd60d2e0acb SHA512 3a49fe9dd7dc5e281df8fe9b3badef1fd8dfe1a7ac4f7054c243c7608b61308d191856efb52b4f5eb2ccebd81a6b46c077634c732d977bcbaa4c891c17dd90a0 WHIRLPOOL c52f950acbe4e2649740ec516ee860cd7cb258f1148306f247d155bb752f113b02503017c56d1d9a36180f9d5eab499af4773a95c9f5754a6535108435f83ecc
 EBUILD netbeans-apisupport-9999_p20161013.ebuild 3105 SHA256 de3c94a8e63c59643c81da1af892b9937ceca3a6fe647437c926ddde0787d4de SHA512 10adc98f4021c66625fb336c8312a66ecbb9cc6f610f4e8348ba9f22e2b8f40615160c68d59e20812836462f16e07f4dd44f066060c8da8c4c7533ca8494549e WHIRLPOOL 3860e5aa08da6c6aa1c7c31f12c2fa8962fb36dbac6e47c32c97132521efd9ac8d6c8d6f2879a9965efddf676e7816cc420bbdf20a9db001d0223908b03a9d39
 EBUILD netbeans-apisupport-9999_p20161014.ebuild 3105 SHA256 4d1212f32b2631ff96f804dd31d9be056dcd8d9cf5258fa9ffa99effb1087cff SHA512 968159994a3362f425d1aaad273908b319500151c76370387de3781271de69b9fcea11b6a2c0c3b25725e962608ac50f80bd39da511ce8bcec7a5692c3d084f9 WHIRLPOOL dcaf68f86e5b775583bf1be0bb57feae5b142de2c83f77e0d04fcd27a6f5d8f4db014b5f51f7d655e7af1ccc8036282eb288735a106e2a55b4328aa37b1e73a6
+EBUILD netbeans-apisupport-9999_p20161017.ebuild 3105 SHA256 d534469bc373c6884c3aad962b7d78a9ff6367cd4124bad7346d149e945bedf6 SHA512 904368892a769a2197f3d7fb412a4b9bbe173d0b44cd8d77b386d30ee6fae507cee4ed4aa51e3f460fed8517aa2e0e0e58579db811469c5994cdac6361ef5df5 WHIRLPOOL a52bb3a4bec089042d20cc2f428486c033d68aa44a53c9cf70be2863471859e83d75124b5723a1e18308ea8580511c5b6a141159fd22436f49f24096f24ca57c
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-apisupport/netbeans-apisupport-9999_p20161017.ebuild b/dev-java/netbeans-apisupport/netbeans-apisupport-9999_p20161017.ebuild
new file mode 100644
index 0000000..83fcddb
--- /dev/null
+++ b/dev-java/netbeans-apisupport/netbeans-apisupport-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 f9be708..588e668 100644
--- a/dev-java/netbeans-cnd/Manifest
+++ b/dev-java/netbeans-cnd/Manifest
@@ -39,6 +39,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -63,4 +64,5 @@ EBUILD netbeans-cnd-9999_p20161006.ebuild 4511 SHA256 83075be1bd13fc71c0d1cb9bce
 EBUILD netbeans-cnd-9999_p20161007.ebuild 4511 SHA256 c8ef1758fbfa7c8561301b8155a3c5258e062e50db74f2198e42a4a0d563355b SHA512 179cd0c08ebf52b43ce06de9dfbbb8a31737f7c8d5796bfba522160ef9c6cfc3dba4dbc5bac5a1685fb3bdf5ddd8be94c51f8ca57ff1eba0a3dc36e658485a83 WHIRLPOOL d93065a708bf7aa9cdc34bc79e69438a5bc07af5d843039c71b4b5ce918f76d780786d95ec05a5a7f89cd1af2739c08cf871027584487181ecacc7135c2cf115
 EBUILD netbeans-cnd-9999_p20161013.ebuild 4516 SHA256 7500674d16fc7ade5ce8a912e58383326d88244089b3b26b42fb6076c941e3a9 SHA512 c5f87a67ec4158c4e1a2f3b4e648f5e20ccc88849fb145dd4ced568269a7ea377e3747668e4182d09709ebd791a14eb6b96e806ae8052872d824e8980891733c WHIRLPOOL ba0a86efbfafad2affe66a45a5f9a2ffce984fac98211b9dafbbf98634efca243d096964790e10e7f0bace53c0ee9ca8fde1125a2cdaed3ee72c1889d7d02a4a
 EBUILD netbeans-cnd-9999_p20161014.ebuild 4516 SHA256 381caa35be4b5fc5d72e7d05b2cc97b752f7282b3ec9587b5660b321f76f6146 SHA512 f84292184168fcb4bbbd98e22f1f504be43a6a5b36a157d56f7de534ac74fba81532854a41882447b3f1355e0607a1d18029cda10f22abc5ae33d9c9dcab4aad WHIRLPOOL 8bfa350b14cf677b7653d53bedaf80bdc9ee24ef4b14cc3ca21663861ca1931de39d9044b09b6e156e6a85bb38b5008785b288919dba93110ec66723033fe18a
+EBUILD netbeans-cnd-9999_p20161017.ebuild 4516 SHA256 ec9eefde22aec76e74f07676511b742511de5bdf01d4bc09a9537a6b3171a073 SHA512 7c434682ed8b384f9eefdea04cbec6ee48057407601dbfd56e3c2f28371a2399640c6d670742bbe550c34ea5210157cb20da691f134099ce899b1549de0858ee WHIRLPOOL d2c501ec9fe48e02be2a579101969a28816fa1eaa05866d6ca749a6e1ddbc91f8292d79774130ba1b7dc64ca738b06d9c39ea5191c9470fc44b74dfd6b6497f0
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-cnd/netbeans-cnd-9999_p20161017.ebuild b/dev-java/netbeans-cnd/netbeans-cnd-9999_p20161017.ebuild
new file mode 100644
index 0000000..76bb8f7
--- /dev/null
+++ b/dev-java/netbeans-cnd/netbeans-cnd-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 0a143fc..ab877f7 100644
--- a/dev-java/netbeans-dlight/Manifest
+++ b/dev-java/netbeans-dlight/Manifest
@@ -30,6 +30,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -54,4 +55,5 @@ EBUILD netbeans-dlight-9999_p20161006.ebuild 2689 SHA256 12b67c54e0bcbc687776341
 EBUILD netbeans-dlight-9999_p20161007.ebuild 2689 SHA256 08119420af006c1983abfec8c7e5af1020e690ec729013337bf9d354cd55c497 SHA512 c2f9aff8a171bc623f99f781ea604b724393f5f4ee995dec0bf6eec9f292737854670b41fd5ae234f6bf08e642080201eb42d8fa2efd6938c58b9019e01564d3 WHIRLPOOL 7c9f321fd30d17d592c7ddcbf9cd6ba8f75fdced9ace2df2f7f29cfadb6da2ef12c81f7ab14c253ed99480ae1e1dce17c9adeae907e5d49eb556984dc03c903e
 EBUILD netbeans-dlight-9999_p20161013.ebuild 2689 SHA256 18de8686b947c9c8d0edf9152668736334a74e7e6d0885258b2aa6a1df7a69f2 SHA512 49fd7f79afc13dfc03f1932fd0978183328a6dca521fd7567d186294809de3836b068d687291ea18467219ab4c48c28e822b502f49a62817096c1759f75a83e8 WHIRLPOOL 77fee81693fb76031012e12e60e2e6f80a40fbd4353802d500cbe90b7dbf612b94a5ac6853a02e6e207262091664e415f3afe4007137fc7a51447c055abc3f5b
 EBUILD netbeans-dlight-9999_p20161014.ebuild 2689 SHA256 2f4abbb84c6294eefc7417bbbc992edebded735570d47701ababaa96f791644c SHA512 f141901afc642387d5c4de6a0a6d121859e3a3843669afa220463f8ee0f3c1f60cae6df32773a98007c6d29f7a4a7b573846343edef597f7c169aacf41350608 WHIRLPOOL 07854d649b8a67e997f4ba8e6210fe8b8a4f771e178e5f15358f2b78289bab798d986f96a596d20dbe8f56aed702e5f2d999504fc26bec85c81fcee03282ceb0
+EBUILD netbeans-dlight-9999_p20161017.ebuild 2689 SHA256 cd5862d6b28c973ed1c4109d4ff2452d6435a89a2b74c3e1091e736d8d970109 SHA512 4fb179688fc55f8509093f12aeaffae6f002caec00286e8d73316a3f5fba977d688f92deb5bba58955656f5d3b8d6c02203c563b24d27760c90a8d8b314d231a WHIRLPOOL f34141b2f2b1fb6f3fc4d13445d441b6870528952e9f132358eb7775da8212ca3b0dd488e0bb39eb9207c2192bf4ad5e086e0764940392fd23e8e4a789ab565b
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-dlight/netbeans-dlight-9999_p20161017.ebuild b/dev-java/netbeans-dlight/netbeans-dlight-9999_p20161017.ebuild
new file mode 100644
index 0000000..a51ea40
--- /dev/null
+++ b/dev-java/netbeans-dlight/netbeans-dlight-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 f0db8a9..cd00c1c 100644
--- a/dev-java/netbeans-enterprise/Manifest
+++ b/dev-java/netbeans-enterprise/Manifest
@@ -59,6 +59,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -83,4 +84,5 @@ EBUILD netbeans-enterprise-9999_p20161006.ebuild 15546 SHA256 925bedd046d59eaddb
 EBUILD netbeans-enterprise-9999_p20161007.ebuild 15546 SHA256 d5fbbc626abdc252d24e123a5d226c4ee05a06180bfdf616186297d0165b49e2 SHA512 ee6bcf6fcfcacd6a3c332535b3232b5be548aaef4f8baa19fab512f518b1033526dcdd78ade88ced80a32d331d7c6cbe7959abfad4a61a19f32b6d3379833039 WHIRLPOOL 10a98487c1cf69c94f1d92ddda0b1334ababe770f173e417f289fe8967b1d2404ca8f4b10b783b5d1ae73d0f75f8e9ee0c88568e359a467930b593a88893fc89
 EBUILD netbeans-enterprise-9999_p20161013.ebuild 15546 SHA256 85201d48de2836f536ab236fee55c0be144fb2809cbf9817f5e410ecd3d9a550 SHA512 1a2626749d80ae14114a7556ff2dd74b1d7597e990321f7efbcad669c5cb1bf8a53bb85ced2cb1149c17daa0ae525633652294348639c69191e92adef82d8701 WHIRLPOOL 9dd0afd6abf9bcd415bd68f9a787dda3dac50b820cdc143e7bdb94467084c1828f3b0140ca55da71640768a88c1a59d13e230f209932a251b573a31e8845fd4c
 EBUILD netbeans-enterprise-9999_p20161014.ebuild 15546 SHA256 75905ea43ec09ab36a878b9cdf166dd1ac661ac666fb5127567cd9da47df465d SHA512 97c0643cd57c74b9bc44a6fedb561ece2f49204f90492de5672f1a7fd3436960883108aaa8a4d62e0207b06d04a848e69b1e61a682994daad10f9ecdef42ba70 WHIRLPOOL b6c02469e0b1b4a595c711d1fdb339d074b49a5f277ab8cdf74c570f74ade483c1d3e92a31e2c5634bc7a0b8ac017f680137eee982aec8f4f0b382d8fb452eec
+EBUILD netbeans-enterprise-9999_p20161017.ebuild 15546 SHA256 7b9782fbb42f5ad762e8cd6b780377b4bc460930ed634ccccecfd95ac0928fce SHA512 b8e5511f3d8c0d37c70767a4a226ce0cf8afe1307796af32382f447026d71f3f790d9d8d8606310defdf89fdfb9ea4df7df25978d1b067bb3ebf55374a5db8bd WHIRLPOOL ca296d8f984326cd710d8e600f7d1e891a40aecd9e3a32d28f6f9503cbce2e2502d0242376b80b3a8a832426a8773e0f8d3eb14c86b895b3726e056d3023be7c
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-enterprise/netbeans-enterprise-9999_p20161017.ebuild b/dev-java/netbeans-enterprise/netbeans-enterprise-9999_p20161017.ebuild
new file mode 100644
index 0000000..70e4ed8
--- /dev/null
+++ b/dev-java/netbeans-enterprise/netbeans-enterprise-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 1e64b43..4476a3e 100644
--- a/dev-java/netbeans-ergonomics/Manifest
+++ b/dev-java/netbeans-ergonomics/Manifest
@@ -27,6 +27,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -51,4 +52,5 @@ EBUILD netbeans-ergonomics-9999_p20161006.ebuild 2634 SHA256 bcf311d8f3a1f5d7eba
 EBUILD netbeans-ergonomics-9999_p20161007.ebuild 2634 SHA256 3dac8961f3df4ab05e2c3e6c86284289916518f11f35761eb579f4855b41e47d SHA512 4439ef1d6fa243272ffa13bcd9334d28705133834b5382513bca8687f668fd25d84dbbf3c209305c5184fc4831797d3ccbfc9e99d28890209186dfafe4af6fc7 WHIRLPOOL 19020acba766cb56adfbbfcad7efa5f647d8ba7f0b96bfd7dd3685a61472b3926d200b605a223072e98ab13906f1e4704bbe98217e31893631a6e0f9ccf84532
 EBUILD netbeans-ergonomics-9999_p20161013.ebuild 2634 SHA256 7817bfc604597eda7d61c69958158ee2e8dc6b44916f38f430fa6af336224f17 SHA512 d71fae0600fddfe1deee0e0c9b914a510dfbdc6204fadd20734863bedb749f0d4c26297abe03dc1b2bba3e2a969e48f0f348be139b3490360b25c5d19fe015ab WHIRLPOOL 7f64e3f0829a0472655c08d60d6a1e274f9b42ec1d424602f816f7d74fa8c4beb3fec929c8421f4a87f7ee5d56672902c56e7f87fe2ca1c1fea2735505d1d664
 EBUILD netbeans-ergonomics-9999_p20161014.ebuild 2634 SHA256 e50845199f7734e500cf90ae0d2a642312a78d1185461ccbf1b28243130e56c0 SHA512 f9bf77827500ed7b8a47f2bbdaad3c74f5c446edf90ec910f23e444016c8dfb4b8c846b3140d22dfd186cfe8cd51643b11a46e47354a588294c00ab564298cab WHIRLPOOL 8af33a193c4c9b5cd9d8b3f6f81574a2eae83d65e8b39e2305d7fb962bca2fa56934edf87bb79c0bff5ee4d53a8765513de7b13141e23780eb194eb4b0cd58e3
+EBUILD netbeans-ergonomics-9999_p20161017.ebuild 2634 SHA256 802a2f73f7448bed82dbfaab02e2ecf404c6a0959c1d5f1442e37b66f5c507df SHA512 34b7787336d06c30d4f363553a4204783b80a9982d12aa111fd3d04dc8bacd107287e091d6408e2e35e3ed626fb524f5687a0caadf7d671240c8d3114079fa61 WHIRLPOOL e2c36ea39de4884e197347745826bd485c3b32e33b71376ddb019e39d667f4bc53448a0c30b3d5ea96f70958c9be1dab72a717635e0ee18706f4f88bd7ffe267
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-ergonomics/netbeans-ergonomics-9999_p20161017.ebuild b/dev-java/netbeans-ergonomics/netbeans-ergonomics-9999_p20161017.ebuild
new file mode 100644
index 0000000..b1f00d7
--- /dev/null
+++ b/dev-java/netbeans-ergonomics/netbeans-ergonomics-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 928d067..95f5dba 100644
--- a/dev-java/netbeans-extide/Manifest
+++ b/dev-java/netbeans-extide/Manifest
@@ -33,6 +33,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -57,4 +58,5 @@ EBUILD netbeans-extide-9999_p20161006.ebuild 3098 SHA256 cafea0726625b95205e4192
 EBUILD netbeans-extide-9999_p20161007.ebuild 3098 SHA256 79dff2cf7abb9eedb18b232ca209d57106b9c1b5560686c288370143b7104327 SHA512 458f142f8f1561801c7c69794a2f9bab52bccc7f2ada621683e922983216f21d4983f57a9ba23a61e711e52cd02ea6e8782d01b032e5424bf7d30eac3026a0ae WHIRLPOOL 019642d9e370568e5e5ce71e9e77bf9088079147ff6aee9c38d92f0cb8d750c02d3b19de1414f62432a009073dc0032dd978516530b3f7555f2c8b633a845c1d
 EBUILD netbeans-extide-9999_p20161013.ebuild 3134 SHA256 d98a0a91ef3bea983832a415cb97622317ad410368fb217bd0f7b162010716f8 SHA512 8a2de54b95752b95e54f64bebdf7e9ff1d635f3bcca9634f09dc251b323869279437ddd3e01b09321cdbfaaf8dcb05ffeabf653f40ca63fdb93219c4d499351f WHIRLPOOL e9f2b17515f249ec4e094ea0629726e63121f076e2ec85818fd3305f4fc799808be4692d0861605ffae0a45ef1278da04a901ef1b19d8a257d4166045ed93b58
 EBUILD netbeans-extide-9999_p20161014.ebuild 3134 SHA256 f4bd17f207f2b312798753ce88eb1cf9f35c7c5765bae3e1036016b60d1200d2 SHA512 5d21a1673d90e3249663a0e45843da5d8b8e2f2597cf21c1d01b9fc57174f422b89a5bb675c5f0bf259b7c0365b88a9f76702fb79ae3c76eee270c3331bc3dea WHIRLPOOL d711ad12c02ed788f546508122b5d01d42e663afc29243d32f1c3e84397d276ad4fb61a7fa58fc99507daf690f95f9f42eb73016653f5d08c16202e365f3129a
+EBUILD netbeans-extide-9999_p20161017.ebuild 3134 SHA256 a425a1f051c50bbf94d82555abb7b772ad7a61db1d6b94ebf6bd9b6625156cf7 SHA512 380d6e9293f5b6d8ae01a637f58175b7cca576346ac1f4c7fa7a1eff6e56cec4b279eefc2919d95be28b0805aa5fe14e0b222d59605a71360e8059a8b12d4698 WHIRLPOOL 83981035da828d81b04e960e232db0da7dd47000a658d2bdf02005e944fb9bc0d6296c2e11bf8a3f2260e5fb58617e0bd34c84f35081f9e5a654e83f158c3060
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-extide/netbeans-extide-9999_p20161017.ebuild b/dev-java/netbeans-extide/netbeans-extide-9999_p20161017.ebuild
new file mode 100644
index 0000000..2277964
--- /dev/null
+++ b/dev-java/netbeans-extide/netbeans-extide-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 0d92f9e..f92d9b1 100644
--- a/dev-java/netbeans-groovy/Manifest
+++ b/dev-java/netbeans-groovy/Manifest
@@ -29,6 +29,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -53,4 +54,5 @@ EBUILD netbeans-groovy-9999_p20161006.ebuild 3137 SHA256 5c831902537d50fa2c864fb
 EBUILD netbeans-groovy-9999_p20161007.ebuild 3137 SHA256 0fb2fc2cf4f814eb99d2cde4f8c9dda990f0aaafe39202023c1a7179fab23303 SHA512 7c3abdf2a8415d9e38a7899b9e856b26bae8bb8703e5ce6290e438fb7f4cfc88fec34622adfb5ca29e24cf6980c47f5c2a689befc381f4dd1481bc9723dbc814 WHIRLPOOL d0421b91f0eab13a97fd8a6d871d450e7367ba724b320f1520a14edcbd1319d44f8e578bd50355f087d255b652326da7dc13350d6419ae081e21154afe86bf60
 EBUILD netbeans-groovy-9999_p20161013.ebuild 3137 SHA256 b45a945c2c289508683d123583e09476c0723fc3cfa62b131e2a9f6a4ef8422e SHA512 5fe5e68c1865ac7079a63afcc1dbc77624b89fcd4f58020c8db9a9a33232f6b9fe321a3938bc6c979a313614ae2e7aa04e2e13cffb94fcf9d17fcd0ad96c12e7 WHIRLPOOL 8619d42014613dd52acaaf79a514a504d62be913ee5d6f9b7364e42e1585d90a1d4e08f73f25e4dd48bd9fbc9bc0cda75c4dfd6fcb4c04bf427706f4dccd6c41
 EBUILD netbeans-groovy-9999_p20161014.ebuild 3137 SHA256 4ea1ee475c08a346117e6d792c0013c89eb80772b08a492c28b6b72db55b6fff SHA512 8fc866db8f19d5de5cc81bae4b270c0c8fe7e9bd1aaf8257d14c888ebe2fee5588533dc3daf2b01d333f51caebb030688237699874f772410130b40e5bdedba2 WHIRLPOOL 61e4a9c21acbb58ee55b5387e3458b97ec043f431dd3afa5340194098a3d404e6333bcada27a2b0545801f886742e1642fc734c524603a6d50c67d12f9154c25
+EBUILD netbeans-groovy-9999_p20161017.ebuild 3137 SHA256 fb35f71ef3a46fd3727d0397034f44c800aef2b645ac22511d0de3ceb4d43082 SHA512 502a13e64c47f60f18a393019a3ae73ff8c1ca9abebd3cb88326b8e591f0e1c6443710a887640e55b944c90e066828729b9123c5212fc1d9a3b280c4ea0b2146 WHIRLPOOL baa2b67428ecfca7eee1764cb6497fa53f9e468cf6bf548d69660e5e8a9bc4f122eba9c315f10dd0f2a25aaa6785e81ab59539ee379e3a0bb4bf08a3d5b911cf
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-groovy/netbeans-groovy-9999_p20161017.ebuild b/dev-java/netbeans-groovy/netbeans-groovy-9999_p20161017.ebuild
new file mode 100644
index 0000000..b38db65
--- /dev/null
+++ b/dev-java/netbeans-groovy/netbeans-groovy-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 3c9132b..61ecc91 100644
--- a/dev-java/netbeans-harness/Manifest
+++ b/dev-java/netbeans-harness/Manifest
@@ -32,6 +32,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -56,4 +57,5 @@ EBUILD netbeans-harness-9999_p20161006.ebuild 3847 SHA256 5a1abb64ce82a846720fe1
 EBUILD netbeans-harness-9999_p20161007.ebuild 3847 SHA256 d471612154289c87f26195f42ded57efe2788b3db502fa861b0b91e1de5d6175 SHA512 23b8dfaecc287b7751f534dff3e99dc79b92007f6a8be12c352f130bec7338f4540e2bf822022d84286d02c63547755721d60e3a230aa9e056d819e4cf0d6328 WHIRLPOOL 48e4a0cf3f8a129da708dbfef89c37c3f63bbb6d18c96a3b7f86923b0f6449bfeb401e73beaf24d4d8887edd7d8791be0dff69d1ac6b82fcf2122d83b140876b
 EBUILD netbeans-harness-9999_p20161013.ebuild 3847 SHA256 5cc45d055a707c151bb9d67b6c71dfc697ed290f0bd070154f2fa8eaa0e842a1 SHA512 c0ab0789640cd7952d86661df25d1c1beea69a8ca2eebab6a7dfe516b587bd3c256c5724513efe7769782892748c2298b1903ca25aaf53ede454253578349eb3 WHIRLPOOL 12126435307b4af0cc14287e8eac855c943ac1a69d80d5f88a547f268dbd72cd3a824174670390f10fda50e465140d5f266f326140a17e803a7b8bd88dd4d897
 EBUILD netbeans-harness-9999_p20161014.ebuild 3847 SHA256 a6fd5b2e0653668715469dd62023371efc4d6709699c8193866bc1773fedf6ed SHA512 d5b66571c532ac0d1887e12721dc7c641c2edcd277fc24f99f1943bc0a988dee371fc410bfed54b39b4e3eb7d0992ee19eb368567c2bddb7dab77e78724c179a WHIRLPOOL 859ea6baf0ef56449b65751dffe4aafdc48436d52b469db90c86ee33fa3d238c4dd61607c3f7054aae0bde9ecc377566d47778cf825b072ed1495c5717b9462a
+EBUILD netbeans-harness-9999_p20161017.ebuild 3847 SHA256 f783d486453499a83bd92eb00fc594671f8d82c1a24dfdae712d02fb362dd1ed SHA512 f6d73880d82aba3016b119d27c3110479ceb60eb90334129a3cc5a4bd54b3bc6027bfe3cc8d97a4c8cc9f38a7f4c3cb18d9b01ab47287cc993be0be6e5a5ac55 WHIRLPOOL 138ec7e4fd60f2133ad27b19f8e24e97d89acd945f01791411491e1142cd88449335d3381a1da66fed3d20557d39b405c79f06f3c3f32a6cdd1379b8dc2af64c
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-harness/netbeans-harness-9999_p20161017.ebuild b/dev-java/netbeans-harness/netbeans-harness-9999_p20161017.ebuild
new file mode 100644
index 0000000..5f1a720
--- /dev/null
+++ b/dev-java/netbeans-harness/netbeans-harness-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 764c0c8..76a3d7c 100644
--- a/dev-java/netbeans-ide/Manifest
+++ b/dev-java/netbeans-ide/Manifest
@@ -166,6 +166,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -190,4 +191,5 @@ EBUILD netbeans-ide-9999_p20161006.ebuild 29570 SHA256 dac8d3d7ddf78d28ae2a5ca6a
 EBUILD netbeans-ide-9999_p20161007.ebuild 29570 SHA256 5fd584a76f781f74cb7a74816fedffc56d068496b90fbda2b24595963da535bd SHA512 4afbb317f15f8887fff3b5c14d079f9955c85b0edb19c6d5acf5a0423366c87bf454ba7d11a7a68392417a3981fae823a4d2303023a5b837eaa2fbf8b1ae462a WHIRLPOOL 57dee3d3eb5b2fc287fd07a788a36fedbf25a55fa57a22ea5af3b5e57f0a7d8f6d296f7efd4305827857b600a8da986b1b9147d552baf2ab4bfa7d8c6902b486
 EBUILD netbeans-ide-9999_p20161013.ebuild 29581 SHA256 65830f564fe1fc3307fbddf1db393dc3cb5a19adeab33423a642fa54e4a7a69b SHA512 591118c8505d3f27f753967817dbba000c90963899a3884c858e393bd7e43548f74058701e9408c2589d65054e677fe1ef7357409d6c3ea0d85da9ca0664d4a5 WHIRLPOOL 48e51dfaf0d84fdd17396b13be26e500cc3218bf6ddcb6bb15ed762a8a578f8cc4346850b0d1429d07c222a660044c42aa03ca7e77bd10ac351ff97f2681139f
 EBUILD netbeans-ide-9999_p20161014.ebuild 29572 SHA256 0de55312e0601b7bd952a0fb97416db28d868b68f4c60b0d8e28503343c92cec SHA512 0bf622b263853d1abce086ca444e530e4662b7794c4ba028fb6b5562661f7ed61729e7e203e25ec93ecc6b78e7642d05e2926883a8f0cf1fc6bcc43ae34075c9 WHIRLPOOL 33d5565d16c9e531ae3018195db74adc7b21eddf03027c83770aea5d270766d20233fea9e0bc319ba10ed109c15f141a5ea7787ffed7c496b74a61221a68d5e5
+EBUILD netbeans-ide-9999_p20161017.ebuild 29572 SHA256 ae1b705d16f4161d50526ba60b09584ad6f944b18a07df9d61981c5d231a6030 SHA512 885bc8c7b5ba521a6aaaefb4d49ba425c3959ca35cda52d170a79b61cd9c8c487c6f4379139e962621e268b42bf3d868650b8a8f3375a8f2162c6a3f91b75d29 WHIRLPOOL e1cd9c98b0f3190588dcd7fc72f5ec103cfb2d8b2008baf68e61458af404af92e6273346ab1d617dd5857d21263c24b4d15fe03b0559c44c61b4b803295039c1
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-ide/netbeans-ide-9999_p20161017.ebuild b/dev-java/netbeans-ide/netbeans-ide-9999_p20161017.ebuild
new file mode 100644
index 0000000..bffe349
--- /dev/null
+++ b/dev-java/netbeans-ide/netbeans-ide-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 87e52b1..a61b0da 100644
--- a/dev-java/netbeans-java/Manifest
+++ b/dev-java/netbeans-java/Manifest
@@ -62,6 +62,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -86,4 +87,5 @@ EBUILD netbeans-java-9999_p20161006.ebuild 15377 SHA256 cfb710c4224b96bfe2473d84
 EBUILD netbeans-java-9999_p20161007.ebuild 15377 SHA256 e5297a6f6db87026d5ca1c795c3673d31af26e94fc4428da993394d4b95d8115 SHA512 9cf2dd3d72467077696a0473a72c9a990a4562bdd3d7f964e3dfdb7439b94aba49e10ff8c937be22637efaa7727f56aba0fcf5ba375c370d4d7c8ebe1ba56ebd WHIRLPOOL a97f9c35ea61a93d849c4db99f9aadf2d0d0f1b0565fcb7c964ee5e047d84f433a9616f726e72f82e5c540b445a0a7ea9f3f1b1df61a7f61fa6c5646eeab3c26
 EBUILD netbeans-java-9999_p20161013.ebuild 15377 SHA256 b7b0b8e7fefd1e01396992d80456485ad344c91def546858d658c217efcc5b37 SHA512 ddd93819773f0084d603c7ba05c2d8f503cb591256038662133e3acf1325bb29e196f63e38bdb18d5e4a2305427e0bfe780fa342f40dc702664285825eeca0f0 WHIRLPOOL 4400b9185bb5f22a37b7eca4787bd492653efec7052b0107b31f6a1dedd850404e00ef39abb3ee1f6c23b92dbbf936af343803d6a924fe923588c060d80162c3
 EBUILD netbeans-java-9999_p20161014.ebuild 15377 SHA256 4b03e7ac7f4f3d96a81c24fcbe01445a24eb82da36cebdf7130fd9708ea0fdbf SHA512 9a24dadff55b43654f09455ab7098591620f3c2d948568af214502270fdca394b0763f1513b8dc1626f011138687bcffecdc95df29dbd35e5395014387484ce5 WHIRLPOOL 6282672c12728fad9af5f8b5d62b6e2d1123f5b5a30a2a0489777606d5d40c2e3a5a7d6e56f033e35bda1fefece37d0e6f678e5f1eaf8f66d5fdf168367d6748
+EBUILD netbeans-java-9999_p20161017.ebuild 15377 SHA256 88a1298045803035e51df7ce3bbca5c31b963ac831323c7c313cb6165e06fb50 SHA512 386b923781ce33d77509bf703a9a902031203dd822b964020fe2f2937a1924919ccd38d5e5ffcf3e30575991446caf04a523dd0553aac4d626c702c04f87720a WHIRLPOOL 710fbe54d5f385f89ec744472833e8f63c8c82df936a9ac51dafea98e1c1e4b9f2fe00b28f279de9c4b599c301985af0917eea4475b0619c1be5f557b2a51082
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-java/netbeans-java-9999_p20161017.ebuild b/dev-java/netbeans-java/netbeans-java-9999_p20161017.ebuild
new file mode 100644
index 0000000..867217f
--- /dev/null
+++ b/dev-java/netbeans-java/netbeans-java-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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/45DA542728DD77AD51C6766ED6C3A1B71EF8DA77-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}"/45DA542728DD77AD51C6766ED6C3A1B71EF8DA77-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 95a4a36..4f7b5df 100644
--- a/dev-java/netbeans-javacard/Manifest
+++ b/dev-java/netbeans-javacard/Manifest
@@ -30,6 +30,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -54,4 +55,5 @@ EBUILD netbeans-javacard-9999_p20161006.ebuild 4692 SHA256 9e5430c079d6bba27666d
 EBUILD netbeans-javacard-9999_p20161007.ebuild 4692 SHA256 6fe05407a4c2383e6a69144a5c7abbedba2c62a4bb927488a084a55f677ed30c SHA512 984f9b19b91317946dfccd300a150c72a8e8dd1e792769b64247f94122f60dd86b59b4d1f5bb0e2aa8bd56edd81226e2ea5668143caee7ef76a774ab8f2e347b WHIRLPOOL a445bb2abf4efb9b3346a78c7ff916c0331313facc85581f6f7bb5145caffd6f36e9109e39be41634f6b4f51dcb6c23c65f3ed9e03500bfe487c2074c5e8d3ac
 EBUILD netbeans-javacard-9999_p20161013.ebuild 4692 SHA256 cc8d7d6876f2ea88b0373863dfcffe77ff675daf6386e92cc5af323ee1f400d5 SHA512 7ec49ee8649b5388cc23faa8badc0dea02cd4f79248cbf1302a8a4d35a44d5751c5f2256fe5937400a5799494de72097051809ae38cc13f5b4739e2592a2f7de WHIRLPOOL e8c65f95db89f33ac405750e4d72e37cf0085ab21ddced17d32897eab2e9003ba18ecb0dfca65f221cd03c8a3f80964c5979eab883fd6b90059f7afba5146315
 EBUILD netbeans-javacard-9999_p20161014.ebuild 4692 SHA256 80e23da880e7b8fa1a3e842d015bc566da1a43044aeded5cf3015d5d8a98ad56 SHA512 c6cfbf12d392b7ba1022e8c74c6c6826d4fb5cae7e82bcc2db3981ad0cb61f3cbff01fa8b08e29dfce84de49c32f6a72376c58fdf9d264c0e990edfeaaf26930 WHIRLPOOL c5f1eedcad3d6db2556d3a13e9cfe696fb9bfd7fd47d164b88e873961b3a0ca0f7563f67b6bcb9c59fdc9111713ef3de7513aad0672631a82234a1bc552c8bb8
+EBUILD netbeans-javacard-9999_p20161017.ebuild 4692 SHA256 59b0b058ab56a15e19477b8c2de6e7115a9c9d3f6f106b8f3b89e5d66e56c7d6 SHA512 cc3e749671fe8fea62e646d3716c67465376f8d9a67abfbb335f619546e8c7080938f1f62cb174dab444d23d63d39b9e692b43171ad2ecd8ffe5a420adc09fbc WHIRLPOOL 2c604d62a6c5a17c4f84d5dd85ddd121488036577da16fb8fd73394a821fd8dcfb2e7e822bb781a60b1c788c25ba44e54fe6ab10aa324565a84557d23b830fe6
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-javacard/netbeans-javacard-9999_p20161017.ebuild b/dev-java/netbeans-javacard/netbeans-javacard-9999_p20161017.ebuild
new file mode 100644
index 0000000..d88340a
--- /dev/null
+++ b/dev-java/netbeans-javacard/netbeans-javacard-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 e40dc37..d6f2761 100644
--- a/dev-java/netbeans-javadoc/Manifest
+++ b/dev-java/netbeans-javadoc/Manifest
@@ -30,6 +30,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -54,4 +55,5 @@ EBUILD netbeans-javadoc-9999_p20161006.ebuild 5993 SHA256 7d9da2c94a963126765c29
 EBUILD netbeans-javadoc-9999_p20161007.ebuild 5993 SHA256 6438f62ed8bb1a2599edc04f25fc218f84e5fc892ad808c080638f565e50dc77 SHA512 9aa5dcfc3302a1830d7c049e64146f88889acaeaa02912877d14862e2a4f2cdc748eaeaac7c9307e417cc93acc29d86e9397d9e8e542aa62b7a538631d73c885 WHIRLPOOL a74a187923affeee3aacc14c9c6f6334490203b877fca96afa90adb6f84c72d0043a90fb5f908d90aa7b56a3fda13b3a95ddaeb03c068fa0fa38962062ac3aa7
 EBUILD netbeans-javadoc-9999_p20161013.ebuild 6011 SHA256 1a5b0fe2bed614c5329c38a2ee7465a395cdc19399fac5aab6acd4990d7466a1 SHA512 2bbbd6a4756dc4178b315d04c41668d4db86f809584695412e46c1e176bd30d64ed3840406350f43e511bbf6c1636fb5c31350b777ebddb27a53b49ec04d4d73 WHIRLPOOL ed692095e5bfc86b903ed5d9073466ad17a1c4206e21377d1871e4669422970903d807203c8d3767215427cdfdc3f47ef6e6f93fffda0efc2e1cae618c56940b
 EBUILD netbeans-javadoc-9999_p20161014.ebuild 6011 SHA256 1bc10a47016e901d74f1aef74d68c78a14ecbcbddf62ea94970903316bd2168d SHA512 651a16c66e07823d964b06eac3afac43307b759531b33db4dc220e7846769406b9a72a14b1e2349949cd1ea1eda1c3eeaf2fc7b1fbf391046dac17c154ca04ca WHIRLPOOL 44f82add127952da43243371722c26eb12ad815bb693e9705d37e40fd365784d5bc3a914e0d6052bf0b3afe87e1bc41e047caac3b831624ceadb1e7627162e46
+EBUILD netbeans-javadoc-9999_p20161017.ebuild 6011 SHA256 57dae48410538a590487b98356590edc771e825ebf19575883ed7dd0f210237c SHA512 5853edb5ad4a24a2bb8ef2d2be6b746bb61bdf258397bcee6be1ba4efd4f4ca04864a04e8ed0a668c02f2a6a2e9203e346961557474ec6c737354ad54251e81a WHIRLPOOL 294e1707b0fcddfd719762b2ea240bfeca703d544a8605e698d06fb61daf4a1d68353296babdc08a187b8b79b4e9df6cfffac4b01c0c46ec0959cf84504edde8
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-javadoc/netbeans-javadoc-9999_p20161017.ebuild b/dev-java/netbeans-javadoc/netbeans-javadoc-9999_p20161017.ebuild
new file mode 100644
index 0000000..2da5ce8
--- /dev/null
+++ b/dev-java/netbeans-javadoc/netbeans-javadoc-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 bd06fa7..c354e82 100644
--- a/dev-java/netbeans-javafx/Manifest
+++ b/dev-java/netbeans-javafx/Manifest
@@ -36,6 +36,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -60,4 +61,5 @@ EBUILD netbeans-javafx-9999_p20161006.ebuild 4438 SHA256 7bcc3fdf49723f026f063b4
 EBUILD netbeans-javafx-9999_p20161007.ebuild 4438 SHA256 b33a6e486f505c9fc564bd291bf988941efe1b5f6b982e1025239e0a62a1c698 SHA512 97ba08a1a1a5b41c037b6e8420e5ad9eca0dbe15cf8306c6dd91658adcafbec91ee5031754cc252897e4a89e791038a2f71a4685a421a7ee31b594a803f6aa3b WHIRLPOOL 4a5e068c20aa305d9de3f6be91b5e64e3fe6aca2407ac8ce01ccbee249019c2686b9e436b99963302b280859213cd2d97ef6fbc36aa6febe2a88160111e8651a
 EBUILD netbeans-javafx-9999_p20161013.ebuild 4438 SHA256 6a64e15f6a831dd6136ebe60110409d8475caa52caafa7381d46ad1f645aa4e1 SHA512 8024354853a0228ed51090380fdfa9d8751f0f765fae03e65c43babe70e8baf7284a54dee82d3b6a7d191ee46e774a7690303c33ae95b6af4dc57677605c55c0 WHIRLPOOL 1cee74680e58a5fa575a26c0cc248a4576285117862f6a133429fc4bfe06618050cbdd052e00b110d0968162b960d12a0051cb3336f9751879aff1366b577831
 EBUILD netbeans-javafx-9999_p20161014.ebuild 4438 SHA256 6cb105fe4f6dd519bba700c6483a85979bc8aad6216980cb4704dd8d2db72b21 SHA512 7d46e1fbeb77a67130744ba0f607c65f86337bb90f09beab14b32fef0f588ab0bf4f52a8785dd6e30747122fb782fcd9cf2606ef611ecd59b114d52313654dce WHIRLPOOL 0ab00005154cd6d62d8c62e448ffe9f142915ab65e2da991fe3c24c46a87304078262abe13683caf0e8ab99d84c6816ea0aad00167c4c6db94d17c318e13dc17
+EBUILD netbeans-javafx-9999_p20161017.ebuild 4438 SHA256 e51dbd5926b5993bcd285fc5517afff530815e3d713a778a0ed154189337e49a SHA512 840f7b6905dc35ec9b70d8113b45d44a05f921bbac49413b2505f6a696d35d6bb256531c45bfb07bb36f54e62b42119dc443aa5c1db4760bb1f6941f0550b0a7 WHIRLPOOL dbc425a85a1107be3840f9daea4604b386f11f490815c82902a9230ab0cd94df756d23b3e284b3bb49d5f61488f3fffa1c34aa38863dc5ee5b1c5556ac8ddcac
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-javafx/netbeans-javafx-9999_p20161017.ebuild b/dev-java/netbeans-javafx/netbeans-javafx-9999_p20161017.ebuild
new file mode 100644
index 0000000..afbcd16
--- /dev/null
+++ b/dev-java/netbeans-javafx/netbeans-javafx-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 ac5309a..0f69016 100644
--- a/dev-java/netbeans-mobility/Manifest
+++ b/dev-java/netbeans-mobility/Manifest
@@ -27,6 +27,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -51,4 +52,5 @@ EBUILD netbeans-mobility-9999_p20161006.ebuild 4133 SHA256 252c993249cb9b7df0019
 EBUILD netbeans-mobility-9999_p20161007.ebuild 4133 SHA256 d8cc18ca2631e44feebf47f686433d45480d0e1ef8d23899a8ef155e2343b684 SHA512 527386264754a75a8ba59cb9eedc909c3504b9fe5e30c4d4d73cb31de24d3c72c984b838f5312077626f9f711f2a03da047de144ad94e9a686889281d317dace WHIRLPOOL 349c14562f4d9140f929525730acb31fc999128c43a96bc96b527164b75a8f2d467dcf2207c3da4fb37f7b78c4af60fe24c049631a7e1d926f7e2539038d5766
 EBUILD netbeans-mobility-9999_p20161013.ebuild 4133 SHA256 1e552e201e9912659c8741c1e745b03cf7ec999096848cb8fa1f69486a679e32 SHA512 251a5de4d4a6fb55a7fabc4c7a23b600b4994c492a1a5a99b2becd63f2eca863cecba836a2dac77583e57059e5e0b043dc43bd6a22c88925a639b5d860d3144d WHIRLPOOL 8edb9b538cceaca4b9e3f849d1fc8657f866dad58cd3c6063ea9b3fc9a433c5c6cdb05c84d868b5d15ada731f662c5c896dc76c0f4c2ca26635ee09b4c417039
 EBUILD netbeans-mobility-9999_p20161014.ebuild 4133 SHA256 96c2de40df3941cda9ee528bd7ed065a71db83d8a41a01565aebbdae8c636934 SHA512 a2e69d3eaf82615c22fdfbeb1b25d5fc7015b0f914c7e427f20a7fa533d37b70c16e12072334f5651acdaaf07d041a92dfcc0bbe8a472447409720fa1f614db8 WHIRLPOOL 910fb1f0f3d6053ef9ff8778e76f038ce8d8bd39ae678c0edc1375a9180d28e6f5aeedf759ae31426aec843b620d68f05deafe511ab039c706a769329ef71e04
+EBUILD netbeans-mobility-9999_p20161017.ebuild 4133 SHA256 8295441de47de484d108e1cf4d6938dae84bae86432d7a5c3709160b8a512fd2 SHA512 899236b99efd587486466366041343ddb82f8c80126cd4903920ea7bf7c519f82ba7a42037dba30152a2521b006f5193b74fe2fa84482c469a1a8b8e4b241d9c WHIRLPOOL eeef1f67aefb45fc4449e174e5d57540600e07272f8fcbaa33b818e62c5d0ead65ab407f723838479cdd8695acb9f0cf719aec03190887dd0bdb0ff635751f1a
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-mobility/netbeans-mobility-9999_p20161017.ebuild b/dev-java/netbeans-mobility/netbeans-mobility-9999_p20161017.ebuild
new file mode 100644
index 0000000..5ef6a88
--- /dev/null
+++ b/dev-java/netbeans-mobility/netbeans-mobility-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 8b7e9ed..7861482 100644
--- a/dev-java/netbeans-nb/Manifest
+++ b/dev-java/netbeans-nb/Manifest
@@ -30,6 +30,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -54,4 +55,5 @@ EBUILD netbeans-nb-9999_p20161006.ebuild 3832 SHA256 14ac3542836d93698f5a5056a30
 EBUILD netbeans-nb-9999_p20161007.ebuild 3832 SHA256 7cc83d59fa8dfc08cae707103bd23f9b64a201f178612f48aac453018b2bcec6 SHA512 2492ea02d4ac75ecf3690d693a2626d82378bfad6a6eae51685c5b918a5149aed7b9b9e4037791777da9f356901eb497b7da2eaef339c59bbe8acf05e3ec2ecf WHIRLPOOL 8e373e75f49851fdf6b25c84da7802b527870360d62988e6c76dba97bd4f551589ccec902cb10d85974ebe423dfdfd05dd227376e51817ed9269e8edd559dd72
 EBUILD netbeans-nb-9999_p20161013.ebuild 3832 SHA256 eded42c2cc1a7ca8fd2d0f07077f58d1e5fdf1afe5cae38a2a8260bfaadc04de SHA512 31d9be058df03376dff7a7a31af728c52ef2ba06c813ab5ab89a7d8e57513de55bde3b1bfc4af255c842f5ad366338f66955b4257db9d9f7ad35e6e92f3a5a9e WHIRLPOOL b43847bb14015cad56f202f7cd8cba7df961ce131cfc5233b07a991be8fe4fdf317c98248d4d8915a0dc61cf47aaab5fc9b162ee4a0302f4d95ec5bc73bd208e
 EBUILD netbeans-nb-9999_p20161014.ebuild 3832 SHA256 70d885031fe34335d23b69fa0b660884a04717eb51d357a0363f40d918ee0b6a SHA512 f7cbd344c94c7ac7a5d6607ae2ada6f79b444260cc83300bac78a6c7673ec64ecd921d7c21d5625ef374b9c764a0750a886b5c9740b778376765eb1aa6fca9b2 WHIRLPOOL f25598a5a6bcab539eddcc07229d338382a83d057d79fe68dfd192ed46621544634d0f7ff797792d1cbe8ec1796d434a7f580135ac4ee183499c5c683c1c151a
+EBUILD netbeans-nb-9999_p20161017.ebuild 3832 SHA256 07967fea6c42488475475d739b767a8b923e33176f6774d46857a68a452dfcbc SHA512 774b94ce00ab876dca22a42c3543ec95f0cff4f4d75bf87229d4c31cf24613ba61ccc16f337660b3836cd89160c8f0008b526086501d12255e4761b14cedb052 WHIRLPOOL 4ea95cba322b7240139f0f61a73194bbe3cf332a416d596156485e6810e3eabeab008d330f28e5bb8c05c06fbb32b355742af6ce2af923678f94f15074d891e5
 MISC metadata.xml 392 SHA256 01cdbcc83099b97486bd7b8e813e5b19c1138eb0d8d3e8a5683aafd579820435 SHA512 4d2f9160baa022d6a48b61d5f42e71cfd411d244e7a36436629bc5ee4036e4ce19079134d9a6c704ebe942306c2e0199d0591c1e54f92f8f3c8835147e639246 WHIRLPOOL c1131764e1cec66c56b977ebe36014b29e5a68e35ccc326c0cbadd050a6c625cf191c85c212e0a733661c008dab0d99f9a4cdc4c4ae0cc9d775ba1de554795a9

diff --git a/dev-java/netbeans-nb/netbeans-nb-9999_p20161017.ebuild b/dev-java/netbeans-nb/netbeans-nb-9999_p20161017.ebuild
new file mode 100644
index 0000000..64c1282
--- /dev/null
+++ b/dev-java/netbeans-nb/netbeans-nb-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 1bcdd26..6dce40b 100644
--- a/dev-java/netbeans-php/Manifest
+++ b/dev-java/netbeans-php/Manifest
@@ -32,6 +32,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -56,4 +57,5 @@ EBUILD netbeans-php-9999_p20161006.ebuild 4139 SHA256 fe65a8263647b2786fa2988a45
 EBUILD netbeans-php-9999_p20161007.ebuild 4139 SHA256 b9c0fb9b043117d0e35486d0b67f45ca54381b09a655b3a62a451f10ac620247 SHA512 f1b19f9b063dc0443623ba7a5300c38314226601dbd175dcac2afaffebf57e58e7e64b7266876e46c4c69e2ae7dedbd1989201525d9a4705e28d5e5d91941820 WHIRLPOOL acbe5626fd48992bd37116a2039f3df60fac83d3b3f1cf1dc54f77da9dc5b4de37aae314f28a49346d4e8aa507dec3b75f4a13c2b85eb078d4030d64490ca978
 EBUILD netbeans-php-9999_p20161013.ebuild 4139 SHA256 7d7322a832ee76bfea95795dbc8fe8ed7b5b9d21c0fa02c9ea3dba070bb640fd SHA512 77fc83cfaff6b7e0413eba53440a3dcabf52a6eb8c4bbcbc0ad6733165650a154a21267f2f87353ba3a04941510d417f8c4963d681d0f505aaca469bba64536e WHIRLPOOL 2c8f4f652e0d8c60242ac92071a3da0455796bcfbdb5b96737b8845b84746faf8625400aa24e64d167a6b295c7cb85580efd0f4a0a8b5fe22918128feb04ebee
 EBUILD netbeans-php-9999_p20161014.ebuild 4139 SHA256 407bae0771f9e9d4f707377e873c83fed8165a37f5d66af70258855fffa3f2f3 SHA512 a8973cc8ef2913c01a6a0af976c70094eccbdfd1e39a619b73e4fae6a33cb16964091965341ce25d1d3a5581b3b9c0e1b7885bc8d3fb21e74df6cb43a2eb34c4 WHIRLPOOL 720cde214e702435d0955e04f25b72c5bac1276ba331507c5b717af6104c0b4b62b8cf80fd6c48b0daab2389f3a1accdbe518c1175bb6d91b7043e71838e219a
+EBUILD netbeans-php-9999_p20161017.ebuild 4139 SHA256 e36f6ac418fdc35991d1fa458c84050262668b463432db955e4468135c9f5df2 SHA512 d444bc1e8162752fdcb8e269e7087626eadcc7e1b48df2a6661c25d191ba7b8e7d814354b3521ae7374340c21d9aa5ca43780d7306eaf74587c413a003518694 WHIRLPOOL 438917ac98d974a5c55d5729aef01c7697c4b53464129ecfe93d5e0d570f7bc7693579ad53a35baa8c35ccd7d1bb748e09ff82a5ef38ec5935c33fdb7a33374e
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-php/netbeans-php-9999_p20161017.ebuild b/dev-java/netbeans-php/netbeans-php-9999_p20161017.ebuild
new file mode 100644
index 0000000..bb7a397
--- /dev/null
+++ b/dev-java/netbeans-php/netbeans-php-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 7c191fa..a56e5f1 100644
--- a/dev-java/netbeans-platform/Manifest
+++ b/dev-java/netbeans-platform/Manifest
@@ -53,6 +53,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -77,4 +78,5 @@ EBUILD netbeans-platform-9999_p20161006.ebuild 9241 SHA256 6347d9914cbef5b608788
 EBUILD netbeans-platform-9999_p20161007.ebuild 9241 SHA256 af867477d69d69bf04e6d5b78ef73a777dd92c07782114d6c06f40e5e2d0f9ae SHA512 28d6d322976c8b955d395e305f282b57df12a0c7b9a3181735beb5b6f598eb8d8048c73796030774489849a0e0ef354cb1ca4bbc5dbfa867fcb7c6bdd2912182 WHIRLPOOL bf0482a959301feca4cc7e8d77374f3de06d582a0516c3cfe717c31e493d8b797f5040b9a5c82d07045d69cc25a4c03c223edeeb7b167a12515029c597b4cc08
 EBUILD netbeans-platform-9999_p20161013.ebuild 9278 SHA256 fb3cf887c946b8c75fd03c6252a0f59b9b6abbc526eb5f21fd089ddc1638be28 SHA512 c013e9976590823e5887c9cb766253d0a3238cdc1d66f84631919e783c87c32e4ff5480679fe25d2fb4ef9b4f30739d422c2c5d530165aaed3aca72bf33febc1 WHIRLPOOL ae5a36f64412b895e2af069ea7cad0beefe284e6906f6e3653349e600196f4d5a517cce10ee1458cefd1cc51fdf0ab1e9cc872b494b2618c29ad0ef809c91f0f
 EBUILD netbeans-platform-9999_p20161014.ebuild 9278 SHA256 87d7886322e0060bd0fb9548e6d019ddcf61daec131031f69d7f817df7b6df17 SHA512 6477a7086df2978325dbde844d2931076f603de4e93edda76d4d9d17122114d6b33a5808e694f718c8161cfb729dc4c83cc5d48847533fd69b5e8d3c5647c41b WHIRLPOOL 02bc5f0065bfab043b73720e7a55d7e5e50b39bf85f2835bde05f88c0bb305e1571d4e85c567f3506e070f717b0c7f2849475e11590fb8d4b386de8db7333311
+EBUILD netbeans-platform-9999_p20161017.ebuild 9278 SHA256 5c7e8761d1fc13878abbb480b8bc85db3d0229adc0e5dfb0be3d00775fd7f1e8 SHA512 6fc68d78eb82b926aac2d734bca8156f3aea4d96367d7cd88de12dd1ad026e4a5c97a6a19c2ddc9549ea371c62b71cd47c3669020194feb9b41e5806bfad6d60 WHIRLPOOL 787ece5ecaa3fbe6bd23722ae2be078213a05f9c9f94f850d01ead02b28e13e6db5030d8bc153c1ff85fef58404ecc6937239183de982cde4481bcb0436d5df9
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-platform/netbeans-platform-9999_p20161017.ebuild b/dev-java/netbeans-platform/netbeans-platform-9999_p20161017.ebuild
new file mode 100644
index 0000000..f2b5158
--- /dev/null
+++ b/dev-java/netbeans-platform/netbeans-platform-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 10b67d5..97204df 100644
--- a/dev-java/netbeans-profiler/Manifest
+++ b/dev-java/netbeans-profiler/Manifest
@@ -27,6 +27,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -51,4 +52,5 @@ EBUILD netbeans-profiler-9999_p20161006.ebuild 3193 SHA256 1c305129332f3058f8387
 EBUILD netbeans-profiler-9999_p20161007.ebuild 3193 SHA256 df901827120226577c77b17ccc6aace8e12f6fec78a44e428a25f21ec738d128 SHA512 de94102eaea306984e9e850c2ceb4a98d152aa82b7e4efb2192b2cca8cb552ac7adc1ef0a3c7142e2e8174fb54b3f6271d268e93ed72d605b087e353b7b7582b WHIRLPOOL 4b9a44048c270a52e8408dd4f7f4cf5643eb524893c0272caff064ebce832405b24d3fed91cab3793bdc789b3cdcdbba600b56257ff6b7b68fe9c8bbda6784f4
 EBUILD netbeans-profiler-9999_p20161013.ebuild 3193 SHA256 535f8abfc25551b015ce907709749642f81f42fe2a9dcd0d7d71e19a81f36be7 SHA512 76f4a78bedf24e96e3f85118702575e5b9b294039329ce49ffc389f303debbf128d2ad5a69c590130cf2338960f4205ff53c7cbcba0e1915d83e1fa4df8a3750 WHIRLPOOL 7c4b3ff670f7161418d17132d45d66270f738e5bd45e24bfa3a1b65f149256072001556faacd9bc2225be5656ccbfc90c4042346a6268fb27b6ab94800edcbc4
 EBUILD netbeans-profiler-9999_p20161014.ebuild 3193 SHA256 684125fcaa33cfe7924d9f045a6742f95ce865bf2915003582fa61468537b895 SHA512 4453ac83fc8042b7b73b390ac96b346d63954b98dec9967ccc706148708ef4562af50374bfdfd905dfb6af2114a6ced74f9819a3d8fc106ae514371d152dbd04 WHIRLPOOL e9664a6a654d28adeb4e570b5e968c1a113a774f0b5033bee9b47e5d54a51cbb67d5df6c850959254411e4ea525cfe27baa589867a1b217d8bc3b73c7398172e
+EBUILD netbeans-profiler-9999_p20161017.ebuild 3193 SHA256 515f4808bd17adfb8bc7e6e65c3bb919c7d466e355bcb982b81aeac9205426c5 SHA512 2a5ec4169b0f276ccf3d32980bd35513bb238bf1cc3d2305a011d608178486761d4d001c01aa28f2adf80686b17ea44b290153496695a75a39c0e788081f63fa WHIRLPOOL 194ff77785b9d0c12d2d202738e16290434a28d7f3e8e2c3547271afd735f0d98181555b889050b30efdd8862fb2047faa40369aec42432af20372906a428aab
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-profiler/netbeans-profiler-9999_p20161017.ebuild b/dev-java/netbeans-profiler/netbeans-profiler-9999_p20161017.ebuild
new file mode 100644
index 0000000..8705b4b
--- /dev/null
+++ b/dev-java/netbeans-profiler/netbeans-profiler-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 2fae2fb..f3a22a0 100644
--- a/dev-java/netbeans-webcommon/Manifest
+++ b/dev-java/netbeans-webcommon/Manifest
@@ -46,6 +46,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -70,4 +71,5 @@ EBUILD netbeans-webcommon-9999_p20161006.ebuild 5963 SHA256 e27a04bcde516695ce64
 EBUILD netbeans-webcommon-9999_p20161007.ebuild 5963 SHA256 a698518b7659711df2e342b7c68e546acf5e6b97fac78da6f7ecd73a7842a677 SHA512 e266bc9038d1c5bd41132e7bd2d468fade90744d2c0e99793a1180d266b065f5629fee0e27dcbf7c7d289c7693892a47d8af26436dcc60e44cee8c1c53cd07d5 WHIRLPOOL b44fcb4ef9297e042c28df8902215356ce7668d1d964013dede186a5a59b12f4d9bee1eee74a38f31a72e9da05b6fdfb83291b9b30aa81b47d2d262097cbd1c0
 EBUILD netbeans-webcommon-9999_p20161013.ebuild 5974 SHA256 dbba9df833735655ac93a07cf73c90a1ecdcfa361132c25959408955535cd6a6 SHA512 73d0377b2ddc17baa301275789b375acb2bf228a164bb4124c17cb389fc19139c709e58c35a42e914382e5581f3ec4281338014024bd071086fb993ddc7b1d27 WHIRLPOOL 9704ff6c26b8d58f3d60ceef76eda6c3359e9636ab66e2f0b3cfd9c4733a79f1e1b0b7101fc296f31d5288fe5c82f056c96b9922755992e057bf3c913a2e4c78
 EBUILD netbeans-webcommon-9999_p20161014.ebuild 5974 SHA256 7d43089fc895c1c6a857221998d529f00bdaa9a751f0e251693c4f66520fec1a SHA512 6d4c3b9c23ca14456028c42282761c6b48c559a0d91ab8a0a872f815370992b225f8a151692a3a023af9ee0196a0b787df645320e0b217be59f085b3fdb88043 WHIRLPOOL 51a3bba1a532c66855e9e24278437ec88e3768c973c46c14f7cafac2ffbac93631592574b57ced91c3d4344918629f7df523fac03f0712dc8b6ef5540de9a621
+EBUILD netbeans-webcommon-9999_p20161017.ebuild 5974 SHA256 329ce10ec34c4dad9e9b32899ce97e68b6fd748553061bc3b2d251058868a894 SHA512 0888a3d0cbbfdff1809f363abac6242440e1cd6f9e2b519a313aef3b9545bad7b426598705be20abde6f3a3e2be3a5d5f1d8ff201f6e9179dabb9d3ab09e2103 WHIRLPOOL b3c08e97b645fd860b9592b6df864586da5a16b17d463f58cbf0c4a417d3088d2654fbec432699914d7ce171ec31b1781a10f2acefc79afdeb5e25fcfca923f2
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-webcommon/netbeans-webcommon-9999_p20161017.ebuild b/dev-java/netbeans-webcommon/netbeans-webcommon-9999_p20161017.ebuild
new file mode 100644
index 0000000..f5b007c
--- /dev/null
+++ b/dev-java/netbeans-webcommon/netbeans-webcommon-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 0ba6d73..3c56168 100644
--- a/dev-java/netbeans-websvccommon/Manifest
+++ b/dev-java/netbeans-websvccommon/Manifest
@@ -27,6 +27,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -51,4 +52,5 @@ EBUILD netbeans-websvccommon-9999_p20161006.ebuild 2442 SHA256 3d28d9be054e5a74c
 EBUILD netbeans-websvccommon-9999_p20161007.ebuild 2442 SHA256 cef64961377a259a45cb4f95c542a569a6966396c03530dd658fab1509678f07 SHA512 45370f8af74a40ce429717d53f01bbc43bff005c6f3f5108f9c38432f7591ec914fc8cb58001547531509dfdc9ad691d7e9134de7b398760cb62219f1d79c6a4 WHIRLPOOL c1caff1d6c8e324a6845321f5884f8d2f67d69a1b35de86e099e2774e99048d86ed9fbf5c21c541c65ac28a493f1524ba4fbfbb8a5f24bbf5cc7811e6377b2a6
 EBUILD netbeans-websvccommon-9999_p20161013.ebuild 2442 SHA256 41878ba19a2c4a5fc7884ef10c4af348fd1c70754c7e4831db71865d41ff60b7 SHA512 e8a120fb6be558828ea166df8c8b750b4ad43c2d6bb90b2cabd3c8cafe44b3fc674ec15d6783b04f6ae9e1677b87aaf409f1f20c0efd0a8fd56845559c6c798e WHIRLPOOL f8c325b0c57b98adc967c5e98af38af6ed724f85a304dca65315b513d0df405a803c5bb7cbc5c4d57495f19c42e325f91ec3db1df55b8954ad570197a521dbb7
 EBUILD netbeans-websvccommon-9999_p20161014.ebuild 2442 SHA256 8c8dca24c925c713c7c72c15bd26bfd4de1ec8295144c0dd226a2004c3482b2c SHA512 4d41023c0dfdb16990de843c959c6fd400dfae2d0db50dd204213f3b3a998e6797ee8a09036a3e539451b6eb4f22ecd818fcfa854bdf53eb6b618e4317fde0b7 WHIRLPOOL 8d3dbc685fb554eefdc98e56e1f969a2a0334f700eac883226c1b2bc1e262d327a396e87815ac58989d494d7bede6dc6492672f89c808a0123df5d070b049334
+EBUILD netbeans-websvccommon-9999_p20161017.ebuild 2442 SHA256 72ded53c1206e1511082e29b76a2da28d5574ebe36e51d83532e637a63dc8db0 SHA512 3ee3245c44db972a2d02aba67a56a67971bb51b1044896d7bb8d69672776b17165c7502e054fdb2afe36586685781b62ae10bfa6132c7d0218c030ceeb1b8b7e WHIRLPOOL 92eb1b8c80a63c779b6fbd321762812d10699bea4ef297bb882ce718c8596fd0fae1febe8f6a5fcac69df7659b2e46a2e5991d474c034ab902ce7ce228f8fedb
 MISC metadata.xml 247 SHA256 8e0ccbf349cdd36adaaa8c3becadea9b65febd7868f27664ef7e70a1197765fe SHA512 1a68c1448a18938e13e6e39e718934a3e700b1d2ca708332d9cefd522d30049794b281c1cc8f788f1d0eb73c468a55b67a4bafbcf6e43317978d661d5d736faf WHIRLPOOL aaa66eab1db9d82717d76e5c65990f7f30e9527a6573006ebc43cc0edb05550ddce87e8e911ba7c7d67de863e6a191cc351b31fed299c4654a7b894f9eb13740

diff --git a/dev-java/netbeans-websvccommon/netbeans-websvccommon-9999_p20161017.ebuild b/dev-java/netbeans-websvccommon/netbeans-websvccommon-9999_p20161017.ebuild
new file mode 100644
index 0000000..61eae9f
--- /dev/null
+++ b/dev-java/netbeans-websvccommon/netbeans-websvccommon-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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 7caee9e..6369c3e 100644
--- a/dev-util/netbeans/Manifest
+++ b/dev-util/netbeans/Manifest
@@ -32,6 +32,7 @@ DIST netbeans-trunk-nightly-201610060002-src.zip 218005795 SHA256 1aff56080e142a
 DIST netbeans-trunk-nightly-201610070002-src.zip 218006580 SHA256 f8d583408b3219efec6b892090955f255bd087c46a05b863a2de9d341236ecf2 SHA512 aa0efd3bbdb4dc2af2570608e5e5c1dcccc1537dabf6d13f9cae9174a272da6b315e97dbfda4c63ff0ab5404be8167c41aa49dba98c9a7eadc8e09fcb2855d46 WHIRLPOOL 2b0f76c982f2badeca4889ec9326dd77f421f0de407fd28318f5ed99b99ed51a6335d49bc0e8d7ecce21f63a784adc6920fef3598caebff288ed634b50516d99
 DIST netbeans-trunk-nightly-201610130002-src.zip 218229380 SHA256 02482b39c317970c794a4eb8c331121e67aa338a278d024d2cae0dee8ede0cf3 SHA512 eb855690d48046d16a2eb22dc93de8ddbdabc2cfd3cd16901ca16a36a4071aafef9061411b32414639d4239bcbe4d609c7a935f8dd932b7c38354d283d99e0e7 WHIRLPOOL 7ec6a0f0518da70610bd762254db42b4bc60670e4ff4063e9b55f4d789ffa52d546c7f3d01d83b001cea0a5d88b9078c7699c2648e4a81b7f2cb9a56cf584157
 DIST netbeans-trunk-nightly-201610140002-src.zip 218231691 SHA256 94d697b32ab9c72d30e5a393c82dc2bb2a9fa8f544743e3a54d3a21f7c897aa5 SHA512 29d44fb4a63db4edddff0833eb59676b0a82be3b8be2b3193be0969e4ec4f227a970c589b08a07cc9ff575f6470d08681e08753861e15efc3d211bf16c6e5d1a WHIRLPOOL 965e8aceeebc91faa4b1ed9e2b203cc30d0707ef2ec55462e756aea663bf8669e0138dc14eb727561723ffa59e25a7f702424bfee54f229b8e0c916926423af3
+DIST netbeans-trunk-nightly-201610170002-src.zip 218266835 SHA256 57ea6623695297e5a29de1f5ad9dd38a34bb02523e211ea98bbd19afa4c494e3 SHA512 226bf93a3928298bdeaa5072a09fc82bceb1651e21de13ac7d62bdcf7bebe4f64da00eaea0c3eacfc1d4622045cd40bda4c7724828b05268c05ffd1b6ca9da11 WHIRLPOOL 9fa721f5faa75154b0d0bbd09c35a802822dbed321b1c12a2c777390d5d8a21b0357e929ddc0f699135be9484ee82442b2fad8efe3f69994af09187737df5a7c
 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
@@ -56,4 +57,5 @@ EBUILD netbeans-9999_p20161006.ebuild 6199 SHA256 e66c59f5b14b51f32e7324ee331278
 EBUILD netbeans-9999_p20161007.ebuild 6199 SHA256 278a3687d404a7bc79fc3ed3543744c1906f1326684cb78438c3233f1a670ac7 SHA512 cd27b896daf7ade1a953e1af11539813697df2095ba6f06091740e2e4ac7160ae701aa7afc7ce4b1d0810ead707729b1755f3a43fc6f3ad6c811812f5b5ba4d3 WHIRLPOOL e384e5150098b61cdca01fbf7b372aad9a8c50307cfb9c7de34ee37bb53b718e67fcaf0b9032de34ee320c6d76b562588a558e8919013989081e51c3932ef6e8
 EBUILD netbeans-9999_p20161013.ebuild 6199 SHA256 24f1a0b549a5c2d4a3d2a30702758341f19ac8b0616159b52175b91b596b530c SHA512 26868e16b863d8b246def0af97da80abb3e721ed005d8f7c4abaeacfd7034709c33e52d82ac532814220147652ea0fd22e1f62fefb77b1f4c83003c2bfe63a29 WHIRLPOOL 51f9cedd82ac9ab9e3550ae4bf52f869fe7a32a1c6ddeb60ecba7b97598d7103e1c5ebb8340e5d1ec290a336727a3d94ff632c96467351148ee135a9b44b49a4
 EBUILD netbeans-9999_p20161014.ebuild 6199 SHA256 90b698a5893a65fa83594d5222c29debd64c2b4f1de3673a97a3f7e2dd2344ef SHA512 9e7d8527d6522de825ea1c8edf4438508d5ec3fd31a4eb680bf6b4adea8ea0bdd25b22165d4bbf438dbe73377537b7064c194bc54227e35b0716b1252605df70 WHIRLPOOL b509e4163653fe70aa78f7a155ed23df687ab600ce82aaeea97c5460f93c2cf515c29ed0755f8f7208e37b5dd0a92f54b963941617710e4ce354ee2e6c7e92ec
+EBUILD netbeans-9999_p20161017.ebuild 6199 SHA256 02bdb6ff2ca77c47015d2c54a4906162076cbc78224ffab3a69fc4b083acfa7b SHA512 1c6a00ce991e5a1fa747b2a059d0777676763249dc5c4545d2c87d74906821a95354335cf46a279e6705f2548db9c516f1fdf8af4248c0a0c357d75bee1c89a4 WHIRLPOOL 71f709b313b3f0f678e643b05cd519cce6bc814ad6dfa51b22a9bccfbfd3e7536783cfcd290915b94034485be5fc7d6bbfce6c3d3cbd752e92ba92671c5c3184
 MISC metadata.xml 329 SHA256 8aeaf2a0228f15c2e4140f401b30f083509bd99d0a578873069f3595cd8555f3 SHA512 d5d878b3903238db8e1c807862c68fff34e86b972daac3e38a3b283c802ba8a5e6345723740f5ecf7b0313daa5430708a21eca4d4a1415069cf836aaf5429640 WHIRLPOOL 799a9b79b1b447bda9631f67e2dfaf722376740e1d2037796528a05f9745eeed00d9990a74a65ce09f74bc5e1d60a887abde540c3c62487d7dd49b8377c15834

diff --git a/dev-util/netbeans/netbeans-9999_p20161017.ebuild b/dev-util/netbeans/netbeans-9999_p20161017.ebuild
new file mode 100644
index 0000000..70309a2
--- /dev/null
+++ b/dev-util/netbeans/netbeans-9999_p20161017.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-17_00-02-33/zip/netbeans-trunk-nightly-201610170002-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
+}


                 reply	other threads:[~2016-10-17  8:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476691547.7d8f46e4aeed3d800b0cc49325d472bb79d18163.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox