Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 2014 10:10:36 +0000 (UTC)
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359974 - head/www/helma
Message-ID:  <201407011010.s61AAa1i085362@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: decke
Date: Tue Jul  1 10:10:35 2014
New Revision: 359974
URL: http://svnweb.freebsd.org/changeset/ports/359974
QAT: https://qat.redports.org/buildarchive/r359974/

Log:
  - Stagify
  - Use @sample
  - Replace NOPORTDOCS
  - Use new syntax for optional run dependency
  - Bump PORTREVISION

Modified:
  head/www/helma/Makefile
  head/www/helma/pkg-plist

Modified: head/www/helma/Makefile
==============================================================================
--- head/www/helma/Makefile	Tue Jul  1 09:49:26 2014	(r359973)
+++ head/www/helma/Makefile	Tue Jul  1 10:10:35 2014	(r359974)
@@ -33,17 +33,13 @@ PLIST_SUB=	DBDIR="${DBDIR}" \
 		HELMA_GROUP="${HELMA_GROUP}"
 
 OPTIONS_DEFINE=	MYSQL
+OPTIONS_SUB=	yes
 OPTIONS_DESC=	"Install MySQL Connector for Java"
 
-NO_STAGE=	yes
-.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
+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}|' \
@@ -77,41 +73,38 @@ post-patch:
 		${WRKBASE}/server.properties
 
 do-install:
-	${INSTALL_SCRIPT} ${FILESDIR}/helma.sh.in ${PREFIX}/bin/helma
+	${INSTALL_SCRIPT} ${FILESDIR}/helma.sh.in ${STAGEDIR}${PREFIX}/bin/helma
 
-	${MKDIR} ${WWWDIR} && \
-	(cd ${WRKBASE} && ${COPYTREE_SHARE} "apps modules" ${WWWDIR} \
+	${MKDIR} ${STAGEDIR}${WWWDIR} && \
+	(cd ${WRKBASE} && ${COPYTREE_SHARE} "apps modules" ${STAGEDIR}${WWWDIR} \
 		"! -name *.html ! -name helma-*.jar ! -name .jsdoc") && \
-	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${WWWDIR}
+	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${STAGEDIR}${WWWDIR}
 
-	${MKDIR} ${DATADIR} && \
-	(cd ${WRKBASE} && ${COPYTREE_SHARE} "lib launcher.jar" ${DATADIR} \
+	${MKDIR} ${STAGEDIR}${DATADIR} && \
+	(cd ${WRKBASE} && ${COPYTREE_SHARE} "lib launcher.jar" ${STAGEDIR}${DATADIR} \
 		"! -name *.html ! -name helma-*.jar ! -name .jsdoc")
 
-	${MKDIR} ${LOGDIR} && \
-	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${LOGDIR}
+	${MKDIR} ${STAGEDIR}${LOGDIR} && \
+	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${STAGEDIR}${LOGDIR}
 
-	${MKDIR} ${DBDIR} && \
-	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${DBDIR}
+	${MKDIR} ${STAGEDIR}${DBDIR} && \
+	${CHOWN} -R ${HELMA_USER}:${HELMA_GROUP} ${STAGEDIR}${DBDIR}
 
-	${MKDIR} ${ETCDIR}; \
+	${MKDIR} ${STAGEDIR}${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; \
+		${INSTALL_DATA} ${WRKBASE}/$$f ${STAGEDIR}${ETCDIR}/$${f##*/}.sample; \
 	done
 
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR} && \
-	(cd ${WRKBASE} && ${COPYTREE_SHARE} "licenses license.txt README.txt" ${DOCSDIR})
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR} && \
+	(cd ${WRKBASE} && ${COPYTREE_SHARE} "licenses license.txt README.txt" ${STAGEDIR}${DOCSDIR})
 
-	${MKDIR} ${DOCSDIR}/docs/api/jala && \
-	(cd ${WRKBASE}/modules/jala/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}/docs/api/jala)
+	${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 ${DATADIR}/lib/ext/mysql-connector-java.jar
+	${LN} -sf ${JAVALIBDIR}/mysql-connector-java.jar ${STAGEDIR}${DATADIR}/lib/ext/mysql-connector-java.jar
 .endif
 
 .include <bsd.port.post.mk>

Modified: head/www/helma/pkg-plist
==============================================================================
--- head/www/helma/pkg-plist	Tue Jul  1 09:49:26 2014	(r359973)
+++ head/www/helma/pkg-plist	Tue Jul  1 10:10:35 2014	(r359974)
@@ -1,15 +1,8 @@
-@unexec if cmp -s %D/%%ETCDIR%%/apps.properties.sample %D/%%ETCDIR%%/apps.properties; then rm -f %D/%%ETCDIR%%/apps.properties; fi
-%%ETCDIR%%/apps.properties.sample
-@exec if [ ! -f %D/%%ETCDIR%%/apps.properties ] ; then cp -p %D/%%ETCDIR%%/apps.properties.sample %D/%%ETCDIR%%/apps.properties; fi
-@unexec if cmp -s %D/%%ETCDIR%%/db.properties.sample %D/%%ETCDIR%%/db.properties; then rm -f %D/%%ETCDIR%%/db.properties; fi
-%%ETCDIR%%/db.properties.sample
-@exec if [ ! -f %D/%%ETCDIR%%/db.properties ] ; then cp -p %D/%%ETCDIR%%/db.properties.sample %D/%%ETCDIR%%/db.properties; fi
-@unexec if cmp -s %D/%%ETCDIR%%/helma.conf.sample %D/%%ETCDIR%%/helma.conf; then rm -f %D/%%ETCDIR%%/helma.conf; fi
-%%ETCDIR%%/helma.conf.sample
-@exec if [ ! -f %D/%%ETCDIR%%/helma.conf ] ; then cp -p %D/%%ETCDIR%%/helma.conf.sample %D/%%ETCDIR%%/helma.conf; fi
-@unexec if cmp -s %D/%%ETCDIR%%/server.properties.sample %D/%%ETCDIR%%/server.properties; then rm -f %D/%%ETCDIR%%/server.properties; fi
-%%ETCDIR%%/server.properties.sample
-@exec if [ ! -f %D/%%ETCDIR%%/server.properties ] ; then cp -p %D/%%ETCDIR%%/server.properties.sample %D/%%ETCDIR%%/server.properties; fi
+@comment $FreeBSD: ports/www/helma/pkg-plist,v 1.2 2008/12/22 21:13:15 miwi Exp $
+@sample %%ETCDIR%%/apps.properties.sample
+@sample %%ETCDIR%%/db.properties.sample
+@sample %%ETCDIR%%/helma.conf.sample
+@sample %%ETCDIR%%/server.properties.sample
 @unexec rm -rf "%%LOGDIR%%" 2> /dev/null || true
 @exec mkdir -p "%%LOGDIR%%" || true
 @exec chown -R %%HELMA_USER%%:%%HELMA_GROUP%% "%%LOGDIR%%"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407011010.s61AAa1i085362>