aboutsummaryrefslogtreecommitdiffstats
path: root/java/java-checkstyle/Makefile
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2002-10-10 06:03:39 +0800
committerznerd <znerd@FreeBSD.org>2002-10-10 06:03:39 +0800
commit9d08575b44cf3e50c810993f1f38e196c6e6596a (patch)
treeabd53374aed16327a6878c663e3bb3a2a2d94830 /java/java-checkstyle/Makefile
parent622e7b731221bc4cfda7b94a55cb0249fc841828 (diff)
downloadfreebsd-ports-gnome-9d08575b44cf3e50c810993f1f38e196c6e6596a.tar.gz
freebsd-ports-gnome-9d08575b44cf3e50c810993f1f38e196c6e6596a.tar.zst
freebsd-ports-gnome-9d08575b44cf3e50c810993f1f38e196c6e6596a.zip
New port: java-checkstyle.
PR: 42412 Submitted by: Dave Glowacki <dglo@hyde.ssec.wisc.edu>
Diffstat (limited to 'java/java-checkstyle/Makefile')
-rw-r--r--java/java-checkstyle/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/java/java-checkstyle/Makefile b/java/java-checkstyle/Makefile
new file mode 100644
index 000000000000..2758c2984d01
--- /dev/null
+++ b/java/java-checkstyle/Makefile
@@ -0,0 +1,61 @@
+# Ports collection makefile for: Java Checkstyle
+# Date created: 2002/09/02
+# Whom: Dave Glowacki <dglo@ssec.wisc.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= checkstyle
+PORTVERSION= 2.4
+CATEGORIES= java devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+PKGNAMEPREFIX= java-
+DISTNAME= ${PORTNAME}-src-${PORTVERSION}
+
+MAINTAINER= dglo@ssec.wisc.edu
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/jakarta-ant
+
+USE_JAVA= 1.2+
+NEED_JAVAC= YES
+
+PLIST= ${WRKDIR}/PLIST
+
+CLASSES_SUBDIR= share/java/classes
+STYLE_SUBDIR= share/java/${PORTNAME}
+
+post-extract:
+ @${TOUCH} ${WRKDIR}/PLIST
+
+do-build:
+ @(cd ${WRKSRC}; ${SETENV} JAVA_HOME=${JAVA_HOME} ant build.bindist)
+
+do-install:
+ @${MKDIR} ${PREFIX}/${CLASSES_SUBDIR}
+ @${INSTALL_DATA} ${WRKSRC}/target/dist/${PORTNAME}-${PORTVERSION}/${PORTNAME}-all-${PORTVERSION}.jar ${PREFIX}/${CLASSES_SUBDIR}/${PORTNAME}.jar
+ @${ECHO} ${CLASSES_SUBDIR}/${PORTNAME}.jar >> ${PLIST}
+ @${MKDIR} ${PREFIX}/${STYLE_SUBDIR}
+ @(cd ${WRKSRC}/target/dist/${PORTNAME}-${PORTVERSION}/contrib && \
+ ${TAR} -c -f - .) \
+ | (cd ${PREFIX}/${STYLE_SUBDIR} && ${TAR} --unlink -x -f -)
+ @cd ${PREFIX} \
+ && ${FIND} ${STYLE_SUBDIR} -type f -print >> ${PLIST}
+ @cd ${PREFIX} \
+ && ${FIND} ${STYLE_SUBDIR} -type d -print | sort -r | \
+ ${SED} "s,^,@dirrm ,g" >> ${PLIST}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @(cd ${WRKSRC}/target/dist/${PORTNAME}-${PORTVERSION} && \
+ ${TAR} -c --exclude '*.jar' --exclude contrib -f - .) \
+ | (cd ${DOCSDIR} && ${TAR} --unlink -x -f -)
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ @cd ${PREFIX} \
+ && ${FIND} share/doc/${PORTNAME} -type f -print >> ${PLIST}
+ @cd ${PREFIX} \
+ && ${FIND} share/doc/${PORTNAME} -type d -print | sort -r | \
+ ${SED} "s,^,@dirrm ,g" >> ${PLIST}
+.endif
+ @${ECHO} "@unexec ${RMDIR} %D/${CLASSES_SUBDIR} 2>/dev/null || true" >> ${PLIST}
+
+.include <bsd.port.mk>