diff options
Diffstat (limited to 'dev-java/netbeans-harness')
-rw-r--r-- | dev-java/netbeans-harness/Manifest | 9 | ||||
-rw-r--r-- | dev-java/netbeans-harness/metadata.xml | 12 | ||||
-rw-r--r-- | dev-java/netbeans-harness/netbeans-harness-8.2.ebuild | 100 |
3 files changed, 121 insertions, 0 deletions
diff --git a/dev-java/netbeans-harness/Manifest b/dev-java/netbeans-harness/Manifest new file mode 100644 index 000000000000..755a62f0d458 --- /dev/null +++ b/dev-java/netbeans-harness/Manifest @@ -0,0 +1,9 @@ +DIST 20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar 61713 BLAKE2B 4b4c47851bca5a7cb4e81791ed186790167e5804a072f52a0ad75d6e133f7f37875ed20350f6d39b72da32aa659486e4d3334972f21ff27d8f0a400545bc3793 SHA512 2d06db5267ac5d8fd227819014177f0d5cc345583628f1ff2fff89f180a4269936a136af0b4649cf43603b0adab6ce3e3f525ef2033537c6f035b558c356d900 +DIST 49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip 579550 BLAKE2B e58aecad031e08a69d9f3f69be74960a9ed8049a94d8445bf5750c6b2907b4739f63d1f37ac6aa50a5fe96c02cba7d3ccfb836304b6956d3a21add3d8c83f32a SHA512 3de7720a392813cbbbc73a6ce2a745e10054c0888df61b1e623bf327f8a4584a9eaa07303fc41d01d2088fd6c868e7273c6355d23839dfaa9009d1f672520d58 +DIST A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar 109823 BLAKE2B ac04471f6fd5869d4fff8fe86749b599cd49d81d55319085c01f7fdd7ff30aebeffafa46dad254e7193fe3d035f3b4d0310a7e9242cb54daf82188510e4fcafb SHA512 5a0089c36c35ffa2c243cbaee376a246dbfd3dd3f170fa233946b6134f9c80dda610f2900e8bbd1553c3e8bdd3b5548145c881745acc720ec1e059d8252b8399 +DIST D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip 1647417 BLAKE2B e06b4df3e96cdaf8150c74f2039a28251a55469449674cbb045a46d7866ddfa52f6e3ac4a01a7c7da4f40906038245574f1cb208aa3385bdc48f88ece3924519 SHA512 ffad7d45643015d178cdb1b5bb075f0232470f5f7b82acd87d3dbf88e2034aed04fa9fadadbf7831d3c57fe0c4bc9684d841aebaa8a99ba1d6c1f6cb13f80359 +DIST D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar 1713398 BLAKE2B e06cc8c989a3ecf5c501ad3e187b8f2afcd7a4838345812b52e0496a2a68b481d2f4406bde00f9cad662d94d97494769d7ea3a2686cf62d3691d953d67701010 SHA512 66d1435d2214c7259a4a683bbc3596a11bc99568081c214281a635fc0d5af10bbbddf5efbd040169e0e077abc25a4cb3f790530ce2e514270cdf51e9c916d065 +DIST netbeans-8.2-201609300101-src.zip 217356974 BLAKE2B 0afd60c1060a0a1d7be882628a0d4df1d8e214aabb4c8ec511341e40960eb291dbd768150711e3d639e6cd200136d2170e3cfead6c9c76be19509327debcf8a9 SHA512 d0499489dcd9383f719209997fd5518ea93ad5c2f727005f074a351a4adc7f8708ebff972a4bff4572e2ba9237b14c7a24b7fb1f89100e33012e14404f0336e7 +DIST netbeans-8.2-build.xml.patch.bz2 2678 BLAKE2B abfb7cb228a8f0a03d052226d4ea6b5ce111d8d246cf070a2548a6019b7abf793af5fb21dcde54bcfaaa31ffdfdc112f742971a7b55dfc79a5d78483bde299d4 SHA512 a287681acc0771445f9389b22ca6fd855393c0b9e8885680d13c9157aa37b215162aac6f958d0831dc64a55fc21a391fdee13c3ab9a97ad416929c6a4710b619 +EBUILD netbeans-harness-8.2.ebuild 3752 BLAKE2B 46064f2fc61e80ad005c4de3d020d9178c0fd940704d4c6339e0384bbd50b36cf29244479ee258f7ced555e126733d1e930cd23f72dacc94eb150e81ce670ec1 SHA512 b1e360b877145e24b683e38b3b912ea19daed54bf5c0d5034b536acab40ddb535656afe082d6c1ab1ea56a1e885b332d7b6694dc513bc91b3e9fc51ef0855b18 +MISC metadata.xml 342 BLAKE2B 49be3d228c95b57c3291dba351ab2d939f529fcf4ea91b6155b5d55ac90d4e736fc9b6671b682414df89a1248709b4c941671d705eb9e86bfd732425c0103822 SHA512 6bac4f54bded8acf009eadd47ecc2dbd4fa644fa5d590da30e442489313735dfd8a3f96d1621aea82e2bb820d1c0bf14bd7b276542f767cc321aaed20f4e57e3 diff --git a/dev-java/netbeans-harness/metadata.xml b/dev-java/netbeans-harness/metadata.xml new file mode 100644 index 000000000000..85f4d904aad0 --- /dev/null +++ b/dev-java/netbeans-harness/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>fordfrog@gentoo.org</email> + <name>Miroslav Ć ulc</name> +</maintainer> +<maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> +</maintainer> +</pkgmetadata> diff --git a/dev-java/netbeans-harness/netbeans-harness-8.2.ebuild b/dev-java/netbeans-harness/netbeans-harness-8.2.ebuild new file mode 100644 index 000000000000..9e5f5e9db7a2 --- /dev/null +++ b/dev-java/netbeans-harness/netbeans-harness-8.2.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Netbeans Harness" +HOMEPAGE="http://netbeans.org/features/platform/" +SLOT="8.2" +SOURCE_URL="http://download.netbeans.org/netbeans/8.2/final/zip/netbeans-8.2-201609300101-src.zip" +SRC_URI="${SOURCE_URL} + https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.2-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="virtual/jdk:1.8 + ~dev-java/netbeans-platform-${PV} + dev-java/javahelp:0" +DEPEND="${CDEPEND} + app-arch/unzip + >=dev-java/junit-4.4:4" +RDEPEND="${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-8.2-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 + + eapply netbeans-8.2-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 +} |