diff options
author | tobik <tobik@FreeBSD.org> | 2017-07-13 23:46:36 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2017-07-13 23:46:36 +0800 |
commit | 0e013fca2098fc58d0cbfade28d2166ad3a36c14 (patch) | |
tree | e1e4176a7fae7b9edbf64c4bec6e0005d74029f6 /java | |
parent | 0fbb2bce1b9eaafaa41798655dc0843453f1d125 (diff) | |
download | freebsd-ports-graphics-0e013fca2098fc58d0cbfade28d2166ad3a36c14.tar.gz freebsd-ports-graphics-0e013fca2098fc58d0cbfade28d2166ad3a36c14.tar.zst freebsd-ports-graphics-0e013fca2098fc58d0cbfade28d2166ad3a36c14.zip |
Fix build of java/openjfx8-devel with Gradle 4.0
PR: 220322
Approved by: mat (mentor)
Differential Revision: https://reviews.freebsd.org/D11565
Diffstat (limited to 'java')
-rw-r--r-- | java/openjfx8-devel/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/openjfx8-devel/Makefile b/java/openjfx8-devel/Makefile index ed8f212070d..c9437251a5c 100644 --- a/java/openjfx8-devel/Makefile +++ b/java/openjfx8-devel/Makefile @@ -43,12 +43,16 @@ WRKSRC= ${WRKDIR}/tobik-openjfx-rt-2de985ca8377 # non-pristine environment. post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/build.gradle ${WRKSRC}/buildSrc/build.gradle +# Fix build directories which are now language specific with Gradle 4.0 + @${REINPLACE_CMD} -E -e 's|%%PREFIX%%|${PREFIX}|g' \ + -e 's|"(\$$buildDir/classes)/main"|"\1/java/main"|g' \ + -e 's|"(modules/.*/build/classes)/main"|"\1/java/main"|g' \ + ${WRKSRC}/build.gradle ${WRKSRC}/buildSrc/build.gradle do-build: # Gradle creates ${HOME}/.gradle, pretend home is somewhere else @${MKDIR} ${WRKDIR}/dot-gradle - @(cd ${WRKSRC}; ${SETENV} GRADLE_USER_HOME=${WRKDIR}/dot-gradle gradle zips) + @(cd ${WRKSRC}; ${SETENV} GRADLE_USER_HOME=${WRKDIR}/dot-gradle gradle --no-daemon zips) do-install: @(${MKDIR} ${STAGEDIR}${JAVA_HOME} \ |