diff options
-rw-r--r-- | dev-util/netbeans-standalone/Manifest | 4 | ||||
-rw-r--r-- | dev-util/netbeans-standalone/netbeans-standalone-12.3.ebuild | 117 | ||||
-rw-r--r-- | dev-util/netbeans-standalone/netbeans-standalone-9999.ebuild | 8 |
3 files changed, 123 insertions, 6 deletions
diff --git a/dev-util/netbeans-standalone/Manifest b/dev-util/netbeans-standalone/Manifest index 04e3d7a63..ae24c5f88 100644 --- a/dev-util/netbeans-standalone/Manifest +++ b/dev-util/netbeans-standalone/Manifest @@ -1,9 +1,11 @@ AUX fix-private-debugger-access.patch 1621 BLAKE2B f3124edee73f31445a6093129a1de8a614991115dc5df39b794fbaad09ec64f7b7114faf4057906da4a0b5a17911e30ab774e6e49e14a3ee46dccbed13735f57 SHA512 b2fe14770733c5b9c53f18fdc5c001add901ff1b28755ae960ffb72ae6106fd930a832f2857e00e96c88f58d3339223b0321ee6474507b6c3c3b3739a807df19 +DIST netbeans-12.3-source.zip 140169309 BLAKE2B 03ec703a81ec6668627338bbd8761562f464ec941cc4c95138add1c2d2ff284611840806b0150917512ef9e055a94ed357f61a6f403f17b18eb01858847189f5 SHA512 22bc542432f5810692757178a8b2f6e7a5729e7a422e637beb22c80603f685345030db90dce5ddc467bd26659e48ddbc3cadaf4fab4d41a8bd7de421f030d67f DIST netbeans-standalone-12.0_p1.tar.gz 79470446 BLAKE2B 1fe8cf1700d3e3d71c8377d930fadf2969b5b5c87180449c9d2795e5450827ca450dfa5037459cdafc12888e429e1ba31a24a86dac562c2fc14137b3ee68c339 SHA512 75d0d947d53378a6ac816776a313c3b712d1beabd4c3c5cd09b8ad7771589f32a664f1e2b72865a72eb6416cd8f28888a44eeeb8e8a0ce27e495889ce6374dc5 DIST netbeans-standalone-12.1.tar.gz 79701591 BLAKE2B 929a6174bdf781b13a04bd98a5c66072ace663c636a9f770f2e398040e47d13bdaafb4a673d91af2c6e6562426a86f636b1c7c316e90ab859a888e6323c6d60f SHA512 ebcf5a7dbfbc50e17f786d0ea943c55da29f1a62ad5d2f67e98937069f90aaf339b82ad5a7bbc90121548f18eeced967b5c5d3254325bac2b7c181a687777298 DIST netbeans-standalone-12.2.tar.gz 80214617 BLAKE2B 4e6ae369d0721f6f0157d41a75801ebbe6a10f87b71c8c731336cc99e99751779b343d1b7f49f25ea42febf158a50bef4c2b9dcf32ae8d6e70270144927b0da3 SHA512 e86961d44abad89c50d4a5d095bc1b2bc4954b69acd8d44c16fb22f29bcd95f6b476f5dd6de265865976e87c115ef3278ffdb951fd845c4ad9e841064d604b27 EBUILD netbeans-standalone-12.0_p1.ebuild 5251 BLAKE2B b884660fa7827aa7d02f98c8c42b2f02105e6a146e568129ad5d2b9579090f53283bfc6f83ba028668f20e291f2c30c457fd8312a761164f4ed502b6117b4761 SHA512 9716d4d79ad41681ed484cdcaf630f746fd5a0be20a5afebfe621a0557ca3f89b553c0b399da7cc61e68152748166eca5dc87c440a915b9e78028bff085feae0 EBUILD netbeans-standalone-12.1.ebuild 5251 BLAKE2B b884660fa7827aa7d02f98c8c42b2f02105e6a146e568129ad5d2b9579090f53283bfc6f83ba028668f20e291f2c30c457fd8312a761164f4ed502b6117b4761 SHA512 9716d4d79ad41681ed484cdcaf630f746fd5a0be20a5afebfe621a0557ca3f89b553c0b399da7cc61e68152748166eca5dc87c440a915b9e78028bff085feae0 EBUILD netbeans-standalone-12.2.ebuild 5249 BLAKE2B 5124176d1df222c0ff734975a57b62656993ea76962cec696e398b30ff10e94c5a06f04244ab1b2191b759f5a8715d96abddd59c92fcf7cff343d1f0a0cba70e SHA512 45be423885d007163d7b5aaa982d32e4f1fb23d66a02fa3f3c15b3ccf5a9a1eddf40c13042eb5721d54001720a4ee83fb1e2360eb729cffd2440e9c6eb0702aa -EBUILD netbeans-standalone-9999.ebuild 5249 BLAKE2B 5124176d1df222c0ff734975a57b62656993ea76962cec696e398b30ff10e94c5a06f04244ab1b2191b759f5a8715d96abddd59c92fcf7cff343d1f0a0cba70e SHA512 45be423885d007163d7b5aaa982d32e4f1fb23d66a02fa3f3c15b3ccf5a9a1eddf40c13042eb5721d54001720a4ee83fb1e2360eb729cffd2440e9c6eb0702aa +EBUILD netbeans-standalone-12.3.ebuild 5188 BLAKE2B cf5b8c308803c88600f5834d3468b448764bd768b02693012be63b3a00fe200a1477dd1a5217651e9ec299f928e3bf8eaf79ee6deb89b8ec2a1f666f1ba4644a SHA512 d0393d1c05151b5848d8f8769951631fa40c46fe58bb8f77953359f2081993957183c369e2b9654f4d7c21f863acd370670e604d89d652bdb52fa0948bdef916 +EBUILD netbeans-standalone-9999.ebuild 5188 BLAKE2B cf5b8c308803c88600f5834d3468b448764bd768b02693012be63b3a00fe200a1477dd1a5217651e9ec299f928e3bf8eaf79ee6deb89b8ec2a1f666f1ba4644a SHA512 d0393d1c05151b5848d8f8769951631fa40c46fe58bb8f77953359f2081993957183c369e2b9654f4d7c21f863acd370670e604d89d652bdb52fa0948bdef916 MISC metadata.xml 338 BLAKE2B 25922d9e4c7c4cd111db8b96e1dcb3cf026d9262b9d0861a4bcd49009303fc8535afd370e301d3f51f3127516c3b2561d6d6f56de0433a835f85fa15d1ab5012 SHA512 b7525dac3a4947550c33f096550e82644ed8a790e915a66ee627f81727f58fcbf0a055f298f8b45ee8d08da747fec79a8276a96ce0dcc43b847341166fbea4e9 diff --git a/dev-util/netbeans-standalone/netbeans-standalone-12.3.ebuild b/dev-util/netbeans-standalone/netbeans-standalone-12.3.ebuild new file mode 100644 index 000000000..5a5dfda66 --- /dev/null +++ b/dev-util/netbeans-standalone/netbeans-standalone-12.3.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ANT_TASKS="ant-apache-bsf" + +if [ ${PV} = "9999" ]; then + EGIT_REPO_URI="https://github.com/apache/netbeans.git" +else + KEYWORDS="~amd64" + SRC_URI="mirror://apache/netbeans/netbeans/${PV}/netbeans-${PV}-source.zip" + S="${WORKDIR}" +fi + +inherit java-pkg-2 java-ant-2 desktop xdg $([[ ${PV} = "9999" ]] && echo git-r3) + +DESCRIPTION="Apache Netbeans IDE" +HOMEPAGE="https://netbeans.apache.org/" +LICENSE="Apache-2.0" +SLOT="$(ver_cut 1-1)" +IUSE="" + +DEPEND=">=virtual/jdk-11:*" +RDEPEND=">=virtual/jdk-11" + +PATCHES=( "${FILESDIR}"/fix-private-debugger-access.patch ) + +JAVA_PKG_BSFIX="off" +INSTALL_DIR=/usr/share/${PN}-${SLOT} + +pkg_pretend() { + if has network-sandbox ${FEATURES}; then + eerror + eerror "Netbeans downloads a lot of dependencies during the build" + eerror "process, so you need to disable network-sandbox feature" + eerror "to make this ebuild proceed (FEATURES=-network-sandbox)." + eerror "You can also use package.env to disable this feature" + eerror "for the package, see:" + eerror + eerror " https://wiki.gentoo.org/wiki//etc/portage/package.env" + eerror + die "network-sandbox is enabled, disable it to proceed"; + fi +} + +src_prepare() { + default +} + +src_compile() { + eant -Dcluster.config=full -Dpermit.jdk9.builds=true -Dbinaries.cache="${S}"/.hgexternalcache || die "Failed to compile" +} + +QA_PREBUILT=" + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/process_start + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/stat + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/pty_open + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/sigqueue + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/unbuffer.so + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/killall + usr/share/netbeans-standalone-11/ide/bin/nativeexecution/Linux-x86_64/pty + usr/share/netbeans-standalone-11/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so + usr/share/netbeans-standalone-11/profiler/lib/deployed/jdk15/linux-amd64/libprofilerinterface.so + usr/share/netbeans-standalone-11/profiler/lib/deployed/cvm/linux/libprofilerinterface_g.so + usr/share/netbeans-standalone-11/profiler/lib/deployed/cvm/linux/libprofilerinterface.so + usr/share/netbeans-standalone-11/platform/modules/lib/amd64/linux/libjnidispatch-440.so + usr/share/netbeans-standalone-11/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so +" + +src_install() { + pushd nbbuild/netbeans >/dev/null || die + + insinto ${INSTALL_DIR} + doins -r . + + rm -fr "${ED}"/${INSTALL_DIR}/ide/bin/nativeexecution/{Linux-{sparc_64,x86},MacOSX-{x86_64,x86},SunOS-{sparc,sparc_64,x86,x86_64},Windows-{x86,x86_64}} || die "Failed to remove unused binaries" + find "${ED}"/${INSTALL_DIR}/ \( -name *.exe -o -name *.cmd -o -name *.bat \) -type f -exec rm {} + || die "Failed to remove unused binaries" + rm -fr "${ED}"/${INSTALL_DIR}/profiler/lib/deployed/jdk15/{hpux-pa_risc2.0{,w},linux,mac,solaris-{amd64,i386,sparc{,v9}},windows{,-amd64}} || die "Failed to remove unused libraries" + rm -fr "${ED}"/${INSTALL_DIR}/profiler/lib/deployed/jdk16/{hpux-pa_risc2.0{,w},linux{,-arm,-arm-vfp-hflt},mac,solaris-{amd64,i386,sparc{,v9}},windows{,-amd64}} || die "Failed to remove unused libraries" + rm -fr "${ED}"/${INSTALL_DIR}/profiler/lib/deployed/cvm/windows || die "Failed to remove unused libraries" + rm -fr "${ED}"/${INSTALL_DIR}/platform/modules/lib/{i386,x86} || die "Failed to remove unused libraries" + find "${ED}"/${INSTALL_DIR}/ -name *.dll -type f -exec rm {} + || die "Failed to remove unused libraries" + + find "${ED}/${INSTALL_DIR}" -name "*.so*" -type f -exec chmod +x {} \; || die "Change .so permission failed" + exeinto ${INSTALL_DIR}/ide/bin/nativeexecution/Linux-x86_64/ + doexe ide/bin/nativeexecution/Linux-x86_64/{process_start,stat,pty_open,sigqueue,killall,pty} + exeinto ${INSTALL_DIR}/java/maven/bin + doexe java/maven/bin/mvn{,Debug,yjp} + exeinto ${INSTALL_DIR}/extide/ant/bin + doexe extide/ant/bin/{ant{,Run,Run.pl},complete-ant-cmd.pl,runant.{pl,py}} + + dodoc DEPENDENCIES NOTICE + dosym ${INSTALL_DIR}/bin/netbeans /usr/bin/${PN}-${SLOT} + fperms 755 ${INSTALL_DIR}/bin/netbeans + + insinto /etc/${PN}-${SLOT} + doins etc/* + rm -fr "${ED}"/${INSTALL_DIR}/etc + dosym ../../../../etc/${PN}-${SLOT} ${INSTALL_DIR}/etc + sed -i -e "s/#netbeans_jdkhome.*/netbeans_jdkhome=\$\(java-config -O\)/g" "${ED}"/etc/${PN}-${SLOT}/netbeans.conf || die "Failed to set set Netbeans JDK home" + + if [[ -e "${ED}"/${INSTALL_DIR}/bin/netbeans ]]; then + sed -i -e "s:\"\$progdir\"/../etc/:/etc/${PN}-${SLOT}/:" "${ED}"/${INSTALL_DIR}/bin/netbeans + sed -i -e "s:\"\${userdir}\"/etc/:/etc/${PN}-${SLOT}/:" "${ED}"/${INSTALL_DIR}/bin/netbeans + fi + + dodir /usr/share/icons/hicolor/32x32/apps + dosym ${INSTALL_DIR}/nb/netbeans.png /usr/share/icons/hicolor/32x32/apps/${PN}-${SLOT}.png + + popd >/dev/null || die + + make_desktop_entry ${PN}-${SLOT} "Netbeans ${PV}" ${PN}-${SLOT} Development + + mkdir -p "${ED}"/${INSTALL_DIR}/nb/config || die + echo "NBGNT" > "${ED}"/${INSTALL_DIR}/nb/config/productid || die +} diff --git a/dev-util/netbeans-standalone/netbeans-standalone-9999.ebuild b/dev-util/netbeans-standalone/netbeans-standalone-9999.ebuild index 9c08885a1..5a5dfda66 100644 --- a/dev-util/netbeans-standalone/netbeans-standalone-9999.ebuild +++ b/dev-util/netbeans-standalone/netbeans-standalone-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -8,11 +8,9 @@ ANT_TASKS="ant-apache-bsf" if [ ${PV} = "9999" ]; then EGIT_REPO_URI="https://github.com/apache/netbeans.git" else - MY_PV=${PV/_/-} - MY_PV=${MY_PV/p/u} KEYWORDS="~amd64" - SRC_URI="https://github.com/apache/netbeans/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - S=${WORKDIR}/netbeans-${MY_PV} + SRC_URI="mirror://apache/netbeans/netbeans/${PV}/netbeans-${PV}-source.zip" + S="${WORKDIR}" fi inherit java-pkg-2 java-ant-2 desktop xdg $([[ ${PV} = "9999" ]] && echo git-r3) |