blob: afb7ea475ac0dde3ea1ce4aba38f5da0479c1701 (
plain) (
blame)
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
|
# Ports collection makefile for: Jakarta Regexp
# Date created: 2000/12/01
# Whom: Dave Glowacki <dglo@ssec.wisc.edu> #
# $FreeBSD$
#
PORTNAME= jakarta-regexp
PORTVERSION= 1.3
PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= regexp/binaries
MAINTAINER= dglo@ssec.wisc.edu
COMMENT= Regular expressions for Java
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
USE_JAVA= yes
JAVA_VERSION= 1.2+
PLIST= ${WRKDIR}/PLIST
JAVALIBNAME= ${PORTNAME}-${PORTVERSION}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
do-build:
@if [ ! -f ${WRKSRC}/lib ]; then ${MKDIR} ${WRKSRC}/lib; fi
@cd ${WRKSRC} && \
${SETENV} JAVA_HOME=${JAVA_HOME} ant -Djakarta-site2.dir=${WRKSRC} test package
pre-install:
@${RM} -f ${PLIST}
@${TOUCH} ${PLIST}
@${ECHO} ${JAVAJARDIR}/${PORTNAME}.jar | \
${SED} "s,${PREFIX}/*,," >> ${PLIST}
@${ECHO} "@unexec ${RMDIR} ${JAVAJARDIR} 2>/dev/null || true" | \
${SED} "s,${PREFIX}/*,," >> ${PLIST}
do-install: do-install-jar do-install-apidocs
do-install-jar:
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
do-install-apidocs:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/docs/api/* ${DOCSDIR}
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|