2002-10-10 00:03:39 +02:00
|
|
|
# Ports collection makefile for: Java Checkstyle
|
|
|
|
# Date created: 2002/09/02
|
|
|
|
# Whom: Dave Glowacki <dglo@ssec.wisc.edu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= checkstyle
|
2011-11-22 16:51:39 +01:00
|
|
|
PORTVERSION= 5.5
|
2002-10-10 00:03:39 +02:00
|
|
|
CATEGORIES= java devel
|
2007-12-20 05:11:51 +01:00
|
|
|
MASTER_SITES= SF
|
2002-10-10 00:03:39 +02:00
|
|
|
PKGNAMEPREFIX= java-
|
2010-12-20 02:45:24 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
2002-10-10 00:03:39 +02:00
|
|
|
|
2007-03-05 01:35:23 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= Java style checker
|
2002-10-10 00:03:39 +02:00
|
|
|
|
2004-11-25 04:28:11 +01:00
|
|
|
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
2002-10-10 00:03:39 +02:00
|
|
|
|
2004-11-25 04:28:11 +01:00
|
|
|
USE_JAVA= yes
|
2010-12-20 02:45:24 +01:00
|
|
|
JAVA_VERSION= 1.5+
|
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2002-10-10 00:03:39 +02:00
|
|
|
|
2010-12-20 02:45:24 +01:00
|
|
|
JAR_FILE= ${PORTNAME}-${PORTVERSION}-all.jar
|
2002-10-10 00:03:39 +02:00
|
|
|
|
2010-12-20 02:45:24 +01:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
%%JAVAJARDIR%%/${PORTNAME}.jar
|
2002-10-10 00:03:39 +02:00
|
|
|
|
2008-08-24 12:06:04 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2010-12-20 02:45:24 +01:00
|
|
|
PORTDOCS= *
|
2003-12-15 19:01:20 +01:00
|
|
|
.endif
|
|
|
|
|
2010-12-20 02:45:24 +01:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
.endif
|
2002-11-23 00:48:17 +01:00
|
|
|
|
2010-12-20 02:45:24 +01:00
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
2002-11-23 00:48:17 +01:00
|
|
|
|
2010-12-20 02:45:24 +01:00
|
|
|
do-install:
|
|
|
|
@-${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${JAVAJARDIR}/${PORTNAME}.jar
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
|
2002-10-10 00:03:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2010-12-20 02:45:24 +01:00
|
|
|
@-${MKDIR} ${DOCSDIR}
|
|
|
|
.for DOCFILE in LICENSE* README RIGHTS.antlr
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${DOCFILE} ${DOCSDIR}/
|
2004-05-02 19:13:53 +02:00
|
|
|
.endfor
|
2010-12-20 02:45:24 +01:00
|
|
|
@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}
|
2002-10-10 00:03:39 +02:00
|
|
|
.endif
|
2005-02-04 18:02:08 +01:00
|
|
|
|
2002-10-10 00:03:39 +02:00
|
|
|
.include <bsd.port.mk>
|