mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Handle deprecation of www/tomcat41 and cleanup dependencies [1]
- Fix Tomcat dependency lookup mechanism - Honor NOPORTEXAMPLES - Use PORTDOCS and PORTEXAMPLES PR: 159691 [1] Submitted by: Jason Helfman <jhelfman@experts-exchange.com> [1]
This commit is contained in:
parent
237e6c9b58
commit
f65d1f6080
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279648
@ -6,7 +6,7 @@
|
||||
|
||||
PORTNAME= axis
|
||||
PORTVERSION= 1.4
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= www java
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE}
|
||||
MASTER_SITE_SUBDIR= ws/axis/${PORTVERSION:S,.,_,g}
|
||||
@ -15,21 +15,23 @@ DISTNAME= axis-bin-${PORTVERSION:S,.,_,g}
|
||||
MAINTAINER= hq@FreeBSD.org
|
||||
COMMENT= Java SOAP implementation by Apache
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
#
|
||||
# Change webapp directory by TOMCAT version
|
||||
#
|
||||
.if exists(${LOCALBASE}/tomcat5.5/webapps)
|
||||
WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
||||
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
||||
.elif exists(${LOCALBASE}/jakarta-tomcat4.1/webapps)
|
||||
WEBAPPDIR= ${PREFIX}/jakarta-tomcat4.1/webapps
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/tomcat41
|
||||
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/tomcat41
|
||||
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)
|
||||
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:${PORTSDIR}/www/tomcat55
|
||||
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
|
||||
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
|
||||
.endif
|
||||
|
||||
NO_BUILD= YES
|
||||
@ -40,13 +42,17 @@ GROUP= www
|
||||
|
||||
WRKSRC= ${WRKDIR}/axis-${PORTVERSION:S,.,_,g}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
#
|
||||
# Install procedure
|
||||
#
|
||||
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}
|
||||
@ -57,6 +63,8 @@ do-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
|
||||
cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
|
||||
cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
||||
.endif
|
||||
|
2315
www/axis/pkg-plist
2315
www/axis/pkg-plist
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user