diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/netbeans | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/netbeans')
-rw-r--r-- | dev-util/netbeans/Manifest | 5 | ||||
-rw-r--r-- | dev-util/netbeans/metadata.xml | 23 | ||||
-rw-r--r-- | dev-util/netbeans/netbeans-8.2.ebuild | 236 |
3 files changed, 264 insertions, 0 deletions
diff --git a/dev-util/netbeans/Manifest b/dev-util/netbeans/Manifest new file mode 100644 index 000000000000..444103244058 --- /dev/null +++ b/dev-util/netbeans/Manifest @@ -0,0 +1,5 @@ +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 +DIST netbeans-l10n-8.2-20160920.tar.bz2 12723797 BLAKE2B b87fc120d6dbb1207d70bbc3324c60c41c2ac8cae8af014ba47bc15c383f7fb821924d3337b25a0b59d0ef2ad641444ed5f85e46d02cd19b07b8913d9ddaf10d SHA512 4ac086e8189d89e7a0b91e7e03352f691f09edf208017062a8fc798e6f54906f1c85112dd2780feefa6a21c8fcb582b91bdd9758f5a90c05cbd2e3042d6c87c3 +EBUILD netbeans-8.2.ebuild 6155 BLAKE2B 2f8b34973c6edb42fa41cb0933c1c40a5584ae54e2f77355b40fffdead9b7427d8a0a326b11da45b8c3588314f13da7669822ad9e82d69abc3454971aad97648 SHA512 5591a6f66af08b14c4b44ae0e311c32fb4b70184a72e73ea6ef8c93e124d78e5380ba334345255404651662a3e40e415b551d0d6264601f0a8f6c4ec83c6455b +MISC metadata.xml 1290 BLAKE2B 6244d6034061869e8129c8edc442fae9035749f0660204b0e3cdfc4a667643b370b26ad6d34c4a6e713fa060cfca5fbfcaa1ea87da7d451204e5de758e945c66 SHA512 10b6897bd10823d399937aaf3e09c1231a6c67072723cea8a9aff002b275b76d74a62260f8416e17cc53bc6a87fa0c19d00cb428ecff4052c1c8e278211ebe70 diff --git a/dev-util/netbeans/metadata.xml b/dev-util/netbeans/metadata.xml new file mode 100644 index 000000000000..8834161921f2 --- /dev/null +++ b/dev-util/netbeans/metadata.xml @@ -0,0 +1,23 @@ +<?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> + <longdescription> +NetBeans is dedicated to providing rock solid software development products (NetBeans IDE, NetBeans Platform) that address the needs +of developers, users and the businesses who rely on NetBeans as a basis for their products. NetBeans is also a vibrant community +where people from just about any country you can think of, have the ability ask questions, give advice, make a wide variety of +contributions and ultimately share in the success of our products. You will find students on our mailing list, developers from top +companies and individuals looking to sharpen their skills. + +In June of 2000 NetBeans was made Open Source by Sun Microsystems who remains the project sponsor. Today two products exist: the +NetBeans IDE and NetBeans Platform. Both products are free for commercial and noncommercial use. The source code to both are available +to anyone, to reuse as they see fit, under the terms of use. + </longdescription> +</pkgmetadata> diff --git a/dev-util/netbeans/netbeans-8.2.ebuild b/dev-util/netbeans/netbeans-8.2.ebuild new file mode 100644 index 000000000000..1fc9f826f55d --- /dev/null +++ b/dev-util/netbeans/netbeans-8.2.ebuild @@ -0,0 +1,236 @@ +# 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 IDE" +HOMEPAGE="https://netbeans.org/" +SLOT="8.2" +SOURCE_URL="https://download.netbeans.org/netbeans/8.2/final/zip/netbeans-8.2-201609300101-src.zip" +PATCHES_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.2-build.xml.patch.bz2" +L10N_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.2-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}" + +CDEPEND="virtual/jdk:1.8" +DEPEND="${CDEPEND} + app-arch/unzip + dev-java/javahelp:0" +RDEPEND="${CDEPEND} + ~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-8.2-build.xml.patch.bz2 + fi +} + +src_prepare() { + if [ -n "${NBLOCALES}" ] ; then + 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 --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 +} |