freebsd-ports/java/java-checkstyle/Makefile
John Marino 1dfa52b992 java/java-checkstyle: Upgrade version 5.5 => 5.8
Assign assign submitter as maintainer

PR:		194257
Submitted by:	Muhammad Rahman
2014-10-10 12:33:12 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Dave Glowacki <dglo@ssec.wisc.edu>
# $FreeBSD$
PORTNAME= checkstyle
PORTVERSION= 5.8
CATEGORIES= java devel
MASTER_SITES= SF
PKGNAMEPREFIX= java-
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= 5u623l20@gmail.com
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})
(cd ${WRKSRC} && ${COPYTREE_SHARE} site ${STAGEDIR}${DOCSDIR})
@-${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for EXAMPLEFILE in checkstyle_checks import-control sun_checks suppressions
${INSTALL_DATA} ${WRKSRC}/${EXAMPLEFILE}.xml ${STAGEDIR}${EXAMPLESDIR}
.endfor
(cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>