1c1a280240
Differential Revision: https://reviews.freebsd.org/D1793 Approved by: marino(mentor)
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: Dave Glowacki <dglo@ssec.wisc.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= checkstyle
|
|
PORTVERSION= 6.3
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= SF
|
|
PKGNAMEPREFIX= java-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Java style checker
|
|
|
|
LICENSE= LGPL21 APACHE20
|
|
LICENSE_COMB= dual
|
|
|
|
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
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
do-install:
|
|
@-${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} \
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
@-${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE* RIGHTS.antlr \
|
|
${STAGEDIR}${DOCSDIR})
|
|
@-${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for EXAMPLEFILE in checkstyle_checks import-control suppressions
|
|
${INSTALL_DATA} ${WRKSRC}/${EXAMPLEFILE}.xml ${STAGEDIR}${EXAMPLESDIR}
|
|
.endfor
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|