[arch-commits] Commit in netbeans/trunk (PKGBUILD)
Santiago Torres-Arias
sangy at archlinux.org
Wed Jun 12 00:16:47 UTC 2019
Date: Wednesday, June 12, 2019 @ 00:16:45
Author: sangy
Revision: 480566
upgpkg: netbeans 11.0-2
- Add support for PHP by making PHP a makedepends.
- Add support for groovy by making groovy a makedepends.
- Make sure all the built clusters are copied into the package.
Modified:
netbeans/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-06-11 23:04:44 UTC (rev 480565)
+++ PKGBUILD 2019-06-12 00:16:45 UTC (rev 480566)
@@ -5,7 +5,7 @@
pkgname=netbeans
pkgver=11.0
-pkgrel=0
+pkgrel=2
pkgdesc='IDE for Java, HTML5, PHP, Groovy, C and C++'
arch=('any')
url='https://netbeans.apache.org/'
@@ -12,7 +12,7 @@
license=('Apache')
# classpath is not needed, see FS#38567 (Oracle JDK does not need atk either)
depends=('ttf-font')
-makedepends=('ant' 'java-environment=8')
+makedepends=('ant' 'java-environment=8' 'php' 'groovy')
optdepends=('php: for developing programs in php'
'groovy: for developing programs in groovy'
'lib32-glibc')
@@ -29,9 +29,9 @@
build() {
# full cluster configuration is not available at this time
- #ant -quiet -Dcluster.config=full
export LDFLAGS_EXTRA=$LDFLAGS CFLAGS_EXTRA=$CFLAGS
- ant -quiet
+ ant -quiet -Dcluster.config=full
+ #ant -quiet
}
# It appears that they have disabled the CI tests upstream, so I'll disable these for now...
@@ -49,7 +49,15 @@
# Resources for platform config
mkdir -p "${pkgdir}/usr/lib/${pkgname}"
- cp -r "nbbuild/${pkgname}/"{java,harness,javafx,profiler,nb,ide,extide,apisupport,websvccommon,platform} "${pkgdir}/usr/lib/${pkgname}"
+
+ local built=$(find nbbuild/${pkgname}/ -name "nb.cluster.*.built" | cut -d '.' -f 3)
+ for plugin in $built
+ do
+ if [ -d "nbbuild/${pkgname}/${plugin}" ]
+ then
+ cp -r "nbbuild/${pkgname}/${plugin}" "${pkgdir}/usr/lib/${pkgname}"
+ fi
+ done
install -Dm644 "${srcdir}/nbbuild/netbeans/etc/netbeans.import" -t "${pkgdir}/usr/lib/${pkgname}/etc/"
# copy cluster configuration
More information about the arch-commits
mailing list