blob: 6ee1fc6b6bb873cc4e5585bae31b3a12228bd35d (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Created by: nivit@users.sourceforge.net
# $FreeBSD$
PORTNAME= apache-forrest
PORTVERSION= 0.9
PORTREVISION= 0
CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= forrest
DISTFILES= ${PORTNAME}-${PORTVERSION}-sources.tar.gz \
${PORTNAME}-${PORTVERSION}-dependencies.tar.gz
MAINTAINER= nivit@FreeBSD.org
COMMENT= Tool for rapid development of small sites
ANT= ${STAGEDIR}${DATADIR}/tools/ant/bin/ant
ANT_TARGET= local-deploy
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
INSTALL_WRKSRC= ${WRKSRC}/build
JAVA_VERSION= 1.6+
NO_BUILD= Yes
PLUGINSDIR= ${DATADIR}/plugins/org.apache.forrest.plugin.output.pdf
REPLACE_FILES= ${WRKSRC}/bin/forrest ${WRKSRC}/tools/ant/bin/ant
SUB_FILES= pkg-message
SUB_LIST= PORTVERSION=${PORTVERSION}
USE_JAVA= yes
post-patch:
@for FILE in ${REPLACE_FILES}; do \
${REINPLACE_CMD} -e "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/g" \
$${FILE} ;\
done;
do-install:
@cd ${WRKSRC}; \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '${IGNORE_FILES}'
@${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
post-install:
@cd ${STAGEDIR}${PLUGINSDIR}; \
${SETENV} FORREST_HOME=${STAGEDIR}${DATADIR} ${ANT} ${ANT_TARGET}; \
${SED} -e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" \
-e "/%%PORTVERSION%%/s//${PORTVERSION}/g" ${PKGMESSAGE};
.include <bsd.port.mk>
|