6b8521edc3
PR: ports/66060 Submitted by: Dave Glowacki <dglo at glowacki.dyndns.org> (maintainer)
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Ports collection makefile for: Jakarta ORO
|
|
# Date created: 2000/12/01
|
|
# Whom: Dave Glowacki <dglo@ssec.wisc.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jakarta-oro
|
|
PORTVERSION= 2.0.8
|
|
CATEGORIES= java
|
|
MASTER_SITES= http://jakarta.apache.org/builds/${PORTNAME}/release/v${PORTVERSION}/ \
|
|
http://ftp.epix.net/apache/jakarta/oro/binaries/
|
|
|
|
MAINTAINER= dglo@ssec.wisc.edu
|
|
COMMENT= Perl/awk/sh 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:
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} JAVA_HOME=${JAVA_HOME} ant jar javadocs
|
|
|
|
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>
|