blob: e53d94711597f5e18bbee6350c90a7544590792a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: Jakarta Commons Chain
# Date created: October 3, 2005
# Whom: Adam VanderHook <acidos@bandwidth-junkies.net>
#
# $FreeBSD$
#
PORTNAME= commons-chain
PORTVERSION= 1.2
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE}
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= API implementing Chain of Responsiblity design pattern
BUILD_DEPENDS= ${JAR_DEPENDS}
RUN_DEPENDS= ${JAR_DEPENDS}
LICENSE= ASL
JAR_DEPENDS= ${JAVALIBDIR}/commons-beanutils.jar:${PORTSDIR}/java/jakarta-commons-beanutils \
${JAVALIBDIR}/commons-digester.jar:${PORTSDIR}/textproc/jakarta-commons-digester \
${JAVALIBDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
${JAVALIBDIR}/myfaces.jar:${PORTSDIR}/www/myfaces \
${JAVALIBDIR}/portlet-api.jar:${PORTSDIR}/devel/portlet-api \
${JAVALIBDIR}/servlet-api.jar:${PORTSDIR}/www/servlet-api
USE_JAVA= yes
USE_ANT= yes
MAKE_ENV= CLASSPATH=${MAKE_CLASSPATH}
MAKE_ARGS= -Dnoget=yes
.include <bsd.port.pre.mk>
MAKE_CLASSPATH!= ${ECHO_CMD} ${JAR_DEPENDS:C|:.*$||} | ${SED} 's| |:|g'
ALL_TARGET= jar
.if !defined(NOPORTDOCS)
ALL_TARGET+= javadoc
OTHERDOCS= LICENSE.txt NOTICE.txt
PORTDOCS= api ${OTHERDOCS}
.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
@cd ${WRKSRC}/dist/docs \
&& ${FIND} api -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
&& ${FIND} api -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
@${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
@${ECHO_MSG} " ${PORTDOCS} [ DONE ]"
.endif
.include <bsd.port.post.mk>
|