summaryrefslogtreecommitdiffstats
path: root/devel/gradle/Makefile
blob: 66d4905fa53ac004745310ea6aae39e3d56736ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$

PORTNAME=	gradle
PORTVERSION=	2.12
PORTREVISION=	1
CATEGORIES=	devel java
MASTER_SITES=	https://services.gradle.org/distributions/
DISTNAME=	${PORTNAME}-${PORTVERSION}-bin

MAINTAINER=	gasol.wu@gmail.com
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
WRKSRC=		${WRKDIR}/${DISTNAME:S/-bin$$//}
SUB_LIST=	PORTVERSION=${PORTVERSION} \
		JAVA=${JAVA}
SUB_FILES=	gradle

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/gradle ${STAGEDIR}${PREFIX}/bin/gradle
	(cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud