1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/java/java-checkstyle/Makefile

57 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
NO_STAGE= yes
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>