97ec794d66
- [#6750] Gradle fails to resolve project dependencies against Scala projects - [#6747] Candidate set provided to `AttributeDisambiguationRule` contains null entry - [#6735] Dependent module Scala compilation in test context fails for 4.10.1
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2018/11/20 21:26:39 schmonz Exp $
|
|
|
|
DISTNAME= gradle-4.10.2-bin
|
|
PKGNAME= ${DISTNAME:S/-bin//}
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= http://services.gradle.org/distributions/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= asiekierka@gmail.com
|
|
HOMEPAGE= https://gradle.org/
|
|
COMMENT= Groovy-based Java build system
|
|
LICENSE= apache-2.0
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-bin//}
|
|
|
|
USE_JAVA= run
|
|
USE_JAVA2= yes
|
|
USE_TOOLS+= bash:run pax:build
|
|
NO_BUILD= yes
|
|
|
|
pre-configure:
|
|
${CP} ${FILESDIR}/gradle-launcher ${WRKSRC}/gradle-launcher
|
|
|
|
REPLACE_BASH+= gradle-launcher
|
|
|
|
SUBST_CLASSES+= launcher
|
|
SUBST_FILES.launcher= gradle-launcher
|
|
SUBST_STAGE.launcher= post-configure
|
|
SUBST_SED.launcher= -e 's,@APP_HOME@,${PREFIX}/lib/java/gradle,g'
|
|
SUBST_SED.launcher+= -e 's,@PREFIX@,${PREFIX},g'
|
|
SUBST_SED.launcher+= -e 's,@APP_LAUNCHER@,lib/gradle-launcher-${PKGVERSION_NOREV}\.jar,g'
|
|
SUBST_SED.launcher+= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
|
|
|
|
INSTALLATION_DIRS= bin lib/java/gradle/lib lib/java/gradle/lib/plugins
|
|
INSTALLATION_DIRS+= lib/java/gradle/media share/doc/java/gradle
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gradle-launcher ${DESTDIR}${PREFIX}/bin/gradle
|
|
cd ${WRKSRC}/lib && ${PAX} -wr * ${DESTDIR}${PREFIX}/lib/java/gradle/lib
|
|
${INSTALL_DATA} ${WRKSRC}/media/*.icns ${DESTDIR}${PREFIX}/lib/java/gradle/media
|
|
${INSTALL_DATA} ${WRKSRC}/getting-started.html ${DESTDIR}${PREFIX}/share/doc/java/gradle
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|