# $FreeBSD$ PORTNAME= sventon PORTVERSION= 2.5.1 CATEGORIES= www java MASTER_SITES= GOOGLE_CODE DISTNAME= ${PORTNAME}-${PORTVERSION}-bin-svnkit MAINTAINER= ports@FreeBSD.org COMMENT= Web client for browsing Subversion repositories LICENSE= GPLv3 # or later LICENSE_FILE= ${WRKSRC}/gpl.txt USES= zip NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} OPTIONS_SINGLE= AS OPTIONS_SINGLE_AS= TOMCAT6 OPTIONS_DEFAULT= TOMCAT6 .include .if ${PORT_OPTIONS:MTOMCAT6} APPHOME= ${LOCALBASE}/apache-tomcat-6.0 BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 .endif .if !defined(APPHOME) IGNORE= you need at least one application server .endif USE_JAVA= yes JAVA_VERSION= 1.6+ SHAREOWN= www SHAREGRP= www PLIST_SUB+= APPHOME=${APPHOME:S|^${PREFIX}/||} post-extract: @${MKDIR} ${WRKDIR}/${PORTDIRNAME} @${TAR} xf ${WRKSRC}/svn.war -C ${WRKDIR}/${PORTDIRNAME} do-install: ${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${STAGEDIR}${APPHOME}/webapps/${PORTDIRNAME} cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${STAGEDIR}${APPHOME}/webapps/${PORTDIRNAME} .include