From 5394c67c41f2b5d0214cf8fe3f100b5aa21e7d39 Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Sat, 9 Jul 2016 18:43:40 +0000 Subject: [PATCH] devel/gradle: Add missing dependency Gradle uses native-platform which has compiled its native component with g++, and requires that libstdc++.so.6 is available. See https://github.com/adammurdoch/native-platform/issues/8. PR: 208471 MFH: 2016Q3 Submitted by: Tobias Kortkamp Approved by: gasol.wu@gmail.com (maintainer timeout) --- devel/gradle/Makefile | 6 ++++++ devel/gradle/files/gradle.in | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/devel/gradle/Makefile b/devel/gradle/Makefile index f563b504ae18..66d4905fa53a 100644 --- a/devel/gradle/Makefile +++ b/devel/gradle/Makefile @@ -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 @@ -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 diff --git a/devel/gradle/files/gradle.in b/devel/gradle/files/gradle.in index 5d40f0075233..0d526d4cec3f 100644 --- a/devel/gradle/files/gradle.in +++ b/devel/gradle/files/gradle.in @@ -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 "$@"