freebsd-ports/java/jakarta-oro/Makefile
Mark Linimon 06e6677793 Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
2011-07-21 05:03:02 +00:00

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
PORTREVISION= 2
CATEGORIES= java
MASTER_SITES= http://archive.apache.org/dist/jakarta/oro/
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl/awk/sh regular expressions for Java
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
USE_JAVA= yes
JAVA_VERSION= 1.5+
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>