1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/helma/Makefile
Jimmy Olgeni 96a38c7c3a Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. A few Makefiles
where not included as they contain Latin-1 characters that break
the Phabricator workflow. Category W.

CR:		D510
Approved by:	portmgr (bapt)
2014-08-06 09:11:57 +00:00

114 lines
3.6 KiB
Makefile

# Created by: Bernhard Froehlich <decke@bluelife.at>
# $FreeBSD$
PORTNAME= helma
PORTVERSION= 1.7.0
PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= http://adele.helma.org/download/helma/${PORTVERSION}/ \
LOCAL/decke
DISTFILES= helma-${PORTVERSION}.tar.gz helma-${PORTVERSION}-src.tar.gz
MAINTAINER= decke@FreeBSD.org
COMMENT= Web application framework for fast and efficient scripting
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKBASE}/licenses/license.txt
WRKBASE= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKSRC= ${WRKBASE}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
USE_RC_SUBR= helma
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= clean jar
DBDIR?= /var/db/${PORTNAME}
LOGDIR?= /var/log/${PORTNAME}
HELMA_USER= ${WWWOWN}
HELMA_GROUP= ${WWWGRP}
HELMA_CONFIG= ${WRKBASE}/scripts/helma.conf
PLIST_SUB= DBDIR="${DBDIR}" \
LOGDIR="${LOGDIR}" \
HELMA_USER="${HELMA_USER}" \
HELMA_GROUP="${HELMA_GROUP}"
OPTIONS_DEFINE= MYSQL DOCS
OPTIONS_SUB= yes
OPTIONS_DESC= Install MySQL Connector for Java
MYSQL_RUN_DEPENDS= ${JAVALIBDIR}/mysql-connector-java.jar:${PORTSDIR}/databases/mysql-connector-java
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|JAVA_HOME=/usr/lib/j2sdk1.5-sun|JAVA_HOME=${JAVA_HOME}|' \
${HELMA_CONFIG}
@${REINPLACE_CMD} -e 's|HELMA_INSTALL=/usr/local/helma/helma-1.6.x|HELMA_INSTALL=${DATADIR}|' \
${HELMA_CONFIG}
@${REINPLACE_CMD} -e 's|HELMA_HOME=\$$HELMA_INSTALL|HELMA_HOME=${WWWDIR}|' \
${HELMA_CONFIG}
@${REINPLACE_CMD} -e 's|HELMA_USER=helma|HELMA_USER=${HELMA_USER}|' \
${HELMA_CONFIG}
@${REINPLACE_CMD} -e 's|HELMA_LOG=\$$HELMA_HOME/log/helma-out.log|HELMA_LOG=${LOGDIR}/helma-out.log|' \
${HELMA_CONFIG}
@${ECHO_CMD} "HELMA_CONFIG=${ETCDIR}" >> \
${HELMA_CONFIG}
@${ECHO_CMD} "" >> \
${WRKBASE}/server.properties
@${ECHO_CMD} "# custom directories" >> \
${WRKBASE}/server.properties
@${ECHO_CMD} "hopHome = ${WWWDIR}" >> \
${WRKBASE}/server.properties
@${ECHO_CMD} "appHome = ${WWWDIR}/apps" >> \
${WRKBASE}/server.properties
@${ECHO_CMD} "appsPropFile = ${ETCDIR}/apps.properties" >> \
${WRKBASE}/server.properties
@${ECHO_CMD} "dbPropFile = ${ETCDIR}/db.properties" >> \
${WRKBASE}/server.properties
@${ECHO_CMD} "dbHome = ${DBDIR}" >> \
${WRKBASE}/server.properties
@${REINPLACE_CMD} -e 's|# logDir = console|logDir = ${LOGDIR}|' \
${WRKBASE}/server.properties
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/helma.sh.in ${STAGEDIR}${PREFIX}/bin/helma
${MKDIR} ${STAGEDIR}${WWWDIR} && \
(cd ${WRKBASE} && ${COPYTREE_SHARE} "apps modules" ${STAGEDIR}${WWWDIR} \
"! -name *.html ! -name helma-*.jar ! -name .jsdoc") && \
${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${STAGEDIR}${WWWDIR}
${MKDIR} ${STAGEDIR}${DATADIR} && \
(cd ${WRKBASE} && ${COPYTREE_SHARE} "lib launcher.jar" ${STAGEDIR}${DATADIR} \
"! -name *.html ! -name helma-*.jar ! -name .jsdoc")
${MKDIR} ${STAGEDIR}${LOGDIR} && \
${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${STAGEDIR}${LOGDIR}
${MKDIR} ${STAGEDIR}${DBDIR} && \
${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${STAGEDIR}${DBDIR}
${MKDIR} ${STAGEDIR}${ETCDIR}; \
for f in apps.properties db.properties server.properties scripts/helma.conf; do \
${INSTALL_DATA} ${WRKBASE}/$$f ${STAGEDIR}${ETCDIR}/$${f##*/}.sample; \
done
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
(cd ${WRKBASE} && ${COPYTREE_SHARE} "licenses license.txt README.txt" ${STAGEDIR}${DOCSDIR})
${MKDIR} ${STAGEDIR}${DOCSDIR}/docs/api/jala && \
(cd ${WRKBASE}/modules/jala/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/docs/api/jala)
.endif
.if ${PORT_OPTIONS:MMYSQL}
${LN} -sf ${JAVALIBDIR}/mysql-connector-java.jar ${STAGEDIR}${DATADIR}/lib/ext/mysql-connector-java.jar
.endif
.include <bsd.port.post.mk>