summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2010-07-17 17:46:34 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2010-07-17 17:46:34 +0000
commit96f45a773ac511e5323c0854e9d0d9d8309712f9 (patch)
tree34957ff7a0477b83f84351611ae89964d4023bcc /dev-util/netbeans
parentRevert (diff)
downloadgentoo-2-96f45a773ac511e5323c0854e9d0d9d8309712f9.tar.gz
gentoo-2-96f45a773ac511e5323c0854e9d0d9d8309712f9.tar.bz2
gentoo-2-96f45a773ac511e5323c0854e9d0d9d8309712f9.zip
netbeans: removed some really old versions of netbeans (3.6 and 5.5.1) and redundant version (6.7)
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/netbeans')
-rw-r--r--dev-util/netbeans/ChangeLog11
-rw-r--r--dev-util/netbeans/files/5.5.1/jdbcstorage-build.xml-comments.patch38
-rw-r--r--dev-util/netbeans/files/5.5.1/jspparser-build.xml.patch11
-rw-r--r--dev-util/netbeans/files/5.5.1/mdrant-build.xml-comments.patch37
-rw-r--r--dev-util/netbeans/files/5.5.1/startscript.sh2
-rw-r--r--dev-util/netbeans/files/netbeans.desktop8
-rw-r--r--dev-util/netbeans/files/netbeans.pngbin2163 -> 0 bytes
-rw-r--r--dev-util/netbeans/files/startscript.sh21
-rw-r--r--dev-util/netbeans/metadata.xml3
-rw-r--r--dev-util/netbeans/netbeans-3.6-r1.ebuild67
-rw-r--r--dev-util/netbeans/netbeans-5.5.1-r1.ebuild457
-rw-r--r--dev-util/netbeans/netbeans-6.7.ebuild1183
12 files changed, 10 insertions, 1828 deletions
diff --git a/dev-util/netbeans/ChangeLog b/dev-util/netbeans/ChangeLog
index e48c7650afda..cd1c2b1eafef 100644
--- a/dev-util/netbeans/ChangeLog
+++ b/dev-util/netbeans/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-util/netbeans
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.143 2010/07/16 01:38:37 fordfrog Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.144 2010/07/17 17:46:33 fordfrog Exp $
+
+ 17 Jul 2010; Miroslav Šulc <fordfrog@gentoo.org>
+ -files/5.5.1/jdbcstorage-build.xml-comments.patch,
+ -files/5.5.1/jspparser-build.xml.patch,
+ -files/5.5.1/mdrant-build.xml-comments.patch, -files/5.5.1/startscript.sh,
+ -files/netbeans.desktop, -files/netbeans.png, -files/startscript.sh,
+ metadata.xml:
+ removed some really old versions of netbeans (3.6 and 5.5.1) and redundant
+ version (6.7)
16 Jul 2010; Miroslav Šulc <fordfrog@gentoo.org> netbeans-6.9-r2.ebuild:
Removed error message when no class files are found (bug #328357)
diff --git a/dev-util/netbeans/files/5.5.1/jdbcstorage-build.xml-comments.patch b/dev-util/netbeans/files/5.5.1/jdbcstorage-build.xml-comments.patch
deleted file mode 100644
index 500173aeb3cc..000000000000
--- a/dev-util/netbeans/files/5.5.1/jdbcstorage-build.xml-comments.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -ur netbeans-src.old/mdr/extras/jdbcstorage/build.xml netbeans-src/mdr/extras/jdbcstorage/build.xml
---- netbeans-src.old/mdr/extras/jdbcstorage/build.xml 2006-12-06 23:46:13.000000000 +0200
-+++ netbeans-src/mdr/extras/jdbcstorage/build.xml 2006-12-06 23:53:28.000000000 +0200
-@@ -1,20 +1,22 @@
- <?xml version="1.0" encoding="UTF-8"?>
-
--<!-- The contents of this file are subject to the terms of the Common Development
--<!-- and Distribution License (the License). You may not use this file except in
--<!-- compliance with the License.
--
--<!-- You can obtain a copy of the License at http://www.netbeans.org/cddl.html
--<!-- or http://www.netbeans.org/cddl.txt.
- <!--
--<!-- When distributing Covered Code, include this CDDL Header Notice in each file
--<!-- and include the License file at http://www.netbeans.org/cddl.txt.
--<!-- If applicable, add the following below the CDDL Header, with the fields
--<!-- enclosed by brackets [] replaced by your own identifying information:
--<!-- "Portions Copyrighted [year] [name of copyright owner]"
-+
-+The contents of this file are subject to the terms of the Common Development
-+and Distribution License (the License). You may not use this file except in
-+compliance with the License.
-+
-+You can obtain a copy of the License at http://www.netbeans.org/cddl.html
-+or http://www.netbeans.org/cddl.txt.
-+
-+When distributing Covered Code, include this CDDL Header Notice in each file
-+and include the License file at http://www.netbeans.org/cddl.txt.
-+If applicable, add the following below the CDDL Header, with the fields
-+enclosed by brackets [] replaced by your own identifying information:
-+"Portions Copyrighted [year] [name of copyright owner]"
-
- The Original Software is NetBeans. The Initial Developer of the Original
--<!-- Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
-+Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
- Microsystems, Inc. All Rights Reserved.
- -->
-
diff --git a/dev-util/netbeans/files/5.5.1/jspparser-build.xml.patch b/dev-util/netbeans/files/5.5.1/jspparser-build.xml.patch
deleted file mode 100644
index 1bcdc63c5dd1..000000000000
--- a/dev-util/netbeans/files/5.5.1/jspparser-build.xml.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- netbeans-src.original/web/jspparser/build.xml 2007-04-27 22:15:13.000000000 +0200
-+++ netbeans-src/web/jspparser/build.xml 2007-04-27 23:06:41.000000000 +0200
-@@ -33,7 +33,7 @@
-
- <target name="ext-compile">
- <mkdir dir="build/extclasses"/>
-- <javac srcdir="extsrc" destdir="build/extclasses" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}" source="1.5">
-+ <javac srcdir="extsrc" destdir="build/extclasses" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}" source="1.5" target="1.5">
- <classpath>
- <path path="${module.classpath}"/>
- <path location="${cluster}/${module.jar}"/>
diff --git a/dev-util/netbeans/files/5.5.1/mdrant-build.xml-comments.patch b/dev-util/netbeans/files/5.5.1/mdrant-build.xml-comments.patch
deleted file mode 100644
index 36e9ad19aa8a..000000000000
--- a/dev-util/netbeans/files/5.5.1/mdrant-build.xml-comments.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff -ur netbeans-src.old/mdr/extras/mdrant/build.xml netbeans-src/mdr/extras/mdrant/build.xml
---- netbeans-src.old/mdr/extras/mdrant/build.xml 2006-12-07 00:14:08.000000000 +0200
-+++ netbeans-src/mdr/extras/mdrant/build.xml 2006-12-07 00:18:35.000000000 +0200
-@@ -1,20 +1,21 @@
- <?xml version="1.0" encoding="UTF-8"?>
-
--<!-- The contents of this file are subject to the terms of the Common Development
--<!-- and Distribution License (the License). You may not use this file except in
--<!-- compliance with the License.
--
--<!-- You can obtain a copy of the License at http://www.netbeans.org/cddl.html
--<!-- or http://www.netbeans.org/cddl.txt.
- <!--
--<!-- When distributing Covered Code, include this CDDL Header Notice in each file
--<!-- and include the License file at http://www.netbeans.org/cddl.txt.
--<!-- If applicable, add the following below the CDDL Header, with the fields
--<!-- enclosed by brackets [] replaced by your own identifying information:
--<!-- "Portions Copyrighted [year] [name of copyright owner]"
-+The contents of this file are subject to the terms of the Common Development
-+and Distribution License (the License). You may not use this file except in
-+compliance with the License.
-+
-+You can obtain a copy of the License at http://www.netbeans.org/cddl.html
-+or http://www.netbeans.org/cddl.txt.
-+
-+When distributing Covered Code, include this CDDL Header Notice in each file
-+and include the License file at http://www.netbeans.org/cddl.txt.
-+If applicable, add the following below the CDDL Header, with the fields
-+enclosed by brackets [] replaced by your own identifying information:
-+"Portions Copyrighted [year] [name of copyright owner]"
-
- The Original Software is NetBeans. The Initial Developer of the Original
--<!-- Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
-+Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
- Microsystems, Inc. All Rights Reserved.
- -->
-
diff --git a/dev-util/netbeans/files/5.5.1/startscript.sh b/dev-util/netbeans/files/5.5.1/startscript.sh
deleted file mode 100644
index 974bfc8e23db..000000000000
--- a/dev-util/netbeans/files/5.5.1/startscript.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-/usr/share/netbeans-5.5/bin/netbeans "$@"
diff --git a/dev-util/netbeans/files/netbeans.desktop b/dev-util/netbeans/files/netbeans.desktop
deleted file mode 100644
index dd09da0d76d2..000000000000
--- a/dev-util/netbeans/files/netbeans.desktop
+++ /dev/null
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Name=Netbeans IDE
-Comment=IDE for Java
-Icon=netbeans
-Terminal=0
-Type=Application
-
-
diff --git a/dev-util/netbeans/files/netbeans.png b/dev-util/netbeans/files/netbeans.png
deleted file mode 100644
index b4dcb7fe477d..000000000000
--- a/dev-util/netbeans/files/netbeans.png
+++ /dev/null
Binary files differ
diff --git a/dev-util/netbeans/files/startscript.sh b/dev-util/netbeans/files/startscript.sh
deleted file mode 100644
index 8fe13cc00b01..000000000000
--- a/dev-util/netbeans/files/startscript.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-check_symlinks() {
- for file in `find ${1} -type l` ; do
-
- if ! test -e ${file} ; then
- echo "Broken symlink:"
- echo "${file}"
- fi
-
- done
-}
-
-NBDIR="/usr/share/netbeans-4.0"
-
-check_symlinks ${NBDIR}/ide4/modules/ext
-check_symlinks ${NBDIR}/ide4/modules/autoload/ext
-check_symlinks ${NBDIR}/ide4/config/TagLibraries/JSTL11
-check_symlinks ${NBDIR}/platform4/modules/ext
-
-${NBDIR}/bin/netbeans
diff --git a/dev-util/netbeans/metadata.xml b/dev-util/netbeans/metadata.xml
index 7f77e08cdf69..311de871add7 100644
--- a/dev-util/netbeans/metadata.xml
+++ b/dev-util/netbeans/metadata.xml
@@ -18,7 +18,4 @@ In June of 2000 NetBeans was made Open Source by Sun Microsystems who remains th
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>
- <use>
- <flag name="cxx">Adds Netbeans C/C++ Pack</flag>
- </use>
</pkgmetadata>
diff --git a/dev-util/netbeans/netbeans-3.6-r1.ebuild b/dev-util/netbeans/netbeans-3.6-r1.ebuild
deleted file mode 100644
index 33613ef2b5b0..000000000000
--- a/dev-util/netbeans/netbeans-3.6-r1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-3.6-r1.ebuild,v 1.13 2009/10/12 17:06:09 ssuominen Exp $
-
-inherit eutils
-
-IUSE=""
-
-MY_P=netbeans-${PV/./_}
-S=${WORKDIR}/${PN}
-DESCRIPTION="NetBeans IDE for Java"
-SRC_URI="http://www.netbeans.org/download/release${PV//.}/promoted/FCS/${MY_P}.tar.bz2"
-HOMEPAGE="http://www.netbeans.org"
-
-SLOT="0"
-LICENSE="GPL-2 Apache-1.1 sun-bcla-j2ee JPython SPL"
-KEYWORDS="amd64 ia64 ppc x86"
-#still need to add JPython, Sun Public and DynamicJava licenses
-#sun-j2ee actually contains Sun Binary Code license
-#will have to be renamed and containing it ebuilds updated at spome point..
-
-DEPEND=">=virtual/jdk-1.3
- >=sys-apps/sed-4"
-
-src_unpack() {
- unpack ${A}
-
- # fix jdkhome references
- cd "${S}"/bin
- # runide.sh
- sed -i -e 's:^jdkhome="":jdkhome="`java-config --jdk-home`":' \
- runide.sh
-}
-
-src_install() {
- # remove non-x86 Linux binaries
- rm -f "${S}"/bin/runide*.exe "${S}"/bin/rmid_wrapper.exe
- rm -f "${S}"/bin/runide_exe_defaults
- rm -f "${S}"/bin/runide*.com
- rm -f "${S}"/bin/runideos2.cmd
- rm -f "${S}"/bin/fastjavac/fastjavac.exe
- rm -f "${S}"/bin/fastjavac/fastjavac.sun
- rm -f "${S}"/bin/fastjavac/fastjavac.sun.intel
- rm -f "${S}"/bin/unsupported/*.bat
-
- # Remove MacOS X Binaries? This doesn't necessarily make
- # sense because MacOS X could live happily beside Gentoo.
- rm -f "${S}"/bin/macosx_launcher.dmg
-
- dodir /opt/${P}
- dodoc build_info
- dohtml CHANGES.html CREDITS.html README.html netbeans.css
- # note: docs/ are docs used internally by the IDE
- cp -Rdp ant beans bin \
- docs jakarta-tomcat-5.0.19 \
- lib modules sources \
- system update_tracking "${D}"/opt/${P}
- keepdir /opt/${P}/lib/patches \
- /opt/${P}/modules \
- /opt/netbeans-3.6/jakarta-tomcat-5.0.19/server/classes \
- /opt/netbeans-3.6/jakarta-tomcat-5.0.19/classes \
- /opt/netbeans-3.6/modules/ext/locale
- dodir /usr/bin
- dosym /opt/${P}/bin/runide.sh /usr/bin/netbeans
-
- doicon "${FILESDIR}"/netbeans.png
-}
diff --git a/dev-util/netbeans/netbeans-5.5.1-r1.ebuild b/dev-util/netbeans/netbeans-5.5.1-r1.ebuild
deleted file mode 100644
index a6c6cb9b9331..000000000000
--- a/dev-util/netbeans/netbeans-5.5.1-r1.ebuild
+++ /dev/null
@@ -1,457 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-5.5.1-r1.ebuild,v 1.11 2009/12/28 14:56:17 betelgeuse Exp $
-
-EAPI="2"
-JAVA_PKG_IUSE="doc"
-WANT_ANT_TASKS="ant-nodeps ant-trax"
-
-inherit eutils java-pkg-2 java-ant-2 versionator
-
-DESCRIPTION="NetBeans IDE for Java"
-HOMEPAGE="http://www.netbeans.org"
-
-MY_PV=$(replace_all_version_separators '_')
-
-FILE_IDE="${PN}-${MY_PV}-ide_sources.tar.bz2"
-FILE_CPP="${PN}-c++-${MY_PV}-linux.bin"
-SRC_URI="http://dlc.sun.com/${PN}/download/${MY_PV}/fcs/200704122300/${FILE_IDE}
- cxx? ( http://dlc.sun.com/${PN}/download/${MY_PV}/cnd/mlfcs/070610/${FILE_CPP} )"
-LICENSE="CDDL"
-SLOT="5.5"
-KEYWORDS="amd64 x86 ~x86-fbsd"
-IUSE="cxx debug"
-
-COMMON_DEPEND="
- >=dev-java/commons-logging-1.0.4
- dev-java/flute
- >=dev-java/jakarta-jstl-1.1.2
- >=dev-java/jgoodies-forms-1.0.5
- >=dev-java/jmi-interface-1.0-r3
- >=dev-java/javahelp-2.0.02
- >=dev-java/jsch-0.1.24
- =dev-java/junit-3.8*
- dev-java/sac
- java-virtuals/servlet-api:2.2
- dev-java/sun-j2ee-deployment-bin:1.1
- dev-java/swing-layout:1
- dev-java/xerces:2
- >=dev-java/xml-commons-1.0_beta2"
-
-RDEPEND=">=virtual/jre-1.5
- >=dev-java/antlr-2.7.7:0[java]
- dev-java/commons-beanutils:1.7
- dev-java/commons-collections
- dev-java/commons-digester
- >=dev-java/commons-fileupload-1.1
- dev-java/commons-io:1
- dev-java/commons-validator
- dev-java/fastinfoset
- dev-java/jakarta-oro
- dev-java/jax-rpc
- dev-java/jax-ws:2
- dev-java/jax-ws-api:2
- dev-java/jaxb:2
- dev-java/jaxb-tools:2
- dev-java/jaxp
- dev-java/jsr67
- dev-java/jsr101
- dev-java/jsr173
- dev-java/jsr181
- dev-java/jsr250
- dev-java/relaxng-datatype
- dev-java/saaj
- dev-java/sjsxp
- dev-java/struts:1.2
- dev-java/sun-httpserver-bin:2
- dev-java/sun-jaf
- dev-java/sun-javamail
- dev-java/xsdlib
- ${COMMON_DEPEND}"
-
-# NOTE: netbeans cannot compile with latest JDK 1.7
-# Uses internal xerces in Sun JDK
-# https://bugs.gentoo.org/show_bug.cgi?id=220197
-JDK_ATOMS="|| ( =virtual/jdk-1.6* =virtual/jdk-1.5* )"
-# Needed to work around https://bugs.gentoo.org/show_bug.cgi?id=237580
-JAVA_PKG_NV_DEPEND="${JDK_ATOMS}
- java-virtuals/jdk-with-com-sun"
-DEPEND="${JDK_ATOMS}
- >=java-virtuals/jdk-with-com-sun-20080505-r1:0
- dev-java/commons-el
- >=dev-java/commons-jxpath-1.1
- dev-java/glassfish-persistence
- dev-java/ical4j
- dev-java/jcalendar:1.2
- dev-java/jdom:1.0
- dev-java/jtidy
- dev-java/prefuse:2006
- >=dev-java/rome-0.6
- java-virtuals/servlet-api:2.3
- dev-java/xml-xmlbeans:1
- >=dev-util/pmd-1.3
- ${COMMON_DEPEND}"
-
-S=${WORKDIR}/netbeans-src
-BUILDDESTINATION="${S}/nbbuild/netbeans"
-ENTERPRISE="3"
-IDE_VERSION="7"
-PLATFORM="6"
-MY_FDIR="${FILESDIR}/${PV}"
-DESTINATION="/usr/share/netbeans-${SLOT}"
-JAVA_PKG_BSFIX="off"
-
-src_unpack () {
- unpack "${FILE_IDE}"
- use cxx && unpack_extra ${FILE_CPP} cpp
-}
-
-java_prepare() {
- find -name "*.jar" | grep "/test/" | xargs rm -v
- find -name "*.class" -delete
-
- # Correct invalid XML
- epatch "${MY_FDIR}/jdbcstorage-build.xml-comments.patch"
- epatch "${MY_FDIR}/mdrant-build.xml-comments.patch"
- epatch "${MY_FDIR}/jspparser-build.xml.patch"
-
- # Disable the bundled Tomcat in favor of Portage installed version
- cd "${S}"/nbbuild
- sed -i -e "s%tomcatint/tomcat5/bundled,%%g" *.properties
-
- place_unpack_symlinks
-}
-
-src_compile() {
- local antflags=""
-
- if use debug; then
- antflags="${antflags} -Dbuild.compiler.debug=true"
- antflags="${antflags} -Dbuild.compiler.deprecation=true"
- else
- antflags="${antflags} -Dbuild.compiler.deprecation=false"
- fi
-
- # The build will attempt to display graphical
- # dialogs for the licence agreements if this is set.
- unset DISPLAY
-
- # Fails to compile
- java-pkg_filter-compiler ecj-3.1 ecj-3.2 ecj-3.3 ecj-3.4 ecj-3.5
-
- # Specify the build-nozip target otherwise it will build
- # a zip file of the netbeans folder, which will copy directly.
- cd "${S}"/nbbuild
- ANT_OPTS="-Xmx1g -Djava.awt.headless=true" eant ${antflags} -Dstop.when.broken.modules=true \
- build-nozip
- # Running build-javadoc from the same command line as build-nozip doesn't work
- # so we must run it separately
- use doc && ANT_OPTS="-Xmx1g" eant build-javadoc
-
- # Remove non-x86 Linux binaries
- find ${BUILDDESTINATION} -type f \
- -name "*.exe" -o \
- -name "*.cmd" -o \
- -name "*.bat" -o \
- -name "*.dll" \
- | xargs rm -f
-
- # Removing external stuff. They are api docs from external libs.
- rm -f ${BUILDDESTINATION}/ide${IDE_VERSION}/docs/*.zip
-
- # Remove zip files from generated javadocs.
- rm -f ${BUILDDESTINATION}/javadoc/*.zip
-
- # Use the system ant
- cd ${BUILDDESTINATION}/ide${IDE_VERSION}/ant || die
- rm -fr lib
- rm -fr bin
-
- # Set a initial default jdk
- echo "netbeans_jdkhome=\"\$(java-config -O)\"" >> ${BUILDDESTINATION}/etc/netbeans.conf
-
- # fix paths per bug# 163483
- sed -i -e 's:"$progdir"/../etc/:/etc/netbeans-5.5/:' ${BUILDDESTINATION}/bin/netbeans
- sed -i -e 's:"${userdir}"/etc/:/etc/netbeans-5.5/:' ${BUILDDESTINATION}/bin/netbeans
-}
-
-src_install() {
- insinto ${DESTINATION}
-
- einfo "Installing the program..."
- cd ${BUILDDESTINATION} || die
- doins -r *
-
- if use cxx ; then
- install_extra cpp
- echo "cnd1" >> ${BUILDDESTINATION}/etc/netbeans.clusters
- fi
-
- # Change location of etc files
- insinto /etc/${PN}-${SLOT}
- doins ${BUILDDESTINATION}/etc/*
- rm -fr "${D}"/${DESTINATION}/etc
- dosym /etc/${PN}-${SLOT} ${DESTINATION}/etc
-
- # Replace bundled jars with system jars
- symlink_extjars "${D}"/${DESTINATION}
-
- # Correct permissions on executables
- fperms 755 \
- ${DESTINATION}/bin/netbeans \
- ${DESTINATION}/platform${PLATFORM}/lib/nbexec
-
- # The wrapper wrapper :)
- newbin ${MY_FDIR}/startscript.sh netbeans-${SLOT}
-
- # Ant installation
- local ANTDIR="${DESTINATION}/ide${IDE_VERSION}/ant"
- cd "${D}"/${ANTDIR} || die
-
- local ant_home=/usr/share/ant
- dodir ${ant_home}/lib
- dosym ${ant_home}/lib "${ANTDIR}/lib" || die
-
- dodir ${ant_home}/bin
- dosym ${ant_home}/bin "${ANTDIR}/bin" || die
-
- # Documentation
- einfo "Installing Documentation..."
-
- cd "${D}"/${DESTINATION} || die
- dodoc build_info
- dohtml CREDITS.html README.html netbeans.css
- rm -f build_info CREDITS.html README.html netbeans.css
-
- use doc && java-pkg_dojavadoc "${S}"/nbbuild/build/javadoc
-
- # Icons and shortcuts
- einfo "Installing icon..."
- dodir /usr/share/icons/hicolor/32x32/apps
- dosym ${DESTINATION}/nb5.5/netbeans.png /usr/share/icons/hicolor/32x32/apps/netbeans-${SLOT}.png
-
- make_desktop_entry netbeans-${SLOT} "Netbeans ${SLOT}" netbeans-${SLOT} Development
-}
-
-pkg_postinst () {
- elog "The integrated Tomcat is not installed, but you can easily "
- elog "use the system Tomcat. See Netbeans documentation if you "
- elog "don't know how to do that. The relevant settings are in the"
- elog "runtime window. "
- elog
- elog "If you are using some packages on top of Netbeans, you have"
- elog "to re-emerge them now. "
-}
-
-pkg_postrm() {
- if ! test -e /usr/bin/netbeans-${SLOT}; then
- elog "Because of the way Portage works at the moment"
- elog "symlinks to the system jars are left to:"
- elog "${DESTINATION}"
- elog "If you are uninstalling Netbeans you can safely"
- elog "remove everything in this directory"
- fi
-}
-
-# Supporting functions for this ebuild
-
-unpack_extra() {
- local file="${1}"
- local cluster="${2}"
-
- einfo "Unpacking ${file}..."
- cp "${DISTDIR}/${file}" "${T}"
- chmod u+x "${T}"/${file}
- local dir="istemp`sh "${T}"/${file} -is:tempdir ${WORKDIR} -is:extract | \
- sed s,istemp,\|,g | cut --delimiter=\| --field=2`" || die "Unpack ${file} failed"
- rm "${T}"/${file}
- mv "${WORKDIR}/${dir}" "${WORKDIR}/${cluster}"
-}
-
-install_extra() {
- local cluster="${1}"
-
- einfo "Installing ${cluster}..."
- java "-Duser.home=${T}" -cp "${WORKDIR}/${cluster}/setup.jar" run \
- -silent \
- -W "license.selection=1" \
- -W "beanNbSelectionPanel.nbHome=${D}/${DESTINATION}" || \
- die "Install ${cluster} failed"
-}
-
-place_unpack_symlinks() {
- # Here are listed all bundled jars, some of them cannot be replaced.
-
- einfo "Symlinking jars for apisupport"
- cd "${S}"/apisupport/external || die
- java-pkg_jar-from --build-only jdom-1.0
- java-pkg_jar-from javahelp jhall.jar jsearch-2.0_03.jar
- java-pkg_jar-from --build-only rome rome.jar rome-fetcher-0.6.jar
- java-pkg_jar-from --build-only rome rome.jar rome-0.6.jar
-
- einfo "Symlinking jars for core"
- cd "${S}"/core/external || die
- java-pkg_jar-from javahelp jh.jar jh-2.0_03.jar
-
- einfo "Symlinking jars for httpserver"
- cd "${S}"/httpserver/external || die
- java-pkg_jar-from --virtual servlet-api-2.2 servlet.jar servlet-2.2.jar
-
- einfo "Symlinking jars for junit"
- cd "${S}"/junit/external || die
- java-pkg_jar-from junit junit.jar junit-3.8.1.jar
-
- einfo "Symlinking jars for j2ee"
- cd "${S}"/j2ee/external || die
- java-pkg_jar-from --build-only glassfish-persistence
-
- einfo "Symlinking jars for j2eeserver"
- cd "${S}"/j2eeserver/external || die
- java-pkg_jar-from sun-j2ee-deployment-bin-1.1 sun-j2ee-deployment-bin.jar jsr88javax.jar
-
- einfo "Symlinking jars for libs"
- cd "${S}"/libs/external || die
- java-pkg_jar-from commons-logging commons-logging.jar commons-logging-1.0.4.jar
- java-pkg_jar-from jgoodies-forms forms.jar forms-1.0.5.jar
- java-pkg_jar-from jsch jsch.jar jsch-0.1.24.jar
- java-pkg_jar-from --build-only pmd pmd.jar pmd-1.3.jar
- java-pkg_jar-from swing-layout-1 swing-layout.jar swing-layout-1.0.jar
- java-pkg_jar-from --build-only xml-xmlbeans-1 xbean.jar xbean-1.0.4.jar
- java-pkg_jar-from xerces-2 xercesImpl.jar xerces-2.8.0.jar
- java-pkg_jar-from xml-commons xml-apis.jar xml-commons-dom-ranges-1.0.b2.jar
-
- einfo "Symlinking jars for mdr"
- cd "${S}"/mdr/external || die
- java-pkg_jar-from jmi-interface jmi.jar jmi.jar
- java-pkg_jar-from jmi-interface mof.jar mof.jar
-
- einfo "Symlinking jars for nbbuild"
- cd "${S}"/nbbuild/external || die
- java-pkg_jar-from javahelp jhall.jar jhall-2.0_03.jar
-
- cd "${S}/serverplugins/external" || die
- # Builds just fine without this. Maybe lefover from times when NB could be
- # built with 1.4?
- rm -v jmxremote.jar || die
-
- einfo "Symlinking jars for tasklist"
- cd "${S}"/tasklist/external || die
- java-pkg_jar-from --build-only ical4j
- java-pkg_jar-from --build-only jcalendar-1.2
- java-pkg_jar-from --build-only jtidy Tidy.jar Tidy-r7.jar
-
- einfo "Symlinking jars for web"
- cd "${S}"/web/external || die
- java-pkg_jar-from --build-only commons-el
- java-pkg_jar-from jakarta-jstl jstl.jar jstl-1.1.2.jar
- java-pkg_jar-from --build-only --virtual servlet-api-2.3 servlet.jar servlet-2.3.jar
- java-pkg_jar-from jakarta-jstl standard.jar standard-1.1.2.jar
-
- einfo "Symlinking jars for xml"
- cd "${S}"/xml/external || die
- java-pkg_jar-from flute
- java-pkg_jar-from --build-only commons-jxpath commons-jxpath.jar jxpath1.1.jar
- java-pkg_jar-from --build-only prefuse-2006 prefuse.jar prefuse.jar
- java-pkg_jar-from sac
-}
-
-symlink_extjars() {
- einfo "Symlinking enterprise jars"
-
- cd ${1}/enterprise${ENTERPRISE}/modules/ext || die
- java-pkg_jar-from sun-j2ee-deployment-bin-1.1 sun-j2ee-deployment-bin.jar jsr88javax.jar
- java-pkg_jar-from jakarta-jstl jstl.jar
- java-pkg_jar-from jakarta-jstl standard.jar
-
- TARGET_DIR="enterprise${ENTERPRISE}/modules/ext/blueprints"
- cd ${1}/${TARGET_DIR} || die
- dosymjar ${TARGET_DIR} commons-fileupload commons-fileupload.jar commons-fileupload-1.1.1.jar
- dosymjar ${TARGET_DIR} commons-io-1 commons-io.jar commons-io-1.2.jar
- java-pkg_jar-from commons-logging commons-logging.jar commons-logging-1.1.jar
-
- TARGET_DIR="enterprise${ENTERPRISE}/modules/ext/jsf"
- cd ${1}/${TARGET_DIR} || die
- dosymjar ${TARGET_DIR} commons-beanutils-1.7 commons-beanutils.jar
- dosymjar ${TARGET_DIR} commons-collections commons-collections.jar
- dosymjar ${TARGET_DIR} commons-digester commons-digester.jar
- java-pkg_jar-from commons-logging commons-logging.jar
-
- TARGET_DIR="enterprise${ENTERPRISE}/modules/ext/struts"
- cd ${1}/${TARGET_DIR} || die
- dosymjar ${TARGET_DIR} antlr antlr.jar
- dosymjar ${TARGET_DIR} commons-beanutils-1.7 commons-beanutils.jar
- dosymjar ${TARGET_DIR} commons-digester commons-digester.jar
- dosymjar ${TARGET_DIR} commons-fileupload commons-fileupload.jar
- java-pkg_jar-from commons-logging commons-logging.jar
- dosymjar ${TARGET_DIR} commons-validator commons-validator.jar
- dosymjar ${TARGET_DIR} jakarta-oro-2.0 jakarta-oro.jar
- dosymjar ${TARGET_DIR} struts-1.2 struts.jar
-
- einfo "Symlinking harness jars"
-
- cd ${1}/harness || die
- java-pkg_jar-from javahelp jhall.jar jsearch-2.0_03.jar
-
- einfo "Symlinking ide jars"
-
- cd ${1}/ide${IDE_VERSION}/modules/ext || die
- java-pkg_jar-from commons-logging commons-logging.jar commons-logging-1.0.4.jar
- java-pkg_jar-from flute
- java-pkg_jar-from jgoodies-forms forms.jar forms-1.0.5.jar
- java-pkg_jar-from jmi-interface jmi.jar jmi.jar
- java-pkg_jar-from jsch jsch.jar jsch-0.1.24.jar
- java-pkg_jar-from junit junit.jar junit-3.8.1.jar
- java-pkg_jar-from jmi-interface mof.jar mof.jar
- java-pkg_jar-from sac
- java-pkg_jar-from --virtual servlet-api-2.2 servlet.jar servlet-2.2.jar
- java-pkg_jar-from xerces-2 xercesImpl.jar xerces-2.8.0.jar
- java-pkg_jar-from xml-commons xml-apis.jar xml-commons-dom-ranges-1.0.b2.jar
-
- TARGET_DIR="ide${IDE_VERSION}/modules/ext/jaxrpc16"
- cd ${1}/${TARGET_DIR} || die
- dosymjar ${TARGET_DIR} sun-jaf activation.jar
- dosymjar ${TARGET_DIR} fastinfoset fastinfoset.jar FastInfoset.jar
- dosymjar ${TARGET_DIR} jaxp jaxp-ri.jar jaxp-api.jar
- dosymjar ${TARGET_DIR} jaxp jaxp-ri.jar jaxp-impl.jar
- dosymjar ${TARGET_DIR} jsr101 jaxrpc-api.jar
- dosymjar ${TARGET_DIR} jax-rpc jaxrpc-impl.jar
- dosymjar ${TARGET_DIR} jax-rpc jaxrpc-spi.jar
- dosymjar ${TARGET_DIR} jsr173 jsr173.jar jsr173_api.jar
- dosymjar ${TARGET_DIR} sun-javamail mail.jar
- dosymjar ${TARGET_DIR} relaxng-datatype relaxngDatatype.jar
- dosymjar ${TARGET_DIR} jsr67 jsr67.jar saaj-api.jar
- dosymjar ${TARGET_DIR} saaj saaj.jar saaj-impl.jar
- dosymjar ${TARGET_DIR} xsdlib xsdlib.jar
-
- TARGET_DIR="ide${IDE_VERSION}/modules/ext/jaxws21"
- cd ${1}/${TARGET_DIR} || die
- dosymjar ${TARGET_DIR} sun-jaf activation.jar
- dosymjar ${TARGET_DIR} fastinfoset fastinfoset.jar FastInfoset.jar
- dosymjar ${TARGET_DIR} sun-httpserver-bin-2 http.jar
- dosymjar ${TARGET_DIR} jaxb-2 jaxb-api.jar
- dosymjar ${TARGET_DIR} jaxb-2 jaxb-impl.jar
- dosymjar ${TARGET_DIR} jaxb-tools-2 jaxb-tools.jar jaxb-xjc.jar
- dosymjar ${TARGET_DIR} jax-ws-api-2 jax-ws-api.jar jaxws-api.jar
- dosymjar ${TARGET_DIR} jax-ws-2 jax-ws.jar jaxws-rt.jar
- dosymjar ${TARGET_DIR} jax-ws-2 jax-ws.jar jaxws-tools.jar
- dosymjar ${TARGET_DIR} jsr173 jsr173.jar jsr173_api.jar
- dosymjar ${TARGET_DIR} jsr181 jsr181.jar jsr181-api.jar
- dosymjar ${TARGET_DIR} jsr250 jsr250.jar jsr250-api.jar
- dosymjar ${TARGET_DIR} jsr67 jsr67.jar saaj-api.jar
- dosymjar ${TARGET_DIR} saaj saaj.jar saaj-impl.jar
- dosymjar ${TARGET_DIR} sjsxp sjsxp.jar
-
- einfo "Symlinking platform jars"
- cd ${1}/platform${PLATFORM}/modules/ext || die
- java-pkg_jar-from javahelp jh.jar jh-2.0_03.jar
- java-pkg_jar-from swing-layout-1 swing-layout.jar swing-layout-1.0.jar
-}
-
-dosymjar() {
- if [ -z "${4}" ]; then
- TARGET_FILE="${3}"
- else
- TARGET_FILE="${4}"
- fi
- dosym /usr/share/${2}/lib/${3} ${DESTINATION}/${1}/${TARGET_FILE}
-}
diff --git a/dev-util/netbeans/netbeans-6.7.ebuild b/dev-util/netbeans/netbeans-6.7.ebuild
deleted file mode 100644
index 630bfc1157b1..000000000000
--- a/dev-util/netbeans/netbeans-6.7.ebuild
+++ /dev/null
@@ -1,1183 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-6.7.ebuild,v 1.3 2010/06/22 18:41:49 arfrever Exp $
-
-EAPI="2"
-WANT_SPLIT_ANT="true"
-inherit eutils java-pkg-2 java-ant-2
-
-DESCRIPTION="NetBeans IDE for Java"
-HOMEPAGE="http://www.netbeans.org"
-
-SLOT="6.7"
-SRC_URI="http://bits.netbeans.org/netbeans/6.7/community/fcs/zip/netbeans-6.7-200906261335-src.zip
- mirror://gentoo/netbeans-6.7-l10n-20090626125342.tar.bz2"
-
-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_groovy
- +netbeans_modules_harness
- +netbeans_modules_ide
- netbeans_modules_identity
- +netbeans_modules_java
- netbeans_modules_mobility
- +netbeans_modules_nb
- netbeans_modules_php
- netbeans_modules_profiler
- netbeans_modules_ruby
- netbeans_modules_webcommon
- +netbeans_modules_websvccommon"
-IUSE_LINGUAS="
- linguas_ar
- linguas_cs
- linguas_de
- linguas_es
- linguas_fr
- linguas_gl
- linguas_id
- linguas_it
- linguas_ja
- linguas_ko
- linguas_nl
- linguas_pl
- linguas_pt_BR
- linguas_ru
- linguas_sq
- linguas_sv
- linguas_tr
- linguas_zh_CN
- linguas_zh_TW"
-IUSE="debug doc ${IUSE_NETBEANS_MODULES} ${IUSE_LINGUAS}"
-
-RDEPEND=">=virtual/jdk-1.5
- java-virtuals/jdk-with-com-sun
- >=dev-java/javahelp-2:0
- dev-java/jna:0
- dev-java/jsr223:0
- >=dev-java/junit-4:4
- >=dev-java/swing-layout-1:1
- netbeans_modules_enterprise? (
- >=dev-java/antlr-2.7.7:0[java]
- >=dev-java/asm-3.1:3
- dev-java/bsf:2.3
- dev-java/commons-beanutils:1.7
- dev-java/commons-collections:0
- dev-java/commons-digester:0
- >=dev-java/commons-fileupload-1:0
- >=dev-java/commons-io-1.1:1
- >=dev-java/commons-logging-1.1:0
- >=dev-java/commons-validator-1.3:0
- dev-java/glassfish-deployment-api:1.2
- >=dev-java/httpunit-1.6:0
- dev-java/jakarta-jstl:0
- >=dev-java/jakarta-oro-2:2.0
- dev-java/jdom:1.0
- >=dev-java/jettison-1.0:0
- dev-java/jsr311-api:0
- >=dev-java/rome-0.9:0
- )
- netbeans_modules_harness? (
- dev-java/asm:2.2
- >=dev-java/jakarta-oro-2:2.0
- >=dev-java/log4j-1.2:0
- )
- netbeans_modules_ide? (
- >=dev-java/commons-codec-1.3:0
- >=dev-java/commons-httpclient-3.1:3
- >=dev-java/commons-lang-2.3:2.1
- >=dev-java/commons-logging-1.1:0
- >=dev-java/commons-net-1.4:0
- >=dev-java/flute-1.3:0
- >=dev-java/freemarker-2.3.8:2.3
- >=dev-java/jakarta-oro-2:2.0
- >=dev-java/jaxb-2:2
- >=dev-java/jdbc-mysql-5.1:0
- >=dev-java/jdbc-postgresql-8.3_p603:0
- >=dev-java/jsch-0.1.39:0
- dev-java/jsr173:0
- >=dev-java/jvyamlb-0.2.3:0
- dev-java/lucene:2.4
- >=dev-java/sac-1.3:0
- dev-java/sun-jaf:0
- ~dev-java/tomcat-servlet-api-3:2.2
- >=dev-java/xerces-2.8.1:2
- >=dev-vcs/subversion-1.6:0[java]
- )
- netbeans_modules_java? (
- >=dev-java/ant-1.7:0
- >=dev-java/antlr-2.7.7:0[java]
- dev-java/asm:2.2
- >=dev-java/beansbinding-1.2.1:0
- >=dev-java/cglib-2.2_beta:2.2
- dev-java/commons-collections:0
- >=dev-java/dom4j-1.6:1
- dev-java/ehcache:1.2
- dev-java/fastinfoset:0
- dev-java/glassfish-persistence:0
- dev-java/glassfish-transaction-api:0
- dev-java/hibernate:3.1
- dev-java/javassist:3
- >=dev-java/jdom-1.0:1.0
- dev-java/jsr181:0
- dev-java/jsr250:0
- dev-java/jsr67:0
- dev-java/jtidy:0
- >=dev-java/junit-3.8.2:0
- dev-java/saaj:0
- dev-java/sjsxp:0
- dev-java/stax-ex:0
- dev-java/xmlstreambuffer:0
- )
- netbeans_modules_mobility? (
- >=dev-java/ant-contrib-1.0_beta:0
- >=dev-java/commons-codec-1.3:0
- dev-java/commons-httpclient:3
- dev-java/jakarta-slide-webdavclient:0
- dev-java/jdom:1.0
- >=dev-java/proguard-4.2:0
- )
- netbeans_modules_php? (
- >=dev-java/javacup-0.11a_beta20060608:0
- )
- netbeans_modules_ruby? (
- dev-java/asm:3
- dev-java/jline:0
- dev-java/jna-posix:0
- dev-java/joda-time:0
- dev-java/joni:0
- dev-java/jruby:0
- dev-util/jay:0[java]
- )"
-
-DEPEND=">=virtual/jdk-1.5
- java-virtuals/jdk-with-com-sun
- app-arch/unzip
- >=dev-java/ant-core-1.7.1:0
- >=dev-java/ant-nodeps-1.7.1:0
- dev-java/ant-trax:0
- >=dev-java/javahelp-2:0
- dev-java/jna:0
- dev-java/jsr223:0
- >=dev-java/junit-4:4
- >=dev-java/swing-layout-1:1
- netbeans_modules_enterprise? (
- >=dev-java/commons-fileupload-1:0
- dev-java/glassfish-deployment-api:1.2
- >=dev-java/httpunit-1.6:0
- dev-java/jakarta-jstl:0
- dev-java/tomcat-servlet-api:2.3
- )
- netbeans_modules_harness? (
- dev-java/asm:2.2
- >=dev-java/jakarta-oro-2:2.0
- >=dev-java/log4j-1.2:0
- )
- netbeans_modules_ide? (
- >=dev-java/commons-codec-1.3:0
- >=dev-java/commons-httpclient-3.1:3
- >=dev-java/commons-lang-2.3:2.1
- >=dev-java/commons-logging-1.1:0
- >=dev-java/commons-net-1.4.1:0
- >=dev-java/flute-1.3:0
- >=dev-java/freemarker-2.3.8:2.3
- >=dev-java/jakarta-oro-2:2.0
- >=dev-java/javacc-3.2:0
- >=dev-java/jaxb-2.1:2
- >=dev-java/jdbc-mysql-5.1:0
- >=dev-java/jdbc-postgresql-8.3_p603:0
- >=dev-java/jsch-0.1.39:0
- dev-java/jsr173:0
- dev-java/jvyamlb:0
- dev-java/lucene:2.4
- >=dev-java/sac-1.3:0
- dev-java/sun-jaf:0
- ~dev-java/tomcat-servlet-api-3:2.2
- >=dev-java/xerces-2.8.1:2
- >=dev-vcs/subversion-1.6:0[java]
- )
- netbeans_modules_java? (
- dev-java/beansbinding:0
- >=dev-java/cglib-2.2_beta:2.2
- dev-java/jdom:1.0
- >=dev-java/junit-3.8:0
- )
- netbeans_modules_mobility? (
- >=dev-java/ant-contrib-1.0_beta:0
- >=dev-java/commons-codec-1.3:0
- dev-java/commons-httpclient:3
- dev-java/jakarta-slide-webdavclient:0
- dev-java/jdom:1.0
- >=dev-java/proguard-4.2:0
- )
- netbeans_modules_php? (
- >=dev-java/javacup-0.11a_beta20060608:0
- )
- netbeans_modules_ruby? (
- dev-util/jay:0
- )"
-
-S="${WORKDIR}"
-BUILDDESTINATION="${S}/nbbuild/netbeans"
-ENTERPRISE="5"
-IDE_VERSION="11"
-PLATFORM="10"
-MY_FDIR="${FILESDIR}/${SLOT}"
-DESTINATION="/usr/share/netbeans-${SLOT}"
-JAVA_PKG_BSFIX="off"
-
-pkg_setup() {
- local need_apisupport=""
- local need_cnd=""
- local need_dlight=""
- local need_enterprise=""
- local need_ergonomics=""
- local need_groovy=""
- local need_harness=""
- local need_ide=""
- local need_identity=""
- local need_java=""
- local need_mobility=""
- local need_nb=""
- local need_php=""
- local need_profiler=""
- local need_ruby=""
- local need_webcommon=""
- local need_websvccommon=""
-
- # direct deps: harness, ide, java
- if use netbeans_modules_apisupport ; then
- need_harness="1"
- need_ide="1"
- need_java="1"
- fi
-
- # direct deps: dlight, ide
- if use netbeans_modules_cnd ; then
- need_dlight="1"
- need_ide="1"
- fi
-
- # direct deps: ide
- if use netbeans_modules_dlight ; then
- need_ide="1"
- fi
-
- # direct deps: ide, java, profiler, webcommon
- if use netbeans_modules_enterprise ; then
- need_ide="1"
- need_java="1"
- need_profiler="1"
- need_webcommon="1"
- fi
-
- # direct deps: ide
- if use netbeans_modules_ergonomics ; then
- need_ide="1"
- fi
-
- # direct deps: ide, java
- if use netbeans_modules_groovy ; then
- need_ide="1"
- need_java="1"
- fi
-
- # direct deps: enterprise, ide, java
- if use netbeans_modules_identity ; then
- need_enterprise="1"
- need_ide="1"
- need_java="1"
- fi
-
- # direct deps: ide, websvccommon
- if use netbeans_modules_java ; then
- need_ide="1"
- need_websvccommon="1"
- fi
-
- # direct deps: apisupport, enterprise, ide, java
- # dependency on enterprise cluster: http://www.netbeans.org/issues/show_bug.cgi?id=151535
- if use netbeans_modules_mobility ; then
- need_apisupport="1"
- need_enterprise="1"
- need_ide="1"
- need_java="1"
- fi
-
- # direct deps: harness, ide
- if use netbeans_modules_nb ; then
- need_harness="1"
- need_ide="1"
- fi
-
- # direct deps: ide, webcommon, websvccommon
- if use netbeans_modules_php ; then
- need_ide="1"
- need_webcommon="1"
- need_websvccommon="1"
- fi
-
- # direct deps: ide, java
- if use netbeans_modules_profiler ; then
- need_ide="1"
- need_java="1"
- fi
-
- # direct deps: ide, webcommon
- if use netbeans_modules_ruby ; then
- need_ide="1"
- need_webcommon="1"
- fi
-
- # direct deps: ide
- if use netbeans_modules_webcommon ; then
- need_ide="1"
- fi
-
- # direct deps: ide
- if use netbeans_modules_websvccommon ; then
- need_ide="1"
- fi
-
- # currently we require all clusters when building javadoc, can be tested
- # what clusters are really needed to build javadoc
- if use doc ; then
- need_apisupport="1"
- need_cnd="1"
- need_dlight="1"
- need_enterprise="1"
- need_ergonomics="1"
- need_groovy="1"
- need_harness="1"
- need_ide="1"
- need_identity="1"
- need_java="1"
- need_mobility="1"
- need_nb="1"
- need_php="1"
- need_profiler="1"
- need_ruby="1"
- need_webcommon="1"
- need_websvccommon="1"
- fi
-
- if [ -n "${need_apisupport}" ] ; then
- need_harness="1"
- need_ide="1"
- need_java="1"
- fi
-
- if [ -n "${need_dlight}" ] ; then
- need_ide="1"
- fi
-
- if [ -n "${need_enterprise}" ] ; then
- need_ide="1"
- need_java="1"
- need_profiler="1"
- need_webcommon="1"
- fi
-
- if [ -n "${need_groovy}" ] ; then
- need_ide="1"
- need_java="1"
- fi
-
- if [ -n "${need_profiler}" ] ; then
- need_ide="1"
- need_java="1"
- fi
-
- if [ -n "${need_java}" ] ; then
- need_ide="1"
- need_websvccommon="1"
- fi
-
- if [ -n "${need_nb}" ] ; then
- need_harness="1"
- need_ide="1"
- fi
-
- if [ -n "${need_webcommon}" ] ; then
- need_ide="1"
- fi
-
- if [ -n "${need_websvccommon}" ] ; then
- need_ide="1"
- fi
-
- local missing=""
- [ -n "${need_apisupport}" ] && ! use netbeans_modules_apisupport && missing="${missing} apisupport"
- [ -n "${need_cnd}" ] && ! use netbeans_modules_cnd && missing="${missing} cnd"
- [ -n "${need_dlight}" ] && ! use netbeans_modules_dlight && missing="${missing} dlight"
- [ -n "${need_enterprise}" ] && ! use netbeans_modules_enterprise && missing="${missing} enterprise"
- [ -n "${need_ergonomics}" ] && ! use netbeans_modules_ergonomics && missing="${missing} ergonomics"
- [ -n "${need_groovy}" ] && ! use netbeans_modules_groovy && missing="${missing} groovy"
- [ -n "${need_harness}" ] && ! use netbeans_modules_harness && missing="${missing} harness"
- [ -n "${need_ide}" ] && ! use netbeans_modules_ide && missing="${missing} ide"
- [ -n "${need_identity}" ] && ! use netbeans_modules_identity && missing="${missing} identity"
- [ -n "${need_java}" ] && ! use netbeans_modules_java && missing="${missing} java"
- [ -n "${need_mobility}" ] && ! use netbeans_modules_mobility && missing="${missing} mobility"
- [ -n "${need_nb}" ] && ! use netbeans_modules_nb && missing="${missing} nb"
- [ -n "${need_php}" ] && ! use netbeans_modules_php && missing="${missing} php"
- [ -n "${need_profiler}" ] && ! use netbeans_modules_profiler && missing="${missing} profiler"
- [ -n "${need_ruby}" ] && ! use netbeans_modules_ruby && missing="${missing} ruby"
- [ -n "${need_webcommon}" ] && ! use netbeans_modules_webcommon && missing="${missing} webcommon"
- [ -n "${need_websvccommon}" ] && ! use netbeans_modules_websvccommon && missing="${missing} websvccommon"
-
- if [ -n "${missing}" ] ; then
- eerror "You need to add these modules to NETBEANS_MODULES because they are needed by modules you have selected."
- use doc && eerror "With \"doc\" USE flag enabled, all modules are required."
- eerror " Missing NETBEANS_MODULES:${missing}"
- die "Missing NETBEANS_MODULES"
- fi
-
- if ! use netbeans_modules_nb ; then
- ewarn "You are building netbeans without 'nb' module, this way you will build only specified"
- ewarn "clusters, not a functional IDE. In case you want functional IDE, add 'nb' to NETBEANS_MODULES."
- epause 5
- fi
-
- java-pkg-2_pkg_setup
-}
-
-src_prepare () {
- # We need to disable downloading of jars
- epatch "${FILESDIR}"/${SLOT}/nbbuild_build.xml.patch \
- "${FILESDIR}"/${SLOT}/nbbuild_templates_projectized.xml.patch
-
- # Clean up nbbuild
- einfo "Removing prebuilt *.class files from nbbuild"
- find "${S}" -name "*.class" | xargs rm -v
-
- if [ -z "${JAVA_PKG_NB_USE_BUNDLED}" ] ; then
- place_unpack_symlinks
- fi
-
- if [ -z "${JAVA_PKG_NB_KEEP_BUNDLED}" ] ; then
- # We do not remove the jars that we ar not able to unbundle atm
- # More info at: https://overlays.gentoo.org/proj/java/wiki/Netbeans_Maintenance
-
- local tmpfile="${T}/bundled.txt"
-
- einfo "Removing rest of the bundled jars..."
- find "${S}" -type f -name "*.jar" > ${tmpfile} || die "Cannot put jars in tmp file"
-
- if use netbeans_modules_dlight ; then
- filter_file "dlight.db.h2/external/h2-1.0.79.jar" ${tmpfile}
- filter_file "dlight.derby.support/external/derby-10.2.2.0.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_enterprise ; then
- filter_file "j2ee.sun.appsrv81/external/appservapis-2.0.58.3.jar" ${tmpfile}
- filter_file "j2ee.sun.appsrv81/external/org-netbeans-modules-j2ee-sun-appsrv81.jar" ${tmpfile}
- filter_file "libs.glassfish_logging/external/glassfish-logging-2.0.jar" ${tmpfile}
- # http://www.netbeans.org/issues/show_bug.cgi?id=164334
- filter_file "servletjspapi/external/servlet2.5-jsp2.1-api.jar" ${tmpfile}
- filter_file "spring.webmvc/external/spring-webmvc-2.5.jar" ${tmpfile}
- filter_file "web.jspparser/external/glassfish-jspparser-2.0.jar" ${tmpfile}
- # api documentation packaged as jar
- filter_file "websvc.restlib/external/jersey-api-doc.jar" ${tmpfile}
- # api documentation packaged as jar
- filter_file "websvc.restlib/external/jsr311-api-doc.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_groovy ; then
- # heavily repackaged
- filter_file "groovy.editor/external/groovy-all-1.5.7.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_harness ; then
- filter_file "apisupport.harness/external/cobertura-1.9.jar" ${tmpfile}
- filter_file "apisupport.harness/external/openjdk-javac-6-b12.jar" ${tmpfile}
- filter_file "jemmy/external/jemmy-2.3.0.0.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_ide ; then
- # very old stuff
- filter_file "httpserver/external/tomcat-webserver-3.2.jar" ${tmpfile}
- filter_file "libs.bugtracking/external/org.eclipse.mylyn.commons.core_3.1.1.jar" ${tmpfile}
- filter_file "libs.bugtracking/external/org.eclipse.mylyn.commons.net_3.1.1.jar" ${tmpfile}
- filter_file "libs.bugtracking/external/org.eclipse.mylyn.tasks.core_3.1.1.jar" ${tmpfile}
- filter_file "libs.bugzilla/external/org.eclipse.mylyn.bugzilla.core_3.1.1.jar" ${tmpfile}
- filter_file "libs.bytelist/external/bytelist-0.1.jar" ${tmpfile}
- filter_file "libs.ini4j/external/ini4j-0.4.1.jar" ${tmpfile}
- filter_file "libs.svnClientAdapter/external/svnClientAdapter-1.6.0.jar" ${tmpfile}
- filter_file "libs.swingx/external/swingx-0.9.5.jar" ${tmpfile}
- filter_file "libs.smack/external/smack.jar" ${tmpfile}
- filter_file "libs.smack/external/smackx.jar" ${tmpfile}
- # packaged in a different way than we do
- filter_file "libs.jaxb/external/jaxb-impl.jar" ${tmpfile}
- # packaged in a different way than we do
- filter_file "libs.jaxb/external/jaxb-xjc.jar" ${tmpfile}
- # patched version of apache resolver
- filter_file "o.apache.xml.resolver/external/resolver-1.2.jar" ${tmpfile}
- # system core-renderer.jar causes deadlocks (in logging) when openning css files
- filter_file "web.flyingsaucer/external/core-renderer-R7final.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_java ; then
- # netbeans bundles also toplink-essentials in the jar
- filter_file "j2ee.toplinklib/external/glassfish-persistence-v2ur1-build-09d.jar" ${tmpfile}
- # some patch
- filter_file "junit/external/Ant-1.7.1-binary-patch-72080.jar" ${tmpfile}
- # junit sources
- filter_file "junit/external/junit-4.5-src.jar" ${tmpfile}
- # some netbeans stuff
- filter_file "libs.javacapi/external/javac-api-nb-7.0-b07.jar" ${tmpfile}
- # some netbeans stuff
- filter_file "libs.javacimpl/external/javac-impl-nb-7.0-b07.jar" ${tmpfile}
- filter_file "libs.springframework/external/spring-2.5.jar" ${tmpfile}
- # maven stuff - ignoring for now
- filter_file "maven.embedder/external/maven-dependency-tree-1.2.jar" ${tmpfile}
- # maven stuff - ignoring for now
- filter_file "maven.embedder/external/maven-embedder-2.1-20080623-patched.jar" ${tmpfile}
- # maven stuff - ignoring for now
- filter_file "maven.indexer/external/nexus-indexer-2.0.0-shaded.jar" ${tmpfile}
- filter_file "swingapp/external/appframework-1.0.3.jar" ${tmpfile}
- filter_file "swingapp/external/swing-worker-1.1.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_mobility ; then
- # if not commented, the jars are probably some netbeans jars related to mobility
- #
- # i didn't find sources of this
- filter_file "j2me.cdc.project.ricoh/external/RicohAntTasks-2.0.jar" ${tmpfile}
- filter_file "mobility.databindingme/lib/netbeans_databindingme.jar" ${tmpfile}
- filter_file "mobility.databindingme/lib/netbeans_databindingme_pim.jar" ${tmpfile}
- filter_file "mobility.databindingme/lib/netbeans_databindingme_svg.jar" ${tmpfile}
- # retired project
- filter_file "mobility.deployment.webdav/external/jakarta-slide-ant-webdav-2.1.jar" ${tmpfile}
- filter_file "mobility.j2meunit/external/jmunit4cldc10-1.2.1.jar" ${tmpfile}
- filter_file "mobility.j2meunit/external/jmunit4cldc11-1.2.1.jar" ${tmpfile}
- filter_file "o.n.mobility.lib.activesync/external/nbactivesync-5.0.jar" ${tmpfile}
- filter_file "svg.perseus/external/perseus-nb-1.0.jar" ${tmpfile}
- filter_file "vmd.components.midp/netbeans_midp_components_basic/dist/netbeans_midp_components_basic.jar" ${tmpfile}
- filter_file "vmd.components.midp.pda/netbeans_midp_components_pda/dist/netbeans_midp_components_pda.jar" ${tmpfile}
- filter_file "vmd.components.midp.wma/netbeans_midp_components_wma/dist/netbeans_midp_components_wma.jar" ${tmpfile}
- filter_file "vmd.components.svg/nb_svg_midp_components/dist/nb_svg_midp_components.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_ruby ; then
- filter_file "libs.jrubyparser/external/jruby-parser-0.1.jar" ${tmpfile}
- filter_file "o.kxml2/external/kxml2-2.3.0.jar" ${tmpfile}
- filter_file "o.rubyforge.debugcommons/external/debug-commons-java-0.10.0.jar" ${tmpfile}
- fi
-
- if [ -n "${NB_FILTERFILESFAILED}" ] ; then
- die "Some files that should be filtered do not exist"
- fi
-
- for file in `cat ${tmpfile}` ; do
- rm -v ${file}
- done
- fi
-}
-
-src_compile() {
- local antflags="-Dstop.when.broken.modules=true -Dpermit.jdk6.builds=true"
-
- if use debug; then
- antflags="${antflags} -Dbuild.compiler.debug=true"
- antflags="${antflags} -Dbuild.compiler.deprecation=true"
- else
- antflags="${antflags} -Dbuild.compiler.deprecation=false"
- fi
-
- local clusters="-Dnb.clusters.list=nb.cluster.platform"
- for netbeans_module in ${IUSE_NETBEANS_MODULES} ; do
- netbeans_module=${netbeans_module/[+]/}
- local short_netbeans_module=${netbeans_module/netbeans_modules_/}
- use ${netbeans_module} && clusters="${clusters},nb.cluster.${short_netbeans_module}"
- done
-
- local build_target=""
- if use netbeans_modules_nb ; then
- build_target="build-nozip"
- else
- build_target="build-clusters"
- mkdir -p "${BUILDDESTINATION}" || die
- fi
-
- # Fails to compile
- java-pkg_filter-compiler ecj-3.2 ecj-3.3 ecj-3.4
-
- # Build the clusters
- local heap=""
- if use doc ; then
- heap="-Xmx1536m"
- else
- heap="-Xmx1g"
- fi
-
- ANT_TASKS="ant-nodeps ant-trax" ANT_OPTS="${heap} -Djava.awt.headless=true" \
- eant ${antflags} ${clusters} -f nbbuild/build.xml ${build_target} $(use_doc build-javadoc)
-
- local locales=""
- for lang in ${IUSE_LINGUAS} ; do
- local mylang=${lang/linguas_/}
- if use ${lang} ; then
- if [ "${mylang}" = "gl" ] ; then
- mylang="gl_ES"
- elif [ "${mylang}" = "id" ] ; then
- mylang="in_ID"
- fi
-
- if [ -z "${locales}" ] ; then
- locales="${mylang}"
- else
- locales="${locales},${mylang}"
- fi
- fi
- done
-
- if [ -n "${locales}" ] ; then
- einfo "Compiling support for locales: ${locales}"
- eant ${antflags} -Dlocales=${locales} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
- -f l10n/build.xml build
- fi
-
- # Remove non-Linux binaries
- einfo "Removing libraries and scripts for non-linux archs..."
- find "${BUILDDESTINATION}" -type f \
- -name "*.exe" -o \
- -name "*.cmd" -o \
- -name "*.bat" -o \
- -name "*.dll" \
- | grep -v "/profiler3/" | xargs rm -fv
-
- if use netbeans_modules_cnd ; then
- rm -fv "${BUILDDESTINATION}"/cnd2/bin/*-SunOS-*
- rm -fv "${BUILDDESTINATION}"/cnd2/bin/*-Mac_OS_X-*
- fi
-
- # Removing external stuff. They are api docs from external libs.
- rm -f "${BUILDDESTINATION}"/ide${IDE_VERSION}/docs/*.zip
-
- # Remove zip files from generated javadocs.
- rm -f "${BUILDDESTINATION}"/javadoc/*.zip
-
- # Use the system ant
- if use netbeans_modules_java ; then
- cd "${BUILDDESTINATION}"/java2/ant || die "Cannot cd to "${BUILDDESTINATION}"/java2/ant"
- rm -fr lib
- rm -fr bin
- fi
-
- # Set initial default jdk
- if [[ -e "${BUILDDESTINATION}"/etc/netbeans.conf ]]; then
- echo "netbeans_jdkhome=\"\$(java-config -O)\"" >> "${BUILDDESTINATION}"/etc/netbeans.conf
- fi
-
- # Install Gentoo Netbeans ID
- # This ID is used to identify our netbeans package while contacting update center
- mkdir -p "${BUILDDESTINATION}"/nb${SLOT}/config || die
- echo "NBGNT" > "${BUILDDESTINATION}"/nb${SLOT}/config/productid || die "Could not set Gentoo Netbeans ID"
-
- # fix paths per bug# 163483
- if [[ -e "${BUILDDESTINATION}"/bin/netbeans ]]; then
- sed -i -e 's:"$progdir"/../etc/:/etc/netbeans-6.7/:' "${BUILDDESTINATION}"/bin/netbeans
- sed -i -e 's:"${userdir}"/etc/:/etc/netbeans-6.7/:' "${BUILDDESTINATION}"/bin/netbeans
- fi
-}
-
-src_install() {
- insinto ${DESTINATION}
-
- einfo "Installing the program..."
- cd "${BUILDDESTINATION}"
- doins -r *
-
- # Remove the build helper files
- rm -f "${D}"/${DESTINATION}/nb.cluster.*
- rm -f "${D}"/${DESTINATION}/*.built
- rm -f "${D}"/${DESTINATION}/moduleCluster.properties
- rm -f "${D}"/${DESTINATION}/module_tracking.xml
- rm -f "${D}"/${DESTINATION}/build_info
-
- # Change location of etc files
- if [[ -e "${BUILDDESTINATION}"/etc ]]; then
- insinto /etc/${PN}-${SLOT}
- doins "${BUILDDESTINATION}"/etc/*
- rm -fr "${D}"/${DESTINATION}/etc
- dosym /etc/${PN}-${SLOT} ${DESTINATION}/etc
- fi
-
- # Replace bundled jars with system jars
- if [ -z "${JAVA_PKG_NB_USE_BUNDLED}" ] ; then
- symlink_extjars
- fi
-
- # Correct permissions on executables and possibly remove executables that are not needed on linux
- local nbexec_exe="${DESTINATION}/platform${PLATFORM}/lib/nbexec"
- fperms 775 ${nbexec_exe} || die
- if [[ -e "${D}"/${DESTINATION}/bin/netbeans ]] ; then
- fperms 755 "${DESTINATION}/bin/netbeans" || die
- fi
- if use netbeans_modules_cnd ; then
- cd "${D}"/${DESTINATION}/cnd2/bin || die
- for file in *.sh ; do
- fperms 755 ${file} || die
- done
- for file in *.so ; do
- fperms 755 ${file} || die
- done
- fi
- if use netbeans_modules_dlight ; then
- cd "${D}"/${DESTINATION}/dlight1/bin/nativeexecution || die
- fperms 755 dorun.sh || die
- fi
- if use netbeans_modules_profiler ; then
- cd "${D}"/${DESTINATION}/profiler3/remote-pack-defs || die
- for file in *.sh ; do
- fperms 755 ${file} || die
- done
- fi
- if use netbeans_modules_ruby ; then
- cd "${D}"/${DESTINATION}/ruby2/jruby-1.2.0/bin || die
- for file in * ; do
- fperms 755 ${file} || die
- done
- fi
-
- # Link netbeans executable from bin
- if [[ -f "${D}"/${DESTINATION}/bin/netbeans ]]; then
- dosym ${DESTINATION}/bin/netbeans /usr/bin/${PN}-${SLOT}
- else
- dosym ${DESTINATION}/platform7/lib/nbexec /usr/bin/${PN}-${SLOT}
- fi
-
- # Ant installation
- if use netbeans_modules_java ; then
- local ANTDIR="${DESTINATION}/java2/ant"
- dosym /usr/share/ant/lib ${ANTDIR}/lib
- dosym /usr/share/ant-core/bin ${ANTDIR}/bin
- fi
-
- # Documentation
- einfo "Installing Documentation..."
-
- cd "${D}"/${DESTINATION}
- dohtml CREDITS.html README.html netbeans.css
- rm -f build_info CREDITS.html README.html netbeans.css
-
- if use doc ; then
- rm "${S}"/nbbuild/build/javadoc/*.zip
- java-pkg_dojavadoc "${S}"/nbbuild/build/javadoc
- fi
-
- # Icons and shortcuts
- if use netbeans_modules_nb ; then
- einfo "Installing icon..."
- dodir /usr/share/icons/hicolor/32x32/apps
- dosym ${DESTINATION}/nb${SLOT}/netbeans.png /usr/share/icons/hicolor/32x32/apps/netbeans-${SLOT}.png
- fi
-
- make_desktop_entry netbeans-${SLOT} "Netbeans ${SLOT}" netbeans-${SLOT} Development
-}
-
-pkg_postinst() {
- if use netbeans_modules_nb ; then
- einfo "Netbeans automatically starts with the locale you have set in your user profile, if"
- einfo "the locale is built for netbeans."
- einfo "If you want to force specific locale, use --locale argument, for example:"
- einfo "${PN}-${SLOT} --locale de"
- einfo "${PN}-${SLOT} --locale pt:BR"
- fi
-}
-
-# Supporting functions for this ebuild
-
-place_unpack_symlinks() {
- local target=""
-
- einfo "Symlinking compilation-time jars"
-
- dosymcompilejar "apisupport.harness/external" javahelp jhall.jar jsearch-2.0_05.jar
- dosymcompilejar "javahelp/external" javahelp jh.jar jh-2.0_05.jar
- dosymcompilejar "o.jdesktop.layout/external" swing-layout-1 swing-layout.jar swing-layout-1.0.3.jar
- dosymcompilejar "libs.jna/external" jna jna.jar jna-3.0.9.jar
- dosymcompilejar "libs.jsr223/external" jsr223 script-api.jar jsr223-api.jar
- dosymcompilejar "libs.junit4/external" junit-4 junit.jar junit-4.5.jar
-
- if use netbeans_modules_enterprise ; then
- dosymcompilejar "j2eeapis/external" glassfish-deployment-api-1.2 glassfish-deployment-api.jar jsr88javax.jar
- dosymcompilejar "libs.commons_fileupload/external" commons-fileupload commons-fileupload.jar commons-fileupload-1.0.jar
- dosymcompilejar "libs.httpunit/external" httpunit httpunit.jar httpunit-1.6.2.jar
- dosymcompilejar "web.jstl11/external" jakarta-jstl jstl.jar jstl-1.1.2.jar
- dosymcompilejar "web.jstl11/external" jakarta-jstl standard.jar standard-1.1.2.jar
- dosymcompilejar "web.monitor/external" tomcat-servlet-api-2.3 servlet.jar servlet-2.3.jar
- fi
-
- if use netbeans_modules_harness ; then
- dosymcompilejar "apisupport.harness/external" asm-2.2 asm.jar asm-2.2.1.jar
- dosymcompilejar "apisupport.harness/external" asm-2.2 asm-tree.jar asm-tree-2.2.1.jar
- dosymcompilejar "apisupport.harness/external" jakarta-oro-2.0 jakarta-oro.jar jakarta-oro-2.0.8.jar
- dosymcompilejar "apisupport.harness/external" log4j log4j.jar log4j-1.2.9.jar
- fi
-
- if use netbeans_modules_ide ; then
- dosymcompilejar "libs.commons_codec/external" commons-codec commons-codec.jar apache-commons-codec-1.3.jar
- dosymcompilejar "libs.commons_logging/external" commons-logging commons-logging.jar commons-logging-1.1.jar
- dosymcompilejar "libs.bugtracking/external" commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.1.jar
- dosymcompilejar "libs.bugtracking/external" commons-lang-2.1 commons-lang.jar commons-lang-2.3.jar
- dosymcompilejar "libs.jsch/external" jsch jsch.jar jsch-0.1.41.jar
- dosymcompilejar "libs.jvyamlb/external" jvyamlb jvyamlb.jar jvyamlb-0.2.3.jar
- dosymcompilejar "libs.svnClientAdapter/external" subversion svn-javahl.jar svnjavahl-1.6.0.jar
- dosymcompilejar "libs.lucene/external" lucene-2.4 lucene-core.jar lucene-core-2.3.2.jar
- dosymcompilejar "css.visual/external" sac sac.jar sac-1.3.jar
- dosymcompilejar "css.visual/external" flute flute.jar flute-1.3.jar
- dosymcompilejar "db.drivers/external" jdbc-mysql jdbc-mysql.jar mysql-connector-java-5.1.6-bin.jar
- dosymcompilejar "db.drivers/external" jdbc-postgresql jdbc-postgresql.jar postgresql-8.3-603.jdbc3.jar
- dosymcompilejar "db.sql.visualeditor/external" javacc javacc.jar javacc-3.2.jar
- dosymcompilejar "servletapi/external" tomcat-servlet-api-2.2 servlet.jar servlet-2.2.jar
- dosymcompilejar "libs.xerces/external" xerces-2 xercesImpl.jar xerces-2.8.0.jar
- dosymcompilejar "libs.jakarta_oro/external" jakarta-oro-2.0 jakarta-oro.jar jakarta-oro-2.0.8.jar
- dosymcompilejar "libs.commons_net/external" commons-net commons-net.jar commons-net-1.4.1.jar
- dosymcompilejar "libs.freemarker/external" freemarker-2.3 freemarker.jar freemarker-2.3.8.jar
- dosymcompilejar "libs.jaxb/external" jaxb-2 jaxb-api.jar jaxb-api.jar
- dosymcompilejar "libs.jaxb/external" jsr173 jsr173.jar jsr173_api.jar
- dosymcompilejar "libs.jaxb/external" sun-jaf activation.jar activation.jar
- fi
-
- if use netbeans_modules_java ; then
- dosymcompilejar "o.jdesktop.beansbinding/external" beansbinding beansbinding.jar beansbinding-1.2.1.jar
- dosymcompilejar "maven.embedder/external" jdom-1.0 jdom.jar jdom-1.0.jar
- dosymcompilejar "junit/external" junit junit.jar junit-3.8.2.jar
- dosymcompilejar "libs.cglib/external" cglib-2.2 cglib.jar cglib-2.2.jar
- fi
-
- if use netbeans_modules_mobility ; then
- dosymcompilejar "j2me.cdc.project.ricoh/external" commons-codec commons-codec.jar commons-codec-1.3.jar
- dosymcompilejar "j2me.cdc.project.ricoh/external" commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.jar
- dosymcompilejar "mobility.antext/external" ant-contrib ant-contrib.jar ant-contrib-1.0b3.jar
- dosymcompilejar "mobility.deployment.webdav/external" commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.1.jar
- dosymcompilejar "mobility.deployment.webdav/external" jdom-1.0 jdom.jar jdom-1.0.jar
- dosymcompilejar "mobility.deployment.webdav/external" jakarta-slide-webdavclient jakarta-slide-webdavlib.jar jakarta-slide-webdavlib-2.1.jar
- dosymcompilejar "mobility.proguard/external" proguard proguard.jar proguard4.2.jar
- fi
-
- if use netbeans_modules_php ; then
- dosymcompilejar "libs.javacup/external" javacup javacup.jar java-cup-11a.jar
- fi
-
- if use netbeans_modules_ruby ; then
- dosymcompilejar "libs.yydebug/external" jay yydebug.jar yydebug-1.0.2.jar
- fi
-
- if [ -n "${NB_DOSYMCOMPILEJARFAILED}" ] ; then
- die "Some compilation-time jars could not be symlinked"
- fi
-}
-
-symlink_extjars() {
- local targetdir=""
-
- einfo "Symlinking runtime jars"
-
- targetdir="platform${PLATFORM}/modules/ext"
- dosyminstjar ${targetdir} javahelp jh.jar jh-2.0_05.jar
- dosyminstjar ${targetdir} jna jna.jar jna-3.0.9.jar
- dosyminstjar ${targetdir} jsr223 script-api.jar script-api.jar
- dosyminstjar ${targetdir} junit-4 junit.jar junit-4.5.jar
- dosyminstjar ${targetdir} swing-layout-1 swing-layout.jar swing-layout-1.0.3.jar
-
- if use netbeans_modules_dlight ; then
- targetdir="dlight1/modules/ext"
- # derby-10.2.2.0.jar
- # h2-1.0.79.jar
- fi
-
- if use netbeans_modules_enterprise ; then
- targetdir="/enterprise5/modules/ext"
- dosyminstjar ${targetdir} commons-fileupload commons-fileupload.jar commons-fileupload-1.0.jar
- # glassfish-jspparser-2.0.jar
- # glassfish-logging-2.0.jar
- dosyminstjar ${targetdir} httpunit httpunit.jar httpunit-1.6.2.jar
- dosyminstjar ${targetdir} jakarta-jstl jstl.jar jstl.jar
- dosyminstjar ${targetdir} jakarta-jstl standard.jar standard.jar
- dosyminstjar ${targetdir} glassfish-deployment-api-1.2 glassfish-deployment-api.jar jsr88javax.jar
- # servlet2.5-jsp2.1-api.jar
- targetdir="enterprise5/modules/ext/spring"
- # spring-webmvc-2.5.jar
- targetdir="enterprise5/modules/ext/jsf-1_2"
- dosyminstjar ${targetdir} commons-beanutils-1.7 commons-beanutils.jar commons-beanutils.jar
- dosyminstjar ${targetdir} commons-collections commons-collections.jar commons-collections.jar
- dosyminstjar ${targetdir} commons-digester commons-digester.jar commons-digester.jar
- dosyminstjar ${targetdir} commons-logging commons-logging.jar commons-logging.jar
- # jsf-api.jar
- # jsf-impl.jar
- targetdir="enterprise5/modules/ext/struts"
- dosyminstjar ${targetdir} antlr antlr.jar antlr-2.7.2.jar
- dosyminstjar ${targetdir} bsf-2.3 bsf.jar bsf-2.3.0.jar
- dosyminstjar ${targetdir} commons-beanutils-1.7 commons-beanutils.jar commons-beanutils-1.7.0.jar
- # commons-chain-1.1.jar
- dosyminstjar ${targetdir} commons-digester commons-digester.jar commons-digester-1.8.jar
- dosyminstjar ${targetdir} commons-fileupload commons-fileupload.jar commons-fileupload-1.1.1.jar
- dosyminstjar ${targetdir} commons-io-1 commons-io.jar commons-io-1.1.jar
- dosyminstjar ${targetdir} commons-logging commons-logging.jar commons-logging-1.0.4.jar
- dosyminstjar ${targetdir} commons-validator commons-validator.jar commons-validator-1.3.1.jar
- dosyminstjar ${targetdir} jakarta-jstl jstl.jar jstl-1.0.2.jar
- dosyminstjar ${targetdir} jakarta-jstl standard.jar standard-1.0.2.jar
- dosyminstjar ${targetdir} jakarta-oro-2.0 jakarta-oro.jar oro-2.0.8.jar
- # struts-core-1.3.8.jar
- # struts-el-1.3.8.jar
- # struts-extras-1.3.8.jar
- # struts-faces-1.3.8.jar
- # struts-mailreader-dao-1.3.8.jar
- # struts-scripting-1.3.8.jar
- # struts-taglib-1.3.8.jar
- # struts-tiles-1.3.8.jar
- targetdir="enterprise5/modules/ext/metro"
- # webservices-api.jar
- # webservices-extra.jar
- # webservices-extra-api.jar
- # webservices-rt.jar
- # webservices-tools.jar
- targetdir="/enterprise5/modules/ext/rest"
- dosyminstjar ${targetdir} asm-3 asm.jar asm-3.1.jar
- # grizzly-servlet-webserver-1.7.3.2.jar
- # http.jar - com.sun.net.httpserver - part of JavaSE 6
- dosyminstjar ${targetdir} jdom-1.0 jdom.jar jdom-1.0.jar
- # jersey.jar
- # jersey-spring.jar
- dosyminstjar ${targetdir} jettison jettison.jar jettison-1.0-RC1.jar
- dosyminstjar ${targetdir} jsr311-api jsr311-api.jar jsr311-api.jar
- dosyminstjar ${targetdir} rome rome.jar rome-0.9.jar
- # wadl2java.jar - atm do not know what to do with it
- fi
-
- # if use netbeans_modules_groovy ; then
- # groovy-all.jar - heavily repackaged
- # fi
-
- if use netbeans_modules_harness ; then
- targetdir="harness/antlib"
- dosyminstjar ${targetdir} javahelp jhall.jar jsearch-2.0_05.jar
- # openjdk-javac-6-b12.jar
- targetdir="harness/testcoverage/cobertura"
- # cobertura-1.9.jar
- targetdir="harness/testcoverage/cobertura/lib"
- dosyminstjar ${targetdir} asm-2.2 asm.jar asm-2.2.1.jar
- dosyminstjar ${targetdir} asm-2.2 asm-tree.jar asm-tree-2.2.1.jar
- dosyminstjar ${targetdir} jakarta-oro-2.0 jakarta-oro.jar jakarta-oro-2.0.8.jar
- dosyminstjar ${targetdir} log4j log4j.jar log4j-1.2.9.jar
- fi
-
- if use netbeans_modules_ide ; then
- targetdir="ide${IDE_VERSION}/modules/ext"
- # bytelist-0.1.jar
- dosyminstjar ${targetdir} commons-codec commons-codec.jar apache-commons-codec-1.3.jar
- dosyminstjar ${targetdir} commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.1.jar
- dosyminstjar ${targetdir} commons-lang-2.1 commons-lang.jar commons-lang-2.3.jar
- dosyminstjar ${targetdir} commons-logging commons-logging.jar commons-logging-1.1.jar
- dosyminstjar ${targetdir} commons-net commons-net.jar commons-net-1.4.1.jar
- dosyminstjar ${targetdir} flute flute.jar flute-1.3.jar
- # core-renderer.jar - flyingsaucer - system one causes deadlock
- dosyminstjar ${targetdir} freemarker-2.3 freemarker.jar freemarker-2.3.8.jar
- # ini4j-0.4.1.jar
- dosyminstjar ${targetdir} jakarta-oro-2.0 jakarta-oro.jar jakarta-oro-2.0.8.jar
- dosyminstjar ${targetdir} jdbc-mysql jdbc-mysql.jar mysql-connector-java-5.1.6-bin.jar
- dosyminstjar ${targetdir} jdbc-postgresql jdbc-postgresql.jar postgresql-8.3-603.jdbc3.jar
- dosyminstjar ${targetdir} jsch jsch.jar jsch-0.1.41.jar
- dosyminstjar ${targetdir} jvyamlb jvyamlb.jar jvyamlb-0.2.3.jar
- dosyminstjar ${targetdir} lucene-2.4 lucene-core.jar lucene-core-2.3.2.jar
- # org.eclipse.mylyn.bugzilla.core_3.0.5.jar
- # org.eclipse.mylyn.commons.core_3.0.5.jar
- # org.eclipse.mylyn.commons.net_3.0.5.jar
- # org.eclipse.mylyn.tasks.core_3.0.5.jar
- # org-mozilla-rhino-patched.jar - some patched stuff
- dosyminstjar ${targetdir} sac sac.jar sac-1.3.jar
- # smack.jar
- # smackx.jar
- # resolver-1.2.jar - probably patched apache resolver
- # svnClientAdapter-1.6.0.jar
- dosyminstjar ${targetdir} subversion svn-javahl.jar svnjavahl-1.6.0.jar
- # swingx-0.9.5.jar
- dosyminstjar ${targetdir} tomcat-servlet-api-2.2 servlet.jar servlet-2.2.jar
- # webserver.jar
- dosyminstjar ${targetdir} xerces-2 xercesImpl.jar xerces-2.8.0.jar
- targetdir="ide${IDE_VERSION}/modules/ext/jaxb"
- dosyminstjar ${targetdir} sun-jaf activation.jar activation.jar
- # jaxb-impl.jar
- # jaxb-xjc.jar
- targetdir="ide${IDE_VERSION}/modules/ext/jaxb/api"
- dosyminstjar ${targetdir} jaxb-2 jaxb-api.jar jaxb-api.jar
- dosyminstjar ${targetdir} jsr173 jsr173.jar jsr173_api.jar
- fi
-
- if use netbeans_modules_java ; then
- targetdir="java2/ant/etc"
- dosyminstjar ${targetdir} ant ant-bootstrap.jar ant-bootstrap.jar
- targetdir="java2/ant/nblib"
- # bridge.jar
- targetdir="java2/ant/patches"
- # 72080.jar
- targetdir="java2/modules"
- # org-apache-tools-ant-module.jar
- targetdir="java2/modules/ext"
- # appframework-1.0.3.jar
- dosyminstjar ${targetdir} beansbinding beansbinding.jar beansbinding-1.2.1.jar
- dosyminstjar ${targetdir} cglib-2.2 cglib.jar cglib-2.2.jar
- # javac-api-nb-7.0-b07.jar
- # javac-impl-nb-7.0-b07.jar
- dosyminstjar ${targetdir} jdom-1.0 jdom.jar jdom-1.0.jar
- # maven-dependency-tree-1.2.jar
- # maven-embedder-2.1-20080623-patched.jar
- # nexus-indexer-2.0.0-shaded.jar
- dosyminstjar ${targetdir} junit junit.jar junit-3.8.2.jar
- # swing-worker-1.1.jar
- targetdir="java2/modules/ext/jaxws21"
- dosyminstjar ${targetdir} fastinfoset fastinfoset.jar FastInfoset.jar
- # http.jar
- # jaxws-rt.jar
- # jaxws-tools.jar
- # mimepull.jar - atm do not know what to do with it
- dosyminstjar ${targetdir} saaj saaj.jar saaj-impl.jar
- dosyminstjar ${targetdir} sjsxp sjsxp.jar sjsxp.jar
- dosyminstjar ${targetdir} stax-ex stax-ex.jar stax-ex.jar
- dosyminstjar ${targetdir} xmlstreambuffer streambuffer.jar streambuffer.jar
- targetdir="java2/modules/ext/jaxws21/api"
- # jaxws-api.jar
- dosyminstjar ${targetdir} jsr250 jsr250.jar jsr250-api.jar
- dosyminstjar ${targetdir} jsr67 jsr67.jar saaj-api.jar
- dosyminstjar ${targetdir} jsr181 jsr181.jar jsr181-api.jar
- targetdir="java2/modules/ext/hibernate"
- dosyminstjar ${targetdir} antlr antlr.jar antlr-2.7.6.jar
- dosyminstjar ${targetdir} asm-2.2 asm.jar asm.jar
- dosyminstjar ${targetdir} asm-2.2 asm-attrs.jar asm-attrs.jar
- dosyminstjar ${targetdir} cglib-2.2 cglib.jar cglib-2.1.3.jar
- dosyminstjar ${targetdir} commons-collections commons-collections.jar commons-collections-2.1.1.jar
- dosyminstjar ${targetdir} dom4j-1 dom4j.jar dom4j-1.6.1.jar
- dosyminstjar ${targetdir} ehcache-1.2 ehcache.jar ehcache-1.2.3.jar
- dosyminstjar ${targetdir} glassfish-persistence glassfish-persistence.jar ejb3-persistence.jar
- dosyminstjar ${targetdir} glassfish-transaction-api jta.jar jta.jar
- dosyminstjar ${targetdir} hibernate-3.1 hibernate3.jar hibernate3.jar
- # hibernate-annotations.jar
- # hibernate-commons-annotations.jar
- # hibernate-entitymanager.jar
- # hibernate-tools.jar
- dosyminstjar ${targetdir} javassist-3 javassist.jar javassist.jar
- # jdbc2_0-stdext.jar - obsolete package
- dosyminstjar ${targetdir} jtidy Tidy.jar jtidy-r8-20060801.jar
- targetdir="java2/modules/ext/spring"
- # spring-2.5.jar
- targetdir="java2/modules/ext/toplink"
- # toplink-essentials.jar
- # toplink-essentials-agent.jar
- fi
-
- if use netbeans_modules_mobility ; then
- targetdir="mobility8/modules/ext"
- dosyminstjar ${targetdir} ant-contrib ant-contrib.jar ant-contrib-1.0b3.jar
- # cdc-agui-swing-layout.jar - atm do not know what to do with it
- # cdc-pp-awt-layout.jar - atm do not know what to do with it
- dosyminstjar ${targetdir} commons-codec commons-codec.jar commons-codec-1.3.jar
- dosyminstjar ${targetdir} commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.jar
- dosyminstjar ${targetdir} commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.1.jar
- dosyminstjar ${targetdir} jakarta-slide-webdavclient jakarta-slide-webdavlib.jar jakarta-slide-webdavlib-2.1.jar
- # jakarta-slide-ant-webdav-2.1.jar - retired package
- dosyminstjar ${targetdir} jdom-1.0 jdom.jar jdom-1.0.jar
- # jmunit4cldc10-1.2.1.jar
- # jmunit4cldc11-1.2.1.jar
- # perseus-nb-1.0.jar
- # RicohAntTasks-2.0.jar
- targetdir="mobility8/external/proguard"
- dosyminstjar ${targetdir} proguard proguard.jar proguard4.2.jar
- fi
-
- if use netbeans_modules_php ; then
- targetdir="php1/modules/ext"
- dosyminstjar ${targetdir} javacup javacup.jar java-cup-11a.jar
- fi
-
- if use netbeans_modules_ruby ; then
- targetdir="ruby2/modules/ext"
- dosyminstjar ${targetdir} asm-3 asm.jar asm-3.0.jar
- dosyminstjar ${targetdir} asm-3 asm-analysis.jar asm-analysis-3.0.jar
- dosyminstjar ${targetdir} asm-3 asm-commons.jar asm-commons-3.0.jar
- dosyminstjar ${targetdir} asm-3 asm-tree.jar asm-tree-3.0.jar
- dosyminstjar ${targetdir} asm-3 asm-util.jar asm-util-3.0.jar
- # debug-commons-java-0.10.0.jar
- # dynalang-0.3.jar
- dosyminstjar ${targetdir} jline jline.jar jline-0.9.93.jar
- dosyminstjar ${targetdir} jna-posix jna-posix.jar jna-posix.jar
- dosyminstjar ${targetdir} joda-time joda-time.jar joda-time-1.5.1.jar
- dosyminstjar ${targetdir} joni joni.jar joni.jar
- # jruby-parser-0.1.jar
- # kxml2-2.3.0.jar
- dosyminstjar ${targetdir} jay yydebug.jar yydebug-1.0.2.jar
- fi
-
- if [ -n "${NB_DOSYMINSTJARFAILED}" ] ; then
- die "Some runtime jars could not be symlinked"
- fi
-}
-
-dosymcompilejar() {
- if [ -z "${JAVA_PKG_NB_BUNDLED}" ] ; then
- local dest="${1}"
- local package="${2}"
- local jar_file="${3}"
- local target_file="${4}"
-
- # We want to know whether the target jar exists and fail if it doesn't so we know
- # something is wrong
- local target="${S}/${dest}/${target_file}"
- if [ -e "${target}" ] ; then
- java-pkg_jar-from --build-only --into "${S}"/${dest} ${package} ${jar_file} ${target_file}
- else
- ewarn "Target jar does not exist so will not create link: ${target}"
- NB_DOSYMCOMPILEJARFAILED="1"
- fi
- fi
-}
-
-dosyminstjar() {
- if [ -z "${JAVA_PKG_NB_BUNDLED}" ] ; then
- local dest="${1}"
- local package="${2}"
- local jar_file="${3}"
- local target_file=""
- if [ -z "${4}" ]; then
- target_file="${3}"
- else
- target_file="${4}"
- fi
-
- # We want to know whether the target jar exists and fail if it doesn't so we know
- # something is wrong
- local source="/usr/share/${package}/lib/${jar_file}"
- if [ ! -e "${source}" ] ; then
- ewarn "Cannot link jar, ${source} does not exist!"
- NB_DOSYMINSTJARFAILED="1"
- fi
-
- local target="${DESTINATION}/${dest}/${target_file}"
- if [ -e "${D}/${target}" ] ; then
- dosym /usr/share/${package}/lib/${jar_file} ${target}
- else
- ewarn "Target jar does not exist so will not create link: ${D}/${target}"
- NB_DOSYMINSTJARFAILED="1"
- fi
- fi
-}
-
-filter_file() {
- local filter_file="${1}"
- local tmp_file="${2}"
-
- if [ -f "${filter_file}" ] ; then
- local adjusted=$(echo "${filter_file}" | sed -e "s%\\/%\\\/%g" | sed -e "s/\./\\\./g")
- sed -e "/${adjusted}/d" -i "${tmp_file}" || die
- else
- ewarn "File that should be kept does not exist: ${filter_file}"
- NB_FILTERFILESFAILED="1"
- fi
-}