diff options
author | William Thomson <wltjr@gentoo.org> | 2008-03-22 22:34:31 +0000 |
---|---|---|
committer | William Thomson <wltjr@gentoo.org> | 2008-03-22 22:34:31 +0000 |
commit | d6c94e4e4d9836dbf3c1f927b4bb9a8d153b7fd3 (patch) | |
tree | 231cdb8e0d0f0cba3f3b773dfaa468e188277a8e /dev-util/netbeans | |
parent | RESTRICT test for upcoming generic src_test. (diff) | |
download | gentoo-2-d6c94e4e4d9836dbf3c1f927b4bb9a8d153b7fd3.tar.gz gentoo-2-d6c94e4e4d9836dbf3c1f927b4bb9a8d153b7fd3.tar.bz2 gentoo-2-d6c94e4e4d9836dbf3c1f927b4bb9a8d153b7fd3.zip |
Switched to java-virtuals/servlet-api, EAPI=1 slots, quoted vars, filtered ecj-3.3, and removed unused stable version
(Portage version: 2.1.4.1)
Diffstat (limited to 'dev-util/netbeans')
-rw-r--r-- | dev-util/netbeans/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/netbeans/netbeans-5.5.1-r1.ebuild (renamed from dev-util/netbeans/netbeans-5.5-r6.ebuild) | 159 |
2 files changed, 105 insertions, 63 deletions
diff --git a/dev-util/netbeans/ChangeLog b/dev-util/netbeans/ChangeLog index a5c037f2f011..60666ec475db 100644 --- a/dev-util/netbeans/ChangeLog +++ b/dev-util/netbeans/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/netbeans # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.77 2008/02/29 18:02:32 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.78 2008/03/22 22:34:31 wltjr Exp $ + +*netbeans-5.5.1-r1 (22 Mar 2008) + + 22 Mar 2008; William L. Thomson Jr. <wltjr@gentoo.org> + -netbeans-5.5-r6.ebuild, +netbeans-5.5.1-r1.ebuild: + Switched to java-virtuals/servlet-api, EAPI=1 slots, quoted vars, filtered + ecj-3.3, and removed unused stable version 29 Feb 2008; Carsten Lohrke <carlo@gentoo.org> netbeans-5.5-r6.ebuild, netbeans-5.5.1.ebuild: diff --git a/dev-util/netbeans/netbeans-5.5-r6.ebuild b/dev-util/netbeans/netbeans-5.5.1-r1.ebuild index a86ecb1392ff..a83669a6da83 100644 --- a/dev-util/netbeans/netbeans-5.5-r6.ebuild +++ b/dev-util/netbeans/netbeans-5.5.1-r1.ebuild @@ -1,7 +1,9 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-5.5-r6.ebuild,v 1.13 2008/02/29 18:02:32 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-5.5.1-r1.ebuild,v 1.1 2008/03/22 22:34:31 wltjr Exp $ +EAPI=1 +JAVA_PKG_IUSE="doc" WANT_ANT_TASKS="ant-nodeps ant-trax" inherit eutils java-pkg-2 java-ant-2 versionator @@ -11,14 +13,16 @@ HOMEPAGE="http://www.netbeans.org" MY_PV=$(replace_all_version_separators '_') -SRC_URI="http://us2.mirror.netbeans.org/download/${MY_PV}/fcs/200610171010/${PN}-${MY_PV}-ide_sources.tar.bz2" +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} + c++? ( http://dlc.sun.com/${PN}/download/${MY_PV}/cnd/mlfcs/070610/${FILE_CPP} )" LICENSE="CDDL" SLOT="5.5" -KEYWORDS="amd64 x86 ~x86-fbsd" -IUSE="debug doc" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="c++ debug" COMMON_DEPEND=" - >=dev-java/ant-1.7.0 >=dev-java/commons-logging-1.0.4 dev-java/flute >=dev-java/jakarta-jstl-1.1.2 @@ -28,27 +32,27 @@ COMMON_DEPEND=" >=dev-java/jsch-0.1.24 =dev-java/junit-3.8* dev-java/sac - =dev-java/servletapi-2.2* - >=dev-java/sun-j2ee-deployment-bin-1.1 - =dev-java/swing-layout-1* - >=dev-java/xerces-2.8.0 + 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 - =dev-java/commons-beanutils-1.7* + 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.2 + dev-java/commons-io:1 dev-java/commons-validator dev-java/fastinfoset dev-java/jakarta-oro dev-java/jax-rpc - dev-java/jax-ws - dev-java/jax-ws-api - >=dev-java/jaxb-2 - >=dev-java/jaxb-tools-2 + 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 @@ -58,8 +62,8 @@ RDEPEND=">=virtual/jre-1.5 dev-java/relaxng-datatype dev-java/saaj dev-java/sjsxp - =dev-java/struts-1.2* - dev-java/sun-httpserver-bin + dev-java/struts:1.2 + dev-java/sun-httpserver-bin:2 dev-java/sun-jaf dev-java/sun-javamail dev-java/xsdlib @@ -71,13 +75,13 @@ DEPEND="|| ( =virtual/jdk-1.6* =virtual/jdk-1.5* ) >=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/jcalendar:1.2 + dev-java/jdom:1.0 dev-java/jtidy - >=dev-java/prefuse-20060715_beta + dev-java/prefuse:2006 >=dev-java/rome-0.6 - =dev-java/servletapi-2.3* - =dev-java/xml-xmlbeans-1* + java-virtuals/servlet-api:2.3 + dev-java/xml-xmlbeans:1 >=dev-util/pmd-1.3 ${COMMON_DEPEND}" @@ -86,14 +90,16 @@ BUILDDESTINATION="${S}/nbbuild/netbeans" ENTERPRISE="3" IDE_VERSION="7" PLATFORM="6" -MY_FDIR="${FILESDIR}/${SLOT}-r2" +MY_FDIR="${FILESDIR}/${PV}" DESTINATION="/usr/share/netbeans-${SLOT}" JAVA_PKG_BSFIX="off" src_unpack () { - unpack ${A} - cd ${S} + unpack "${FILE_IDE}" + use c++ && unpack_extra ${FILE_CPP} cpp + cd "${S}" find -name "*.jar" | grep "/test/" | xargs rm -v + find -name "*.class" -delete # Correct invalid XML epatch "${MY_FDIR}/jdbcstorage-build.xml-comments.patch" @@ -101,7 +107,7 @@ src_unpack () { epatch "${MY_FDIR}/jspparser-build.xml.patch" # Disable the bundled Tomcat in favor of Portage installed version - cd ${S}/nbbuild + cd "${S}"/nbbuild sed -i -e "s%tomcatint/tomcat5/bundled,%%g" *.properties place_unpack_symlinks @@ -122,11 +128,11 @@ src_compile() { unset DISPLAY # Fails to compile - java-pkg_filter-compiler ecj-3.1 ecj-3.2 + java-pkg_filter-compiler ecj-3.1 ecj-3.2 ecj-3.3 # Specify the build-nozip target otherwise it will build # a zip file of the netbeans folder, which will copy directly. - cd ${S}/nbbuild + 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 @@ -148,7 +154,7 @@ src_compile() { rm -f ${BUILDDESTINATION}/javadoc/*.zip # Use the system ant - cd ${BUILDDESTINATION}/ide${IDE_VERSION}/ant + cd ${BUILDDESTINATION}/ide${IDE_VERSION}/ant || die rm -fr lib rm -fr bin @@ -164,17 +170,22 @@ src_install() { insinto ${DESTINATION} einfo "Installing the program..." - cd ${BUILDDESTINATION} + cd ${BUILDDESTINATION} || die doins -r * + if use c++ ; 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 + rm -fr "${D}"/${DESTINATION}/etc dosym /etc/${PN}-${SLOT} ${DESTINATION}/etc # Replace bundled jars with system jars - symlink_extjars ${D}/${DESTINATION} + symlink_extjars "${D}"/${DESTINATION} # Correct permissions on executables fperms 755 \ @@ -186,7 +197,7 @@ src_install() { # Ant installation local ANTDIR="${DESTINATION}/ide${IDE_VERSION}/ant" - cd ${D}/${ANTDIR} + cd "${D}"/${ANTDIR} || die local ant_home=/usr/share/ant dodir ${ant_home}/lib @@ -198,12 +209,12 @@ src_install() { # Documentation einfo "Installing Documentation..." - cd ${D}/${DESTINATION} + 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 + use doc && java-pkg_dojavadoc "${S}"/nbbuild/build/javadoc # Icons and shortcuts einfo "Installing icon..." @@ -235,38 +246,62 @@ pkg_postrm() { # 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 + 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 + 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 - java-pkg_jar-from servletapi-2.2 servlet.jar servlet-2.2.jar + 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 + 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 + cd "${S}"/j2ee/external || die java-pkg_jar-from --build-only glassfish-persistence einfo "Symlinking jars for j2eeserver" - cd ${S}/j2eeserver/external + 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 + 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 @@ -277,34 +312,34 @@ place_unpack_symlinks() { 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 + 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 + cd "${S}"/nbbuild/external || die java-pkg_jar-from javahelp jhall.jar jhall-2.0_03.jar - cd "${S}/serverplugins/external" + 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 + 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 + 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 servletapi-2.3 servlet.jar servlet-2.3.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 + 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 @@ -314,26 +349,26 @@ place_unpack_symlinks() { symlink_extjars() { einfo "Symlinking enterprise jars" - cd ${1}/enterprise${ENTERPRISE}/modules/ext + 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} + 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} + 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} + 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 @@ -345,12 +380,12 @@ symlink_extjars() { einfo "Symlinking harness jars" - cd ${1}/harness + 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 + 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 @@ -359,12 +394,12 @@ symlink_extjars() { 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 servletapi-2.2 servlet.jar servlet-2.2.jar + 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} + 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 @@ -379,8 +414,8 @@ symlink_extjars() { dosymjar ${TARGET_DIR} saaj saaj.jar saaj-impl.jar dosymjar ${TARGET_DIR} xsdlib xsdlib.jar - TARGET_DIR="ide${IDE_VERSION}/modules/ext/jaxws20" - cd ${1}/${TARGET_DIR} + 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 @@ -392,13 +427,13 @@ symlink_extjars() { 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-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 + 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 } |