diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/Makefile | 1 | ||||
-rw-r--r-- | java/java-checkstyle/Makefile | 61 | ||||
-rw-r--r-- | java/java-checkstyle/distinfo | 1 | ||||
-rw-r--r-- | java/java-checkstyle/pkg-comment | 1 | ||||
-rw-r--r-- | java/java-checkstyle/pkg-descr | 10 |
5 files changed, 74 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile index e35e57b0c1eb..426ab1fc9457 100644 --- a/java/Makefile +++ b/java/Makefile @@ -19,6 +19,7 @@ SUBDIR += jakarta-oro SUBDIR += jakarta-regexp SUBDIR += janosvm + SUBDIR += java-checkstyle SUBDIR += java-cup SUBDIR += java-tutorial SUBDIR += javamail 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> diff --git a/java/java-checkstyle/distinfo b/java/java-checkstyle/distinfo new file mode 100644 index 000000000000..ceeedf95b111 --- /dev/null +++ b/java/java-checkstyle/distinfo @@ -0,0 +1 @@ +MD5 (checkstyle-src-2.4.tar.gz) = 770f84e44aa7d850b00a8a3c862d03c8 diff --git a/java/java-checkstyle/pkg-comment b/java/java-checkstyle/pkg-comment new file mode 100644 index 000000000000..0e757ff364da --- /dev/null +++ b/java/java-checkstyle/pkg-comment @@ -0,0 +1 @@ +Java style checker diff --git a/java/java-checkstyle/pkg-descr b/java/java-checkstyle/pkg-descr new file mode 100644 index 000000000000..7125e6e66e09 --- /dev/null +++ b/java/java-checkstyle/pkg-descr @@ -0,0 +1,10 @@ +Checkstyle is a development tool to help programmers write Java code +that adheres to a coding standard. It automates the process of +checking Java code to spare humans of this boring (but important) +task. This makes it ideal for projects that want to enforce a coding +standard. + +Checkstyle can be used as either a commandline utility or as an +Ant task. + +WWW: http://checkstyle.sourceforge.net/ |