From owner-svn-ports-head@FreeBSD.ORG Sun Oct 28 22:19:56 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 10BC74E1; Sun, 28 Oct 2012 22:19:56 +0000 (UTC) (envelope-from hq@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EBC5A8FC15; Sun, 28 Oct 2012 22:19:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9SMJtvB012209; Sun, 28 Oct 2012 22:19:55 GMT (envelope-from hq@svn.freebsd.org) Received: (from hq@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9SMJthA012207; Sun, 28 Oct 2012 22:19:55 GMT (envelope-from hq@svn.freebsd.org) Message-Id: <201210282219.q9SMJthA012207@svn.freebsd.org> From: Herve Quiroz Date: Sun, 28 Oct 2012 22:19:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306585 - head/www/axis X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 22:19:56 -0000 Author: hq Date: Sun Oct 28 22:19:55 2012 New Revision: 306585 URL: http://svn.freebsd.org/changeset/ports/306585 Log: - Add support for tomcat6/7 instead of tomcat55 - Move docs and examples to optionsNG and define portdocs and portexamples explictly PR: 173011 Submitted by: jgh Feature safe: yes Modified: head/www/axis/Makefile Modified: head/www/axis/Makefile ============================================================================== --- head/www/axis/Makefile Sun Oct 28 22:00:44 2012 (r306584) +++ head/www/axis/Makefile Sun Oct 28 22:19:55 2012 (r306585) @@ -1,12 +1,10 @@ -# New ports collection makefile for: AXIS -# Date created: 6 JUNE 2003 -# Whom: Kensaku MASUDA +# Created by: Kensaku MASUDA # # $FreeBSD$ PORTNAME= axis PORTVERSION= 1.4 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= www java MASTER_SITES= ${MASTER_SITE_APACHE} MASTER_SITE_SUBDIR= ws/axis/${PORTVERSION:S,.,_,g} @@ -15,23 +13,22 @@ DISTNAME= axis-bin-${PORTVERSION:S,.,_, MAINTAINER= hq@FreeBSD.org COMMENT= Java SOAP implementation by Apache +OPTIONS_SINGLE= AS +OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7 +OPTIONS_DEFAULT= TOMCAT6 + .include -# -# Change webapp directory by TOMCAT version -# -.if exists(${LOCALBASE}/tomcat5.5/webapps) -WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps -BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 -RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 -.elif exists(${LOCALBASE}/apache-tomcat-6.0/webapps) +.if ${PORT_OPTIONS:MTOMCAT6} WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6 -.else -WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps -BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 -RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55 +.endif + +.if ${PORT_OPTIONS:MTOMCAT7} +WEBAPPDIR= ${PREFIX}/apache-tomcat-7.0/webapps +BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7 +RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7 .endif NO_BUILD= YES @@ -47,12 +44,9 @@ WRKSRC= ${WRKDIR}/axis-${PORTVERSION:S, # SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP} -.if !defined(NOPORTDOCS) + PORTDOCS= * -.endif -.if !defined(NOPORTEXAMPLES) PORTEXAMPLES= * -.endif do-install: .for i in ${SYSTEM_JARS} @@ -60,11 +54,11 @@ do-install: .endfor cd ${WRKSRC}/webapps && ${FIND} axis -type d -exec ${INSTALL} -d -g ${GROUP} -o ${USER} -m 755 ${WEBAPPDIR}/{} \; cd ${WRKSRC}/webapps && ${FIND} axis -type f -exec ${INSTALL} -g ${GROUP} -o ${USER} -m 444 {} ${WEBAPPDIR}/{} \; -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; .endif