Skip to content

Commit

Permalink
devel/gradle: Add missing dependency
Browse files Browse the repository at this point in the history
Gradle uses native-platform which has compiled its native component
with g++, and requires that libstdc++.so.6 is available. See
gradle/native-platform#8.

PR:		208471
MFH:		r418287
Submitted by:	Tobias Kortkamp <t@tobik.me>
Approved by:	portmgr
  • Loading branch information
opsec committed Jul 10, 2016
1 parent 513ca6e commit 40887ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions devel/gradle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

PORTNAME= gradle
PORTVERSION= 2.12
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= https://services.gradle.org/distributions/
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
Expand All @@ -12,6 +13,11 @@ COMMENT= Project automation tool

LICENSE= APACHE20

# Gradle depends on native-platform which has a native component that
# requires libstdc++.so.6, because it was compiled with g++.
# See https://github.com/adammurdoch/native-platform/issues/8
LIB_DEPENDS= libstdc++.so.6:misc/compat9x

USES= zip
USE_JAVA= yes
NO_BUILD= yes
Expand Down
2 changes: 1 addition & 1 deletion devel/gradle/files/gradle.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
#!/bin/sh
exec "%%JAVA%%" -Dorg.gradle.native=false $JAVA_OPTS -classpath "%%DATADIR%%/lib/gradle-launcher-%%PORTVERSION%%.jar" org.gradle.launcher.GradleMain "$@"

0 comments on commit 40887ba

Please sign in to comment.