head	1.8;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1;
locks; strict;
comment	@# @;


1.8
date	2012.12.10.13.48.09;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.11.17.06.02.35;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.10.22.09.48.01;	author decke;	state Exp;
branches;
next	1.5;

1.5
date	2011.07.21.05.03.00;	author linimon;	state Exp;
branches;
next	1.4;

1.4
date	2010.04.01.12.45.36;	author decke;	state Exp;
branches;
next	1.3;

1.3
date	2010.02.22.20.48.38;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2008.12.22.21.13.15;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2008.09.07.22.23.34;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308605
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308605 | bapt | 2012-12-10 13:43:43 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part3)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Bernhard Froehlich <decke@@bluelife.at>
# $FreeBSD: head/www/helma/Makefile 308605 2012-12-10 13:43:43Z bapt $

PORTNAME=	helma
PORTVERSION=	1.7.0
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=	A Web application framework for fast and efficient scripting

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
OPTIONS_DESC=	"Install MySQL Connector for Java"

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+=	${JAVALIBDIR}/mysql-connector-java.jar:${PORTSDIR}/databases/mysql-connector-java
PLIST_SUB+=	MYSQL=""
.else
PLIST_SUB+=	MYSQL="@@comment "
.endif

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 ${PREFIX}/bin/helma

	${MKDIR} ${WWWDIR} && \
	(cd ${WRKBASE} && ${COPYTREE_SHARE} "apps modules" ${WWWDIR} \
		"! -name *.html ! -name helma-*.jar ! -name .jsdoc") && \
	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${WWWDIR}

	${MKDIR} ${DATADIR} && \
	(cd ${WRKBASE} && ${COPYTREE_SHARE} "lib launcher.jar" ${DATADIR} \
		"! -name *.html ! -name helma-*.jar ! -name .jsdoc")

	${MKDIR} ${LOGDIR} && \
	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${LOGDIR}

	${MKDIR} ${DBDIR} && \
	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${DBDIR}

	${MKDIR} ${ETCDIR}; \
	for f in apps.properties db.properties server.properties scripts/helma.conf; do \
		${INSTALL_DATA} ${WRKBASE}/$$f ${ETCDIR}/$${f##*/}.sample; \
		if [ ! -f ${ETCDIR}/$${f##*/} ]; then \
		${CP} -p ${ETCDIR}/$${f##*/}.sample ${ETCDIR}/$${f##*/}; \
		fi; \
	done

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR} && \
	(cd ${WRKBASE} && ${COPYTREE_SHARE} "licenses license.txt README.txt" ${DOCSDIR})

	${MKDIR} ${DOCSDIR}/docs/api/jala && \
	(cd ${WRKBASE}/modules/jala/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}/docs/api/jala)
.endif

.if ${PORT_OPTIONS:MMYSQL}
	${LN} -sf ${JAVALIBDIR}/mysql-connector-java.jar ${DATADIR}/lib/ext/mysql-connector-java.jar
.endif

.include <bsd.port.post.mk>
@


1.7
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/www/helma/Makefile 306268 2012-10-22 09:48:01Z decke $
d20 1
a20 1
JAVA_VERSION=	1.5+
@


1.6
log
@SVN rev 306268 on 2012-10-22 09:48:01Z by decke

- Convert to OptionsNG
- Fix alternate distfile mirror
- Trim Makefile header

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5
log
@Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
@
text
@d1 1
a1 4
# New ports collection makefile for:	helma
# Date created:		2008-06-22
# Whom:			Bernhard Froehlich <decke@@bluelife.at>
#
a2 1
#
d8 1
a8 1
		http://home.bluelife.at/ports/distfiles/helma/${PORTVERSION}/
d35 2
a36 1
OPTIONS=	MYSQL "Install MySQL Connector for Java" off
d40 1
a40 1
.if defined(WITH_MYSQL)
d112 1
a112 1
.if defined(WITH_MYSQL)
@


1.4
log
@- Change to my FreeBSD email address

Approved by:	miwi (mentor), beat (co-mentor)
@
text
@d24 1
a24 1
JAVA_VERSION=	1.4+
@


1.3
log
@- Update to 1.7.0

PR:		143968
Submitted by:	Bernhard Froehlich <decke@@bluelife.at> (maintainer)
Feature safe: yes
@
text
@d15 1
a15 1
MAINTAINER=	decke@@bluelife.at
@


1.2
log
@- Update to 1.6.3

PR:		129696
Submitted by:	Bernhard Froehlich <decke@@bluelife.at> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.6.3
d11 2
a12 1
MASTER_SITES=	http://adele.helma.org/download/helma/${PORTVERSION}/
a32 4
APPFILES=	apps modules
ETCFILES=	apps.properties db.properties server.properties scripts/helma.conf
DATAFILES=	lib launcher.jar
DOCFILES=	docs licenses README.txt
d85 1
a85 1
	(cd ${WRKBASE} && ${COPYTREE_SHARE} "${APPFILES}" ${WWWDIR} \
d90 1
a90 1
	(cd ${WRKBASE} && ${COPYTREE_SHARE} "${DATAFILES}" ${DATADIR} \
d100 1
a100 1
	for f in ${ETCFILES}; do \
d109 1
a109 1
	(cd ${WRKBASE} && ${COPYTREE_SHARE} "${DOCFILES}" ${DOCSDIR})
@


1.1
log
@Helma is an open source web application framework for fast
and efficient scripting and serving of your websites and
Internet applications.

WWW:	http://www.helma.org/

PR:		ports/127184
Submitted by:	Bernhard Froehlich <decke at bluelife.at>
@
text
@d3 1
a3 1
# Whom:			Bernhard Fr__hlich <decke@@bluelife.at>
d9 1
a9 1
PORTVERSION=	1.6.2
d12 1
a12 1
DISTFILES=	helma-1.6.2.tar.gz helma-1.6.2-src.tar.gz
d18 1
a18 1
WRKSRC=		${WRKBASE}/build
d23 1
a23 1
JAVA_VERSION=	1.5+
@

