2012-12-10 14:43:43 +01:00
|
|
|
# Created by: nivit@users.sourceforge.net
|
2004-05-23 21:24:22 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= apache-forrest
|
2014-07-04 04:08:40 +02:00
|
|
|
PORTVERSION= 0.9
|
|
|
|
PORTREVISION= 0
|
2005-07-06 17:43:59 +02:00
|
|
|
CATEGORIES= www java
|
2015-05-11 20:34:57 +02:00
|
|
|
MASTER_SITES= SITE_APACHE/forrest
|
|
|
|
DISTFILES= ${DISTNAME}-sources.tar.gz \
|
|
|
|
${DISTNAME}-dependencies.tar.gz
|
2004-05-23 21:24:22 +02:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2014-07-04 04:08:40 +02:00
|
|
|
COMMENT= Tool for rapid development of small sites
|
2004-05-23 21:24:22 +02:00
|
|
|
|
2017-05-27 02:20:19 +02:00
|
|
|
BROKEN_armv6= fails to compile: build.xml: tools/ant/lib not found
|
2017-11-30 07:13:34 +01:00
|
|
|
BROKEN_armv7= fails to compile: build.xml: tools/ant/lib not found
|
2017-05-27 02:20:19 +02:00
|
|
|
|
2014-07-04 04:08:40 +02:00
|
|
|
ANT= ${STAGEDIR}${DATADIR}/tools/ant/bin/ant
|
|
|
|
ANT_TARGET= local-deploy
|
2004-05-23 21:24:22 +02:00
|
|
|
|
2014-07-12 01:16:20 +02:00
|
|
|
IGNORE_FILES= ! -name *\.bak -and ! -name *\.bat \
|
|
|
|
-and ! -name *\.orig -and ! -name .gitignore \
|
|
|
|
-and ! -name KEYS -and ! -name README.txt \
|
|
|
|
-and ! -name ant -and ! -name forrest \
|
|
|
|
-and ! -name index.html
|
|
|
|
|
2014-07-04 04:08:40 +02:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/build
|
|
|
|
|
|
|
|
JAVA_VERSION= 1.6+
|
2004-05-23 21:24:22 +02:00
|
|
|
|
2005-07-06 17:43:59 +02:00
|
|
|
NO_BUILD= Yes
|
2004-05-23 21:24:22 +02:00
|
|
|
|
2014-07-04 04:08:40 +02:00
|
|
|
PLUGINSDIR= ${DATADIR}/plugins/org.apache.forrest.plugin.output.pdf
|
|
|
|
|
|
|
|
REPLACE_FILES= ${WRKSRC}/bin/forrest ${WRKSRC}/tools/ant/bin/ant
|
2004-05-23 21:24:22 +02:00
|
|
|
|
2014-07-04 04:08:40 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= PORTVERSION=${PORTVERSION}
|
2005-07-06 17:43:59 +02:00
|
|
|
|
2014-07-04 04:08:40 +02:00
|
|
|
USE_JAVA= yes
|
2004-05-23 21:24:22 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@for FILE in ${REPLACE_FILES}; do \
|
2005-07-06 17:43:59 +02:00
|
|
|
${REINPLACE_CMD} -e "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/g" \
|
|
|
|
$${FILE} ;\
|
2004-05-23 21:24:22 +02:00
|
|
|
done;
|
|
|
|
|
|
|
|
do-install:
|
2005-07-06 17:43:59 +02:00
|
|
|
@cd ${WRKSRC}; \
|
2014-07-12 01:16:20 +02:00
|
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '${IGNORE_FILES}'
|
2014-07-04 04:08:40 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/forrest ${STAGEDIR}${DATADIR}/bin/forrest
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/tools/ant/bin/ant ${STAGEDIR}${DATADIR}/tools/ant/bin/ant
|
|
|
|
@${LN} -sf ../${DATADIR_REL}/bin/forrest ${STAGEDIR}${PREFIX}/bin/forrest
|
|
|
|
@cd ${STAGEDIR}${PLUGINSDIR}; \
|
2016-07-19 13:04:13 +02:00
|
|
|
${SETENV} FORREST_HOME=${STAGEDIR}${DATADIR} ${ANT} ${ANT_TARGET}
|
2004-05-23 21:24:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|