freebsd-ports/java/jakarta-oro/Makefile
Ernst de Haan b093017dc6 Port devel/jakarta-ant was renamed to devel/apache-ant.
Reported by:	kris
Pointy hat to:	me
2003-07-23 14:30:29 +00:00

55 lines
1.5 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.6
CATEGORIES= java
MASTER_SITES= http://jakarta.apache.org/builds/${PORTNAME}/release/v${PORTVERSION}/
MAINTAINER= dglo@ssec.wisc.edu
COMMENT= Perl/awk/sh regular expressions for Java
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
USE_JAVA= 1.2+
NEED_JAVAC= YES
PLIST= ${WRKDIR}/PLIST
JAVALIBNAME= ${PORTNAME}-${PORTVERSION}
APIDOCSDIR= ${DOCSDIR}/${JAVALIBNAME}
pre-install:
@${RM} -f ${PLIST}
@${TOUCH} ${PLIST}
do-build:
@cd ${WRKSRC} && \
${SETENV} JAVA_HOME=${JAVA_HOME} ant jar javadocs
do-install: do-install-jar do-install-apidocs
do-install-jar:
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO} ${JAVAJARDIR}/${PORTNAME}.jar | \
${SED} "s,${PREFIX}/*,," >> ${PLIST}
@${ECHO} "@unexec ${RMDIR} ${JAVAJARDIR} 2>/dev/null || true" | \
${SED} "s,${PREFIX}/*,," >> ${PLIST}
do-install-apidocs:
.if !defined(NOPORTDOCS)
@${MKDIR} ${APIDOCSDIR}
@${CP} -r ${WRKSRC}/docs/api/* ${APIDOCSDIR}
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${APIDOCSDIR}
@${FIND} ${APIDOCSDIR} -type f -print | \
${SED} "s,${PREFIX}/*,," >> ${PLIST}
@${FIND} ${APIDOCSDIR} -type d -print | sort -r | \
${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST}
.endif
.include <bsd.port.mk>