2012-12-29 01:05:40 +01:00
|
|
|
# Created by: Herve Quiroz <hq@FreeBSD.org>
|
2005-02-21 12:21:18 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= groovy
|
2015-09-30 03:06:59 +02:00
|
|
|
DISTVERSION= 2.4.5
|
2005-02-21 12:21:18 +01:00
|
|
|
CATEGORIES= lang java
|
2014-03-30 14:41:27 +02:00
|
|
|
MASTER_SITES= http://dl.bintray.com/groovy/maven/
|
2015-08-10 23:36:23 +02:00
|
|
|
DISTFILES= apache-groovy-binary-${PORTVERSION}${EXTRACT_SUFX}
|
2005-02-21 12:21:18 +01:00
|
|
|
|
2015-08-10 23:36:23 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-02-21 12:21:18 +01:00
|
|
|
COMMENT= Agile dynamic language for the JVM
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2012-12-29 01:05:40 +01:00
|
|
|
|
2014-05-05 11:45:36 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:tu}
|
2006-07-05 11:48:49 +02:00
|
|
|
|
2014-03-10 17:01:35 +01:00
|
|
|
USES= zip
|
2005-02-21 12:21:18 +01:00
|
|
|
USE_JAVA= yes
|
2012-08-24 01:00:50 +02:00
|
|
|
JAVA_VERSION= 1.7+
|
2015-08-10 23:36:23 +02:00
|
|
|
NO_ARCH= yes
|
2005-02-21 12:21:18 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
2015-09-30 03:06:59 +02:00
|
|
|
DATAFILES= conf lib
|
2008-03-08 12:10:39 +01:00
|
|
|
SCRIPTFILES= groovy groovyConsole groovyc groovysh java2groovy startGroovy
|
2015-08-10 23:36:23 +02:00
|
|
|
PORTDOCS= html
|
2005-02-21 12:21:18 +01:00
|
|
|
|
2014-02-21 14:37:50 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2015-08-10 23:36:23 +02:00
|
|
|
DOCS_DISTFILES= apache-groovy-docs-${PORTVERSION}${EXTRACT_SUFX}
|
2014-03-30 14:41:27 +02:00
|
|
|
|
2005-03-30 01:43:48 +02:00
|
|
|
PLIST_FILES= ${SCRIPTFILES:S,^,bin/,} %%JAVAJARDIR%%/${PORTNAME}.jar
|
2005-02-21 12:21:18 +01:00
|
|
|
SUB_FILES= set-groovy_home.sed
|
|
|
|
|
|
|
|
do-install:
|
2014-01-19 22:52:02 +01:00
|
|
|
@${ECHO_MSG} -n ">> Staging JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
2014-12-23 10:40:23 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/embeddable/${PORTNAME}-all-${DISTVERSION:tu}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
2005-02-21 12:21:18 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2014-01-19 22:52:02 +01:00
|
|
|
@${ECHO_MSG} -n ">> Staging data files in ${DATADIR}..."
|
2014-12-23 10:40:23 +01:00
|
|
|
cd ${WRKSRC} \
|
2014-01-19 22:52:02 +01:00
|
|
|
&& ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
|
|
|
|
&& ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
|
2005-02-21 12:21:18 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2014-01-19 22:52:02 +01:00
|
|
|
@${ECHO_MSG} -n ">> Staging executables in ${PREFIX}/bin..."
|
2005-12-15 18:56:29 +01:00
|
|
|
@${REINPLACE_CMD} -f ${WRKDIR}/set-groovy_home.sed ${WRKSRC}/bin/startGroovy
|
2005-02-21 12:21:18 +01:00
|
|
|
.for file in ${SCRIPTFILES}
|
|
|
|
@${ECHO_MSG} -n " ${file}"
|
2014-12-23 10:40:23 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${STAGEDIR}${PREFIX}/bin/
|
2005-02-21 12:21:18 +01:00
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2015-08-26 21:37:57 +02:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2014-01-19 22:52:02 +01:00
|
|
|
@${ECHO_MSG} -n ">> Staging documentation in ${DOCSDIR}..."
|
2008-03-08 12:10:39 +01:00
|
|
|
@cd ${WRKSRC} \
|
2014-01-19 22:52:02 +01:00
|
|
|
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
|
2005-02-21 12:21:18 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${FIND} -s ${DATAFILES:S,^,${WRKSRC}/,} -not -type d 2>/dev/null | \
|
|
|
|
${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${DATAFILES:S,^,${WRKSRC}/,} -type d 2>/dev/null | \
|
2015-08-10 23:36:23 +02:00
|
|
|
${SED} -ne 's,^${WRKSRC},@dir ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@dir ${DATADIR:S,^${PREFIX}/,,}' >> ${TMPPLIST}
|
2005-02-21 12:21:18 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|