mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
06e6677793
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
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# New ports collection makefile for: pmd
|
|
# Date created: 2006-06-07
|
|
# Whom: Alex Varju <freebsd-ports@varju.ca>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pmd
|
|
PORTVERSION= 3.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= SF/${PORTNAME}/OldFiles
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Static analysis tool for Java source code
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
|
|
|
|
USE_ZIP= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
USE_ANT= yes
|
|
|
|
MAKE_ARGS= -cp ${JAVALIBDIR}/junit.jar
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
BUILD_WRKSRC= ${WRKSRC}/bin
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
do-install:
|
|
.for script in bgastviewer.sh cpd.sh designer.sh pmd.sh
|
|
${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \
|
|
-e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
|
|
-e "s|%%LOCALBASE%%|${LOCALBASE}|" \
|
|
${INSTALL_WRKSRC}/bin/${script}
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/bin/bgastviewer.sh ${PREFIX}/bin/bgastviewer
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/bin/cpd.sh ${PREFIX}/bin/cpd
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/bin/designer.sh ${PREFIX}/bin/pmd_designer
|
|
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/bin/pmd.sh ${PREFIX}/bin/pmd
|
|
${MKDIR} ${DATADIR}
|
|
cd ${INSTALL_WRKSRC}/lib \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DATADIR}/ \;
|
|
.if !defined(NOPORTDOCS)
|
|
cd ${INSTALL_WRKSRC}/docs \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|