blob: 6f84060e01cda48fb46e52c057a7ae2383bf7638 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Created by: Dave Glowacki <dglo@ssec.wisc.edu>
# $FreeBSD$
PORTNAME= checkstyle
PORTVERSION= 7.6
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
NO_ARCH= yes
do-install:
@-${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
do-install-DOCS-on:
@-${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE* RIGHTS.antlr \
${STAGEDIR}${DOCSDIR})
do-install-EXAMPLES-on:
@-${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for EXAMPLEFILE in checkstyle_checks import-control suppressions
${INSTALL_DATA} ${WRKSRC}/config/${EXAMPLEFILE}.xml ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>
|