summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2012-07-25 17:23:44 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2012-07-25 17:23:44 +0000
commitbcd38631827f39ec90a58b4233d57cccdb5d4183 (patch)
tree49d7e4801b513de72edfd7b4867717b985fbe050 /dev-util
parentVersion bump. (diff)
downloadhistorical-bcd38631827f39ec90a58b4233d57cccdb5d4183.tar.gz
historical-bcd38631827f39ec90a58b4233d57cccdb5d4183.tar.bz2
historical-bcd38631827f39ec90a58b4233d57cccdb5d4183.zip
dev-util/netbeans: version 6.8 has been moved to java-overlay
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/netbeans/ChangeLog7
-rw-r--r--dev-util/netbeans/Manifest7
-rw-r--r--dev-util/netbeans/files/6.8/nbbuild_build.xml.patch43
-rw-r--r--dev-util/netbeans/files/6.8/nbbuild_templates_projectized.xml.patch15
-rw-r--r--dev-util/netbeans/netbeans-6.8-r1.ebuild1192
5 files changed, 7 insertions, 1257 deletions
diff --git a/dev-util/netbeans/ChangeLog b/dev-util/netbeans/ChangeLog
index 79381c0fcd6a..d0c8ef26c293 100644
--- a/dev-util/netbeans/ChangeLog
+++ b/dev-util/netbeans/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/netbeans
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.168 2012/07/25 16:11:57 fordfrog Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.169 2012/07/25 17:23:44 fordfrog Exp $
+
+ 25 Jul 2012; Miroslav Šulc <fordfrog@gentoo.org>
+ -files/6.8/nbbuild_build.xml.patch,
+ -files/6.8/nbbuild_templates_projectized.xml.patch, -netbeans-6.8-r1.ebuild:
+ netbeans 6.8 has been moved to java-overlay because it is pretty old now
*netbeans-7.2 (25 Jul 2012)
diff --git a/dev-util/netbeans/Manifest b/dev-util/netbeans/Manifest
index 7763e50ec9b7..4019226d7536 100644
--- a/dev-util/netbeans/Manifest
+++ b/dev-util/netbeans/Manifest
@@ -1,7 +1,3 @@
-AUX 6.8/nbbuild_build.xml.patch 1989 SHA256 e01b8cc5b25873e94da3310719ba51bbe40a0269d7af69a3f5596a773fe5b9a6 SHA512 ffe591acaf05565485a501650403f531bc8f8aee5821ed7fa4e7214a7b3b47109d8d72f492a92cfbc74dac94a1b38614bd6bee5d94eacf2feeff8d4a8444e073 WHIRLPOOL 2bcbb87d8b749fdb30b74d058de61d657ce56d018d15e6c23b21f3289fe08404c9516d3a5edd23f05335d203f468a07c81c265b07722f19e568e9ade81f3f9aa
-AUX 6.8/nbbuild_templates_projectized.xml.patch 883 SHA256 55a8b7e4f9cea194fde29b97372eb473bcc0f3030898c1c74a7d49a8ecff2dd3 SHA512 4d2b59cb9e61e90481dfbce05122751482e246b92d83f23894730628804cdaef8b2419fda3ad6673035dd16eee5b8e238403e5914b46a98aaaa1e68f4186bdb0 WHIRLPOOL 6eefb9c2d0cc379747f690905ccac785c68957c4274c1086fbb7dd30698210735fb252d8b46a16f458bebf282add218af1e006130bbafec78853f63f1c317a13
-DIST netbeans-6.8-200912041610-src.zip 317263916 SHA256 c632df943196fbec21ffdf53538d50ca1a7561e514415a71d5c3f17ff78a4f2e SHA512 c0d71c0bd4fccabb3ef45e4aaf831b527fb4b8e5a5d6431eb0eb34443c43fa399f2f1cb8a021ce15e34918da58f919574294f59a0119f2fbb5aaeaf1915de1cc WHIRLPOOL c0f47c8cc7f4edb35298fb9300df7449778cd278c014f777b34cc60205bf8e4282370a36b6d273f5d4b7dc78f0fe709a6f359fb25a60fc072cfb8c7eba11957a
-DIST netbeans-6.8-l10n-20091209164706.tar.bz2 11453127 SHA256 3b44c5cc8e25a48bd1de631c5510327a29c7c4ab373b22e306795f0496b78a60 SHA512 66a55468dcc3d434a7305ec60bcbd5ee23032eb0e3191247e7fb3d3f8ee8a20ab74a66d1dff02d32df343709009ba5035eefcb323469b3ce750e86f1b3a7b5d3 WHIRLPOOL 402dd9c0ed2d5b76c8d9bec8514fd77c543198e6ea6c8ad3eb40285a31cb93fc8c5335a054df3ac7a0c631207fe5470d3939427837449375b69f27caffdd94fe
DIST netbeans-7.0-build.xml-r1.patch.bz2 1344 SHA256 f323cb4694f6351fe47b76fa8b8b3e3f8e456e7d45ca76f9b88c5c6b90cc103f SHA512 ec81bbef311f891dd4371644afd549bef460e8e70eed49f7dbb5aec68f386097f340a411932345ba7bc786a1aef1f0b70a719d8e784b048d5ebf8b1e9ef3bb44 WHIRLPOOL 5c4440c6e2b75209b00030d1e78c28600dc387cc836be8b74bd2d55a6426c5a10d57e21a9572b83f499aa9ed6c33e2ecce44a82c440bba818e4d22c1cf856a55
DIST netbeans-7.0.1-201107282000-src.zip 175987235 SHA256 8bf4dd2375bc9fd02adf64ca9066118e0392a33428232ccf3f9091b96557b9aa SHA512 c2b4122d7bf8332455ac71d72e76d29bc31e13d892997e153ee1bb99a019f58bfc12179a24ab2bdaaf1c61ad823b7c24857523d0363ea6856b81a0aaef9d2eca WHIRLPOOL 296b51405e16e580101f15a459f4e07ec31ab353fec1e4c4d5ae79ff7d378e994291c7c378f380fbf83d1718366f38bbb3801834079db466a1c3bade099d7fd0
DIST netbeans-7.1.1-201203012225-src.zip 172146133 SHA256 a8ff48a5837f7952cf305d70b511c4abb77d6f1639fc7de1578aac75274450d4 SHA512 e43d5477f6d6bc5471af4f7b624a806a88d34e9467ea6dc228dbbdb374e1bf073b96b3ab3c85a301207f6abb1ee6292c6fe1e859f78a620ff6654e5617b880c1 WHIRLPOOL 22e8d1c562d3702ccd0e66012819447c92fc7cc1c5f0c52ceb9f9990372b1f7b976b3b1b8e31bd1bfb96726fbb8963c4e444ff0fad931d75a8201d6dcb012bac
@@ -12,10 +8,9 @@ DIST netbeans-9999-r1-build.xml.patch.bz2 2379 SHA256 09cfedef0fd9d713ddc71a5484
DIST netbeans-l10n-7.0.1-20110930.tar.bz2 13491185 SHA256 ba1b83dd4a543918b7147304d8bba6e35d39fe4e567432766e4749b100c9b2a3 SHA512 368ebd35339e4903a470d4e2694a1758b8020d3a35f0c6595fb9a15ce31c3240f65c80a82f4de8d2409dd2e9af48e0eed6c6929aa88fcd9d96bb44f47994cae6 WHIRLPOOL 31ebbcb85efa91dd1ea86479289f046704af8cb159ac7c87936d458c8049dbc9f61842eadc24ed446e853f424547d94adc05d94fa650c346475e2b285bafe2d3
DIST netbeans-l10n-7.1.1-20120214091350.tar.bz2 12586999 SHA256 3f104bffac464143f2efe96824a1e1c796e16d568fb39c9719152f84248e236c SHA512 e1e77088e9b64ba896052d874eebe8402ad2de9b3c89008610f06f99fed8a6b3da18fcd1bada50dc5fe23021234a65c11aecb58ad8736689639ef902191a995e WHIRLPOOL cf8d0fa8fb47fcd64eca72990c6cdb48522c6026a707d893a849c90c2e390befa30067a901fa9a934f1f1fa6daa2a3e6e36702d6f9c7c02b246ef83780844f8f
DIST netbeans-l10n-7.2-20120725.tar.bz2 12452511 SHA256 6b017a1354f1098a3d75acf8613d74dd7c775d047567cce5b2e79ffb4113ea7e SHA512 c9e54b760906237c6d22fd9485d1be50b036d94e3fc6372ed24eb34b9201e73bd9f7be4c64b5d6a5e45093a0fbe27ade3c924a65c277524740b01ddaf0f889ae WHIRLPOOL d83689314da7f7528e3074290bb8f2945426bef3c33fd8e9cb6b81ce8b353a1a891be3120820586d6bc982e477c4b67a723c35fdfe68b33779f2953cec530945
-EBUILD netbeans-6.8-r1.ebuild 43136 SHA256 5b34a9b43e28cefa7518645f2850f480e25701e09b9cbb4afb304cdb893d3d80 SHA512 1cdf32b19b735ef098aadf25e667cb47d8cad53a83f9dba7b1642c4418c606611506ef1332b0366e4c0e963b542232424f58d01ea4abe776a17d025d4fa037fe WHIRLPOOL 88ed15254c99b88e3840c6068363373e230f16f47ac336d4ae6fe304bcb2fdc14074297cdca1a93edcffc358d746920321a74e43cb30728ebe9f1b124d8cf3ec
EBUILD netbeans-7.0.1-r2.ebuild 6842 SHA256 9342c08914553a40cdd4aa54c82a40340885569ef6c9b39166021e5474da7a67 SHA512 c8c195e423319d6026519b3887767a683901004a246ea4289b446d5737986a33b25a70efcce5b304c02f2ef074093e36537090bb8230a1f7c23b1a5e769af007 WHIRLPOOL 14eeef291613abdc7bafc623bc886a5ea18cab8475795715bf41cfec6310a557a689dde617fd122c82f88afa4714ddb31959920c243966c755dfe45218269e90
EBUILD netbeans-7.1.1.ebuild 7079 SHA256 6a564604ed1f83afe404c0066514b88d4ec63e08b8b751bed9618f42ffecdb53 SHA512 9b028700f044c46b0c5474bd89546b5ccba25a9d0ed1bb769bfcb6b1114822bc6fdc10a339a5b2296584ed4a0b7bd83b6f7d700a1a400e40d8228944e3a533cd WHIRLPOOL 326633ef18445e5f2a0ec3528642598e289ff9013ebc6a7b793eb0d3ad5231d83b5637da9362c0bf7f7553c31fc6010ae0e4fcf991dd8bb550b47612ceba31de
EBUILD netbeans-7.1.2.ebuild 7073 SHA256 e7a69ab852d589358fab4b715a2ae8e0db222bb43cb9f85a761ca0696c416610 SHA512 6574fb96670b2dc3c80d7786737c027d91c66c3c8b2e8785547c1312a7610b295b8f570bb085f765a4e3a51ffd0afd5ab49f3d3c3c30acb983c982a561ef134c WHIRLPOOL 26d9e5dc8a5a078d835133060594552a89a4c299e2ccd591ad90b589d51b2f2bbc21e2b093526bb6a65af26183bd7fadada18eca56305f564eea9a4a5d87449b
EBUILD netbeans-7.2.ebuild 7129 SHA256 b6ea2007a34b627b2650c67212653330cfd116d7414843eba2ba8958a67526aa SHA512 c27effd595906fa5362e44792ab0853df2b277722e40b928af9805edef415194a6e90d2001b56f2d8dca8b359f1123dafe4039a9db339b138a957051a8701c08 WHIRLPOOL ead2c1eb52ddf0c08b0b2362a77d561ae3b09138182692610da8c6430d8603d90dc264cc2905618166dccf8901006a2d2c11946b2fcc1d4ba6815fcc647ca68b
-MISC ChangeLog 31446 SHA256 7f068b4ec7a33bd660714f0e8778f6f3a5157f6ab9bd84e144ec87443632269a SHA512 5d071839f041ad31ace994206fd96ae117bfb1f44f2b8c6fab9c4e9f7432c44652879b48e2d9350f361e7ece6f1b413fce2cd68eb25b998c7e3a2f2cf6fab501 WHIRLPOOL 33714ccc8964d4be8a470655845aad5c8ad8caa31aeb5b2bf01357bce589cf32de7762cd7d8c1ad5c74ef4a97eb54a5b38bd623d9e5c87042d73f138afdd545c
+MISC ChangeLog 31691 SHA256 65603fa6e7c188082cceb5e64cd5619516a72c9ab5ae3af001fc369d34e20b51 SHA512 de8f45b0126aede091fe482d50a63a61b3ac041c6855242923f78405aaf7813911cbfe62c10d4ae754bfe8f918a1f2d1e38281625ea8c60a275cc0e05c1a4ed0 WHIRLPOOL 4d4f42894a6169e397f788f899a8ec5e8b9541905ee1f352b726f45f33e10e146e4293c80fb98e0022907df449daa8ddd34da56abbee5c3b75b928d88ca09ee4
MISC metadata.xml 1222 SHA256 08bcc20abdc5d2499dedd8695247221c667747bb19a75e77034ed34edbceb9b9 SHA512 7e14453015326d36e167f6ff52186e5f581ea72b33549dd64578ce58d3b6affc7b18a9594e6fdbea738e1ba958db57eb591e63255bd22b73e9c8ce43efcdd16b WHIRLPOOL 8020d2b91909dfae3d2c2caa9e893d102a696ab6d4bd59fa7f2b44ef69d4c09a60290a3f648538f3ddf153eb9360bd3cb5c4755ff51832caf2434a5f14d79fe7
diff --git a/dev-util/netbeans/files/6.8/nbbuild_build.xml.patch b/dev-util/netbeans/files/6.8/nbbuild_build.xml.patch
deleted file mode 100644
index 88a8086f5e9a..000000000000
--- a/dev-util/netbeans/files/6.8/nbbuild_build.xml.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- nbbuild/build.xml.orig 2009-04-30 11:54:57.000000000 +0200
-+++ nbbuild/build.xml 2009-04-30 11:55:52.000000000 +0200
-@@ -94,13 +94,6 @@
- <validate-hg-configuration root=".."/>
- <taskdef name="deregisterexternalhook" classname="org.netbeans.nbbuild.extlibs.DeregisterExternalHook" classpath="build/antclasses"/>
- <deregisterexternalhook root=".."/>
-- <taskdef name="downloadbinaries" classname="org.netbeans.nbbuild.extlibs.DownloadBinaries" classpath="build/antclasses"/>
-- <downloadbinaries cache="${binaries.cache}" server="${binaries.server}">
-- <manifest dir="${nb_all}">
-- <include name="apisupport.harness/external/binaries-list"/>
-- <include name="javahelp/external/binaries-list"/>
-- </manifest>
-- </downloadbinaries>
-
- <echo message="Bootstrapping NetBeans-specific Ant extensions..."/>
- <path id="bootstrap-cp">
-@@ -147,12 +140,6 @@
- </jar>
- </target>
- <target name="-download-all-extbins" unless="ext.binaries.downloaded">
-- <downloadbinaries cache="${binaries.cache}" server="${binaries.server}">
-- <manifest dir="${nb_all}">
-- <include name="*/external/binaries-list"/>
-- <include name="contrib/*/external/binaries-list"/>
-- </manifest>
-- </downloadbinaries>
- <property name="ext.binaries.downloaded" value="true"/>
- </target>
-
-@@ -1387,13 +1374,6 @@
- <include name="contrib/*/external/build.xml"/>
- </fileset>
- </subant>
-- <taskdef name="downloadbinaries" classname="org.netbeans.nbbuild.extlibs.DownloadBinaries" classpath="nbantext.jar"/>
-- <downloadbinaries cache="${binaries.cache}" server="${binaries.server}" clean="true">
-- <manifest dir="${nb_all}">
-- <include name="*/external/binaries-list"/>
-- <include name="contrib/*/external/binaries-list"/>
-- </manifest>
-- </downloadbinaries>
- </target>
-
- <target name="-real-clean" depends="-cleanall,localclean,-clean-external">
diff --git a/dev-util/netbeans/files/6.8/nbbuild_templates_projectized.xml.patch b/dev-util/netbeans/files/6.8/nbbuild_templates_projectized.xml.patch
deleted file mode 100644
index 3387c1399cb8..000000000000
--- a/dev-util/netbeans/files/6.8/nbbuild_templates_projectized.xml.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- nbbuild/templates/projectized.xml.orig 2009-11-28 12:38:34.000000000 +0100
-+++ nbbuild/templates/projectized.xml 2009-11-28 12:39:09.000000000 +0100
-@@ -81,12 +81,6 @@
- </target>
-
- <target name="build-init" depends="basic-init,jdk-5-check,set-buildnumber">
-- <taskdef name="downloadbinaries" classname="org.netbeans.nbbuild.extlibs.DownloadBinaries" classpath="${nb_all}/nbbuild/nbantext.jar"/>
-- <downloadbinaries cache="${binaries.cache}" server="${binaries.server}">
-- <manifest dir=".">
-- <include name="external/binaries-list"/>
-- </manifest>
-- </downloadbinaries>
- <property name="public.package.jar.dir" location="${nb_all}/nbbuild/build/public-package-jars"/>
- <mkdir dir="${public.package.jar.dir}"/>
- <property name="test.dist.dir" location="${nb_all}/nbbuild/build/testdist"/>
diff --git a/dev-util/netbeans/netbeans-6.8-r1.ebuild b/dev-util/netbeans/netbeans-6.8-r1.ebuild
deleted file mode 100644
index 4a9840040c87..000000000000
--- a/dev-util/netbeans/netbeans-6.8-r1.ebuild
+++ /dev/null
@@ -1,1192 +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.8-r1.ebuild,v 1.6 2010/07/07 20:01:01 fauli 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.8"
-SRC_URI="http://download.netbeans.org/netbeans/6.8/final/zip/netbeans-6.8-200912041610-src.zip
- mirror://gentoo/netbeans-6.8-l10n-20091209164706.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_websvccommon"
-IUSE_LINGUAS="
- linguas_ar
- linguas_ca
- 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_ro
- 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/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/jettison-1.0:0
- dev-java/jsr311-api: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-io-1.1:1
- >=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/jdbc-mysql-5.1:0
- >=dev-java/jdbc-postgresql-8.3_p603:0
- >=dev-java/jsch-0.1.39:0
- >=dev-java/jzlib-1.0.7: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/appframework-1.03:0
- 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/stax-ex:0
- >=dev-java/swing-worker-1.1: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/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-io-1.1:1
- >=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/jdbc-mysql-5.1:0
- >=dev-java/jdbc-postgresql-8.3_p603:0
- >=dev-java/jsch-0.1.39:0
- >=dev-java/jzlib-1.0.7: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/appframework-1.03:0
- dev-java/beansbinding:0
- >=dev-java/cglib-2.2_beta:2.2
- dev-java/jdom:1.0
- >=dev-java/junit-3.8:0
- >=dev-java/swing-worker-1.1: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="6"
-IDE_VERSION="12"
-PLATFORM="11"
-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_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, harness, ide
- if use netbeans_modules_cnd ; then
- need_dlight="1"
- need_harness="1"
- need_ide="1"
- fi
-
- # direct deps: ide
- if use netbeans_modules_dlight ; then
- need_ide="1"
- fi
-
- # direct deps: harness, ide, java, profiler
- if use netbeans_modules_enterprise ; then
- need_harness="1"
- need_ide="1"
- need_java="1"
- need_profiler="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: harness, ide, websvccommon
- if use netbeans_modules_java ; then
- need_harness="1"
- 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, websvccommon
- if use netbeans_modules_php ; then
- need_ide="1"
- need_websvccommon="1"
- fi
-
- # direct deps: ide, java
- if use netbeans_modules_profiler ; then
- need_ide="1"
- need_java="1"
- fi
-
- # direct deps: harness, ide
- if use netbeans_modules_ruby ; then
- need_harness="1"
- 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_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"
- 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_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_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"
-
- filter_file "libs.junit4/external/junit-4.5.jar" ${tmpfile}
-
- if use netbeans_modules_dlight ; then
- filter_file "dlight.db.h2/external/h2-1.0.79.jar" ${tmpfile}
- filter_file "dlight.db.derby/external/derby-10.2.2.0.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_enterprise ; then
- filter_file "javaee.api/external/javaee-api-6.0.jar" ${tmpfile}
- filter_file "javaee.api/external/javaee-web-api-6.0.jar" ${tmpfile}
- filter_file "javaee.api/external/javax.annotation.jar" ${tmpfile}
- filter_file "javaee.api/external/jaxb-api-osgi.jar" ${tmpfile}
- filter_file "javaee.api/external/webservices-api-osgi.jar" ${tmpfile}
- 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-1.1.4-javadoc.jar" ${tmpfile}
- filter_file "websvc.restlib/external/jsr311-api-1.1.1-javadoc.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_groovy ; then
- # heavily repackaged
- filter_file "groovy.editor/external/groovy-all-1.6.4.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_harness ; then
- filter_file "apisupport.harness/external/openjdk-javac-6-b12.jar" ${tmpfile}
- filter_file "apisupport.tc.cobertura/external/cobertura-1.9.jar" ${tmpfile}
- filter_file "jemmy/external/jemmy-2.3.0.0.jar" ${tmpfile}
- fi
-
- if use netbeans_modules_ide ; then
- filter_file "extexecution.destroy/external/libpam4j-1.1.jar" ${tmpfile}
- # org.netbeans.processtreekiller package
- filter_file "extexecution.destroy/external/processtreekiller-1.0.1.jar" ${tmpfile}
- filter_file "extexecution.destroy/external/winp-1.13-patched.jar" ${tmpfile}
- # 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 (also netbeans seems to require JAXB 2.2)
- filter_file "libs.jaxb/external/jaxb-api.jar" ${tmpfile}
- filter_file "libs.jaxb/external/jaxb-impl.jar" ${tmpfile}
- filter_file "libs.jaxb/external/jaxb1-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}
- filter_file "swing.validation/external/ValidationAPI.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
- filter_file "j2ee.eclipselink/external/eclipselink-2.0.0.jar" ${tmpfile}
- filter_file "j2ee.eclipselink/external/eclipselink-javax.persistence-2.0.jar" ${tmpfile}
- # 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}
- 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
-
- local extra_flags=""
- if use netbeans_modules_ergonomics ; then
- mkdir "${S}"/nbbuild/ergonomics_build_fix || die
- extra_flags="-Dergonomic.clusters.extra=../../ergonomics_build_fix"
- fi
-
- # Fails to compile
- java-pkg_filter-compiler ecj-3.2 ecj-3.3 ecj-3.4 ecj-3.5
-
- # Build the clusters
- local heap=""
- if use doc ; then
- heap="-Xmx1536m"
- else
- heap="-Xmx1g"
- fi
-
- local extra_tasks=""
-
- ANT_TASKS="ant-nodeps ant-trax" ANT_OPTS="${heap} -Djava.awt.headless=true" \
- eant ${antflags} ${clusters} -f nbbuild/build.xml ${extra_flags} ${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}"/cnd3/bin/*-SunOS-*
- rm -fv "${BUILDDESTINATION}"/cnd3/bin/*-Mac_OS_X-*
- fi
-
- # Use the system ant
- if use netbeans_modules_java ; then
- cd "${BUILDDESTINATION}"/java3/ant || die "Cannot cd to "${BUILDDESTINATION}"/java3/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.8/:' "${BUILDDESTINATION}"/bin/netbeans
- sed -i -e 's:"${userdir}"/etc/:/etc/netbeans-6.8/:' "${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}/cnd3/bin || die
- for file in *.sh ; do
- fperms 755 ${file} || die
- done
- for file in `find -name "*.so"` ; do
- fperms 755 ${file} || die
- done
- fi
- if use netbeans_modules_dlight ; then
- cd "${D}"/${DESTINATION}/dlight2/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.4.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}/java3/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.4.jar
- dosymcompilejar "libs.jna/external" jna jna.jar jna-3.0.9.jar
- dosymcompilejar "libs.jsr223/external" jsr223 script-api.jar jsr223-api.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.tc.cobertura/external" asm-2.2 asm.jar asm-2.2.1.jar
- dosymcompilejar "apisupport.tc.cobertura/external" asm-2.2 asm-tree.jar asm-tree-2.2.1.jar
- dosymcompilejar "apisupport.tc.cobertura/external" jakarta-oro-2.0 jakarta-oro.jar jakarta-oro-2.0.8.jar
- dosymcompilejar "apisupport.tc.cobertura/external" log4j log4j.jar log4j-1.2.9.jar
- fi
-
- if use netbeans_modules_ide ; then
- dosymcompilejar "extexecution.destroy/external" commons-io-1 commons-io.jar commons-io-1.4.jar
- 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.jzlib/external" jzlib jzlib.jar jzlib-1.0.7.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.4.1.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" 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
- dosymcompilejar "swingapp/external" appframework appframework.jar appframework-1.0.3.jar
- dosymcompilejar "swingapp/external" swing-worker swing-worker.jar swing-worker-1.1.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.4.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} swing-layout-1 swing-layout.jar swing-layout-1.0.4.jar
-
- if use netbeans_modules_dlight ; then
- targetdir="dlight2/modules/ext"
- # derby-10.2.2.0.jar
- # h2-1.0.79.jar
- fi
-
- if use netbeans_modules_enterprise ; then
- targetdir="/enterprise6/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="enterprise6/modules/ext/spring"
- # spring-webmvc-2.5.jar
- targetdir="enterprise6/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="enterprise6/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="enterprise6/modules/ext/metro"
- # webservices-api.jar
- # webservices-extra.jar
- # webservices-extra-api.jar
- # webservices-rt.jar
- # webservices-tools.jar
- targetdir="/enterprise6/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
- # jersey.jar
- # jersey-spring.jar
- dosyminstjar ${targetdir} jettison jettison.jar jettison-1.1.jar
- dosyminstjar ${targetdir} jsr311-api jsr311-api.jar jsr311-api-1.1.1.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-io-1 commons-io.jar commons-io-1.4.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} jzlib jzlib.jar jzlib-1.0.7.jar
- dosyminstjar ${targetdir} lucene-2.4 lucene-core.jar lucene-core-2.4.1.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"
- # jaxb-api.jar
- dosyminstjar ${targetdir} jsr173 jsr173.jar jsr173_api.jar
- fi
-
- if use netbeans_modules_java ; then
- targetdir="java3/ant/etc"
- dosyminstjar ${targetdir} ant ant-bootstrap.jar ant-bootstrap.jar
- targetdir="java3/ant/nblib"
- # bridge.jar
- targetdir="java3/ant/patches"
- # 72080.jar
- targetdir="java3/modules"
- # org-apache-tools-ant-module.jar
- targetdir="java3/modules/ext"
- dosyminstjar ${targetdir} appframework appframework.jar 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
- dosyminstjar ${targetdir} swing-worker swing-worker.jar swing-worker-1.1.jar
- targetdir="java3/modules/ext/jaxws22"
- dosyminstjar ${targetdir} fastinfoset fastinfoset.jar FastInfoset.jar
- # gmbal-api-only.jar
- # http.jar
- # jaxws-rt.jar
- # jaxws-tools.jar
- # management-api.jar
- # mimepull.jar - atm do not know what to do with it
- # policy.jar
- dosyminstjar ${targetdir} saaj saaj.jar saaj-impl.jar
- dosyminstjar ${targetdir} stax-ex stax-ex.jar stax-ex.jar
- dosyminstjar ${targetdir} xmlstreambuffer streambuffer.jar streambuffer.jar
- # woodstox.jar
- targetdir="java3/modules/ext/jaxws22/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="java3/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="java3/modules/ext/spring"
- # spring-2.5.jar
- targetdir="java3/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.4.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
-}