mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
7c354b1913
suppress any reference to JAVA_VERSION= 1.5+ (part2)
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Created by: Dave Glowacki <dglo@ssec.wisc.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= checkstyle
|
|
PORTVERSION= 5.5
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= SF
|
|
PKGNAMEPREFIX= java-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Java style checker
|
|
|
|
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
JAR_FILE= ${PORTNAME}-${PORTVERSION}-all.jar
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
%%JAVAJARDIR%%/${PORTNAME}.jar
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
PORTEXAMPLES= *
|
|
.endif
|
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
|
|
|
do-install:
|
|
@-${MKDIR} ${JAVAJARDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${JAVAJARDIR}/${PORTNAME}.jar
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
|
|
.if !defined(NOPORTDOCS)
|
|
@-${MKDIR} ${DOCSDIR}
|
|
.for DOCFILE in LICENSE* README RIGHTS.antlr
|
|
@${INSTALL_DATA} ${WRKSRC}/${DOCFILE} ${DOCSDIR}/
|
|
.endfor
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} site ${DOCSDIR}
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@-${MKDIR} ${EXAMPLESDIR}
|
|
.for EXAMPLEFILE in checkstyle_checks import-control sun_checks suppressions
|
|
@${INSTALL_DATA} ${WRKSRC}/${EXAMPLEFILE}.xml ${EXAMPLESDIR}/
|
|
.endfor
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|