diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/netbeans-nb |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/netbeans-nb')
-rw-r--r-- | dev-java/netbeans-nb/Manifest | 15 | ||||
-rw-r--r-- | dev-java/netbeans-nb/files/7.2/keychain-support.patch | 26 | ||||
-rw-r--r-- | dev-java/netbeans-nb/files/8.0/keychain-support.patch | 26 | ||||
-rw-r--r-- | dev-java/netbeans-nb/metadata.xml | 16 | ||||
-rw-r--r-- | dev-java/netbeans-nb/netbeans-nb-8.0.2.ebuild | 147 | ||||
-rw-r--r-- | dev-java/netbeans-nb/netbeans-nb-8.1.ebuild | 127 | ||||
-rw-r--r-- | dev-java/netbeans-nb/netbeans-nb-8.2.ebuild | 114 |
7 files changed, 471 insertions, 0 deletions
diff --git a/dev-java/netbeans-nb/Manifest b/dev-java/netbeans-nb/Manifest new file mode 100644 index 000000000000..e8af7cc88356 --- /dev/null +++ b/dev-java/netbeans-nb/Manifest @@ -0,0 +1,15 @@ +AUX 7.2/keychain-support.patch 872 SHA256 75ca94102e72f7d2b7dd16729dd84ee781b04e80430f841a9546aebaa51662c6 SHA512 a09864d4b6458e7b64bbf3a6514231d5073340f1899c892ff9c0335efb7e1ab2437d3a11c7b2c3ebeb34bffe670305416cd95e95fc45ca8afd473d7395f9fc94 WHIRLPOOL bf9a183d7d42af9b5270151e6e6d44ff9079d2c8f0b80f9e9ac4018c8e8002e27de9afca1c57ba91d588aaaab60c194b059599f76a9d2e8b4ccf3b55022cc44f +AUX 8.0/keychain-support.patch 872 SHA256 75ca94102e72f7d2b7dd16729dd84ee781b04e80430f841a9546aebaa51662c6 SHA512 a09864d4b6458e7b64bbf3a6514231d5073340f1899c892ff9c0335efb7e1ab2437d3a11c7b2c3ebeb34bffe670305416cd95e95fc45ca8afd473d7395f9fc94 WHIRLPOOL bf9a183d7d42af9b5270151e6e6d44ff9079d2c8f0b80f9e9ac4018c8e8002e27de9afca1c57ba91d588aaaab60c194b059599f76a9d2e8b4ccf3b55022cc44f +DIST netbeans-7.0.png 20011 SHA256 1d519f018ebeff6e29436c8492dbb266446bd0144fb5519b2ef6637664de6f4a SHA512 67bc2673f3e770bbde10587e68890c3091ef38a850cdf48ca73e4c1a288246e1f757fd4ef1c7b052b6137f31fa6044c9bf3ea5a2a9e0ceaede132c106a746113 WHIRLPOOL ef41b010f5c5b2023152c9eb4390c40716025f1162dae68f6c65fc642f1732494f70b086a032599c696d053b963e4edc1220a3c1212ede6209c27fecb1ffe5fa +DIST netbeans-8.0.2-201411181905-src.zip 196585461 SHA256 581f80d3c2e8d87a0f007dd3f358ce0534a0bb2e4b3312cd6c8c7263713bc530 SHA512 9533de5b3c45e4a5b025213dd5602344e16d024e0cdb013f207ac3c7a9d8e63da19279f97910ad136777d75780c620224953f2974070d5c9833d1d6ef3fd427c WHIRLPOOL 2e45e83309743df167ddd1d58068848166d01ef6d9eec99ddf72b9ba7664cb182a04d6420ab03a9270842b3cd9a16a161c1eebb66953ef09158d8d521fb96516 +DIST netbeans-8.0.2-build.xml.patch.bz2 2678 SHA256 cf120f7fd8b4ad40e9abdcb09e7763fd93b4acef04ff0365e18f178706ea83bb SHA512 b61adf29bcb139207241c68513724f352420078583ca5e6d7856a4dd335ad36b7d05311eb6e14ff1c568aaf090de4ca083c32f6db1dec0b6f50d66a388bbedf7 WHIRLPOOL fb4d63329aa450a1b387fa45b59fa3c18d1a1ca8ecf9443111a3056d409a6d928d15dae275e9c564558f4b2abd54cc0f8db2df653ac432d9f58f8ef4dd747dff +DIST netbeans-8.1-201510222201-src.zip 208692973 SHA256 e8dd9b73304bc7e546150629f7555624b405e8a7af2cd5d616e7a91a0655f463 SHA512 c3ed9e8c9444b1685e3ed7e1a2525d8be43953994aebed962d39f8eae35b6ab0dcab0093b7eeb287e3c74e0620ceded1956ef93205837bb7749db49f53c1c285 WHIRLPOOL 7ff7c3441dbc8f1ebd6f5441c8371ef0ef392f45eef65e06efec3201f417e228fb32879df83ec23ae61898840eadcde43caa66d54182bf3aae2f44c683916268 +DIST netbeans-8.1-build.xml.patch.bz2 2671 SHA256 b5384db6533d41c7d3fdaffd3cd296d156ac99f0a026e3d74c4ac5b5d388a70f SHA512 1dd5dcf02fd81691b0f9c531470379138484dcbc271f65ba53a3844a1e697719e47cb98c90f92f92c5980a577d27370efc800297525f62da7211393ea0a18915 WHIRLPOOL c77621b5f4eea9e688d9714be9268d05f7c1e792d9d46d3a082418d8c1cb52c35f76d59f0befddc73f30a0e0e12c0af25b4b31c1cb69b68dd90e48638d7da509 +DIST netbeans-8.2-201609300101-src.zip 217356974 SHA256 5a7141176fe655807f04bdde12073116a77c1844e4ca7a071d95930b7cd7d5ac SHA512 d0499489dcd9383f719209997fd5518ea93ad5c2f727005f074a351a4adc7f8708ebff972a4bff4572e2ba9237b14c7a24b7fb1f89100e33012e14404f0336e7 WHIRLPOOL 378db0807a616205fee2623f1c1ada6284ecfc85badb06d68e56e91fbedbc4f73af3ce6e4e8eb8bdb9504d15cf20cdc2a30d5f9cad0c72329791f1a53803ca0e +DIST netbeans-8.2-build.xml.patch.bz2 2678 SHA256 d0b395111c04e82aeae2bf99eea17fb5b3275dab92939164602ad27569d73cb2 SHA512 a287681acc0771445f9389b22ca6fd855393c0b9e8885680d13c9157aa37b215162aac6f958d0831dc64a55fc21a391fdee13c3ab9a97ad416929c6a4710b619 WHIRLPOOL 0807ec60843a7e3a232fed52c91303ef47693fcdd364d5e12f2507ea6f073df4b18b0708efc92cce93580d4963cbefb85fa0c3962363542687bdc1e5e73bbb6c +EBUILD netbeans-nb-8.0.2.ebuild 4922 SHA256 6f1407adc45ab6d7b204907119b137ef7e3b8f509756471e32f547184444b5a0 SHA512 d46012bffe919cbf3c768a090e4b1a66e93d1cb9aebe41ff084de0e303c4a53e62ad15c184ee1263efc7326efea9463846961c41bd218d1eedaa7357190ccee8 WHIRLPOOL b61cea9aa16f76cf54f3c20820ee747534734d3760c9144bb089029adfa03c1e0e04632b97d6223519b8ca2cc86619d7bfca91445d5b8afc8476982266c9dc07 +EBUILD netbeans-nb-8.1.ebuild 4062 SHA256 572e1e3c3e56a6a031c6663b11bbd0c73b907f18c1423b6c8d11d6e5604ec07b SHA512 926e714bdd51afcb0ea8c5ee8ebb5e17ddb4001b015fa3cb90feafca5aac7cd709e38e69bd976f051e2fe5d69abb78af0f4fb142e4c4ec8a73f34a6597da7be2 WHIRLPOOL cd4b03768ec692d83774eda9910480742b95e42fe92cc8f64d85b4f428226cefd4d5bb1502ce7e179b2875d49012ea43b2acc11fb075809382c9de9a4952fe16 +EBUILD netbeans-nb-8.2.ebuild 3738 SHA256 2dd0320894b39be74c74b6cb5afb4aa8e41a749241354d67621e4276f9173c15 SHA512 26a0943335e05cfceac532ea0feecd0a1fe741cb898d9fa46356f898b9b56f08bceac5bec4d4599f5338ac7d0490b2f92567ab8dc914206ae1b4682ca5f683b3 WHIRLPOOL 35ce0134de8f26eada7fab1d071e5a73bbffbbc4438ff130392d782b3c7c2607ea867cecf9b281b3dfda14f2d4fbebe2e476ca7d01d984f2077cc8426597d438 +MISC ChangeLog 3529 SHA256 53eb1b33f00eae9b81b6d55fa74ab0463c65bc552a999a734621d2cdff79ca51 SHA512 6692fe361914204d7426f959ad068fa0e45da00ff8bd21bcc00caa70dd2c71bdcdd6193797583a3bbfdfc8daa7d8cbd578881cd6945ff946127a9c48a7eae4dd WHIRLPOOL a76c9a1e64ede9ef6fb820f4c46d0bf4f2711144a557dd48d0deead990e7fbe401a515137e3fae7f0fbeaf0f8004cf31553272bfbbb6d0b5d52f504127a7db2d +MISC ChangeLog-2015 4319 SHA256 3ea595001b0742b1969fbd5cbb5df9daabb1a9541e8856d4c4a4d7a9cfe46ace SHA512 cbe5c1dfef3a1464c8c3b8e25b805bd373ac54aa1128f0c88a4561ed62fb69351750ee1ae6b0eb3ca803c699ca7ca13510fe84bbded3efc411f2f19a44fbbdb0 WHIRLPOOL ab21108eade861a95357fd6e0c7823c5f489a7adfb25e02788f32d24bf9a527c141bdcdb7b606232bd1f842513700b27eb1d655de5806701b1c3fbc09887b5f9 +MISC metadata.xml 487 SHA256 6bde8ce12366190a06d47a858c48f89b2eccf095b9f2f8e0771cb5aa8d7d04e1 SHA512 3adb6a12417f68d9c6807560509bcc4e7f803b5f65229131a9958ebef55ec1d11bc3950db909a8ce0e6c691f95ca889167f9dc94871cf67ccb6293e5fbb34543 WHIRLPOOL 8d3c7d442637c70ff9386a6bb22026b404adbcddc9ccaca20c6238657d4432fce3f03d2052f045eaa49b1dd1c13670da9bd9f0898d9bc5f7f3433a7e758c3131 diff --git a/dev-java/netbeans-nb/files/7.2/keychain-support.patch b/dev-java/netbeans-nb/files/7.2/keychain-support.patch new file mode 100644 index 000000000000..4e9c4878fbcc --- /dev/null +++ b/dev-java/netbeans-nb/files/7.2/keychain-support.patch @@ -0,0 +1,26 @@ +# HG changeset patch +# Parent cbf7b2d2851314077b9c1ecd6ec95ce51453daf8 +diff -r cbf7b2d28513 -r 0350861eeabf ide/launcher/unix/netbeans +--- a/ide/launcher/unix/netbeans Tue Nov 09 13:44:15 2010 +0100 ++++ b/ide/launcher/unix/netbeans Tue Nov 09 14:21:18 2010 +0100 +@@ -169,6 +169,20 @@ + then + sh=/bin/bash + fi ++ keychain=`which keychain` ++ if [ -n "$keychain" ]; then ++ $keychain -q ++ . $HOME/.keychain/$HOSTNAME-sh ++ if [ -e $userdir/keychain-keys.txt ]; then ++ for key in `cat $userdir/keychain-keys.txt`; do ++ SSH_ASKPASS=`which x11-ssh-askpass` ++ export SSH_ASKPASS ++ if [ -n "$key" ]; then ++ keychain $key ++ fi ++ done ++ fi ++ fi + if [ "${founduserdir}" = "yes" ]; then + exec $sh "$nbexec" "$@" + else diff --git a/dev-java/netbeans-nb/files/8.0/keychain-support.patch b/dev-java/netbeans-nb/files/8.0/keychain-support.patch new file mode 100644 index 000000000000..4e9c4878fbcc --- /dev/null +++ b/dev-java/netbeans-nb/files/8.0/keychain-support.patch @@ -0,0 +1,26 @@ +# HG changeset patch +# Parent cbf7b2d2851314077b9c1ecd6ec95ce51453daf8 +diff -r cbf7b2d28513 -r 0350861eeabf ide/launcher/unix/netbeans +--- a/ide/launcher/unix/netbeans Tue Nov 09 13:44:15 2010 +0100 ++++ b/ide/launcher/unix/netbeans Tue Nov 09 14:21:18 2010 +0100 +@@ -169,6 +169,20 @@ + then + sh=/bin/bash + fi ++ keychain=`which keychain` ++ if [ -n "$keychain" ]; then ++ $keychain -q ++ . $HOME/.keychain/$HOSTNAME-sh ++ if [ -e $userdir/keychain-keys.txt ]; then ++ for key in `cat $userdir/keychain-keys.txt`; do ++ SSH_ASKPASS=`which x11-ssh-askpass` ++ export SSH_ASKPASS ++ if [ -n "$key" ]; then ++ keychain $key ++ fi ++ done ++ fi ++ fi + if [ "${founduserdir}" = "yes" ]; then + exec $sh "$nbexec" "$@" + else diff --git a/dev-java/netbeans-nb/metadata.xml b/dev-java/netbeans-nb/metadata.xml new file mode 100644 index 000000000000..198410c3e01b --- /dev/null +++ b/dev-java/netbeans-nb/metadata.xml @@ -0,0 +1,16 @@ +<?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> +<use> + <flag name="keychain">Automatically starts keychain on netbeans start and loads + specified keys so Netbeans can use them.</flag> +</use> +</pkgmetadata> diff --git a/dev-java/netbeans-nb/netbeans-nb-8.0.2.ebuild b/dev-java/netbeans-nb/netbeans-nb-8.0.2.ebuild new file mode 100644 index 000000000000..0127e902ae39 --- /dev/null +++ b/dev-java/netbeans-nb/netbeans-nb-8.0.2.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Netbeans IDE Branding" +HOMEPAGE="http://netbeans.org/" +SLOT="8.0" +SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip" +SRC_URI="${SOURCE_URL} + https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2 + https://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.0.png" +LICENSE="|| ( CDDL GPL-2-with-classpath-exception )" +KEYWORDS="amd64 x86" +IUSE="keychain" +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 + ${CDEPEND} + keychain? ( + net-misc/keychain:0 + net-misc/x11-ssh-askpass:0 + )" + +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" +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.0.2-build.xml.patch.bz2 +} + +src_prepare() { + einfo "Deleting bundled class files..." + find -name "*.class" -type f | xargs rm -vf + + epatch netbeans-8.0.2-build.xml.patch + use keychain && epatch "${FILESDIR}"/${SLOT}/keychain-support.patch + + # Support for custom patches + if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then + local files=`find "${NETBEANS80_PATCHES_DIR}" -type f` + + if [ -n "${files}" ] ; then + einfo "Applying custom patches:" + + for file in ${files} ; do + epatch "${file}" + done + fi + fi + + 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 +} + +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 +} + +pkg_postinst() { + if use keychain ; then + einfo "You enabled keychain support, that means NetBeans will use keychain for managing" + einfo "your keys while connecting to ssh protected repositories. If you want to load some" + einfo "keys on NetBeans startup, create file keychain-keys.txt in your userdir" + einfo "(~/.netbeans/${SLOT}/keychain-keys.txt) and put names of your keys in the file," + einfo "each key on single line, for example:" + einfo "id_dsa" + einfo "id_dsa_gentoo" + einfo "If on NetBeans startup key will not be handled by keychain yet, you will be asked" + einfo "for key password (only this time and never again). You can find more information" + einfo "about keychain at https://wiki.gentoo.org/wiki/Keychain" + fi +} diff --git a/dev-java/netbeans-nb/netbeans-nb-8.1.ebuild b/dev-java/netbeans-nb/netbeans-nb-8.1.ebuild new file mode 100644 index 000000000000..9406f3fc0ef1 --- /dev/null +++ b/dev-java/netbeans-nb/netbeans-nb-8.1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Netbeans IDE Branding" +HOMEPAGE="http://netbeans.org/" +SLOT="8.1" +SOURCE_URL="http://download.netbeans.org/netbeans/8.1/final/zip/netbeans-8.1-201510222201-src.zip" +SRC_URI="${SOURCE_URL} + https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.1-build.xml.patch.bz2 + https://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.0.png" +LICENSE="|| ( CDDL GPL-2-with-classpath-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 + ${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-8.1-build.xml.patch.bz2 +} + +src_prepare() { + einfo "Deleting bundled class files..." + find -name "*.class" -type f | xargs rm -vf + + epatch netbeans-8.1-build.xml.patch + + # Support for custom patches + if [ -n "${NETBEANS9999_PATCHES_DIR}" -a -d "${NETBEANS9999_PATCHES_DIR}" ] ; then + local files=`find "${NETBEANS9999_PATCHES_DIR}" -type f` + + if [ -n "${files}" ] ; then + einfo "Applying custom patches:" + + for file in ${files} ; do + epatch "${file}" + done + fi + fi + + 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 +} + +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-nb/netbeans-nb-8.2.ebuild b/dev-java/netbeans-nb/netbeans-nb-8.2.ebuild new file mode 100644 index 000000000000..490cca860c9a --- /dev/null +++ b/dev-java/netbeans-nb/netbeans-nb-8.2.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 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 IDE Branding" +HOMEPAGE="http://netbeans.org/" +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 + https://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.0.png" +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/netbeans-harness-${PV} + ~dev-java/netbeans-ide-${PV}" +DEPEND="${CDEPEND} + app-arch/unzip + dev-java/javahelp:0" +RDEPEND="${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-8.2-build.xml.patch.bz2 +} + +src_prepare() { + einfo "Deleting bundled class files..." + find -name "*.class" -type f | xargs rm -vf + + epatch netbeans-8.2-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 +} |