From owner-freebsd-ports Wed Sep 4 6:50:20 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B70037B400 for ; Wed, 4 Sep 2002 06:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3D8F43E6E for ; Wed, 4 Sep 2002 06:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g84Do3JU059608 for ; Wed, 4 Sep 2002 06:50:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g84Do3wQ059607; Wed, 4 Sep 2002 06:50:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD8D37B400 for ; Wed, 4 Sep 2002 06:47:36 -0700 (PDT) Received: from hyde.ssec.wisc.edu (hyde.ssec.wisc.edu [128.104.109.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD52043E65 for ; Wed, 4 Sep 2002 06:47:35 -0700 (PDT) (envelope-from dglo@hyde.ssec.wisc.edu) Received: from hyde.ssec.wisc.edu (localhost [127.0.0.1]) by hyde.ssec.wisc.edu (8.10.2+Sun/8.10.2) with ESMTP id g84DlXq16515 for ; Wed, 4 Sep 2002 08:47:33 -0500 (CDT) Message-Id: <200209041347.g84DlXq16515@hyde.ssec.wisc.edu> Date: Wed, 04 Sep 2002 08:47:33 -0500 From: Dave Glowacki To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42412: NEW JAVA PORT: checkstyle Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42412 >Category: ports >Synopsis: NEW JAVA PORT: checkstyle >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Sep 04 06:50:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dave Glowacki >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD eusebius.glowacki.org 4.6-STABLE FreeBSD 4.6-STABLE #0: Wed Jul 3 22:12:27 CDT 2002 dglo@eusebius.glowacki.org:/usr/src/sys/compile/EUSEBIUS i386 >Description: checkstyle is a Java style checker which can be run from either the commandline or as an Ant task. My favorite checkstyle feature is its ability to identify unused imports, but it's also a reasonably configurable style checker and it's a good way to catch missing javadoc. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # checkstyle # checkstyle/Makefile # checkstyle/distinfo # checkstyle/pkg-comment # checkstyle/pkg-descr # echo c - checkstyle mkdir -p checkstyle > /dev/null 2>&1 echo x - checkstyle/Makefile sed 's/^X//' >checkstyle/Makefile << 'END-of-checkstyle/Makefile' X# Ports collection makefile for: Checkstyle X# Date created: 2002/09/02 X# Whom: Dave Glowacki X# X# $FreeBSD$ X# X XPORTNAME= checkstyle XPORTVERSION= 2.3 XCATEGORIES= java devel XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} XDISTNAME= ${PORTNAME}-src-${PORTVERSION} X XMAINTAINER= dglo@ssec.wisc.edu X XBUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/jakarta-ant X XUSE_JAVA= 1.2+ XNEED_JAVAC= YES X XPLIST= ${WRKDIR}/PLIST X XCLASSES_SUBDIR= share/java/classes XSTYLE_SUBDIR= share/java/${PORTNAME} X Xpost-extract: X @${TOUCH} ${WRKDIR}/PLIST X Xdo-build: X @(cd ${WRKSRC}; ${SETENV} JAVA_HOME=${JAVA_HOME} ant build.bindist) X Xdo-install: X @${MKDIR} ${PREFIX}/${CLASSES_SUBDIR} X @${INSTALL_DATA} ${WRKSRC}/target/dist/${PORTNAME}-${PORTVERSION}/${PORTNAME}-${PORTVERSION}.jar ${PREFIX}/${CLASSES_SUBDIR}/${PORTNAME}.jar X @${ECHO} ${CLASSES_SUBDIR}/${PORTNAME}.jar >> ${PLIST} X @${MKDIR} ${PREFIX}/${STYLE_SUBDIR} X @(cd ${WRKSRC}/target/dist/${PORTNAME}-${PORTVERSION}/contrib && \ X ${TAR} -c -f - .) \ X | (cd ${PREFIX}/${STYLE_SUBDIR} && ${TAR} --unlink -x -f -) X @cd ${PREFIX} \ X && ${FIND} ${STYLE_SUBDIR} -type f -print >> ${PLIST} X @cd ${PREFIX} \ X && ${FIND} ${STYLE_SUBDIR} -type d -print | sort -r | \ X ${SED} "s,^,@dirrm ,g" >> ${PLIST} X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @(cd ${WRKSRC}/target/dist/${PORTNAME}-${PORTVERSION} && \ X ${TAR} -c --exclude '*.jar' --exclude contrib -f - .) \ X | (cd ${DOCSDIR} && ${TAR} --unlink -x -f -) X @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} X @cd ${PREFIX} \ X && ${FIND} share/doc/${PORTNAME} -type f -print >> ${PLIST} X @cd ${PREFIX} \ X && ${FIND} share/doc/${PORTNAME} -type d -print | sort -r | \ X ${SED} "s,^,@dirrm ,g" >> ${PLIST} X.endif X ${ECHO} "@unexec rmdir %D/${CLASSES_SUBDIR} 2>/dev/null || true" >> ${PLIST} X X.include END-of-checkstyle/Makefile echo x - checkstyle/distinfo sed 's/^X//' >checkstyle/distinfo << 'END-of-checkstyle/distinfo' XMD5 (checkstyle-src-2.3.tar.gz) = 25684bd3a6e5e0676519204ae3d3a1df END-of-checkstyle/distinfo echo x - checkstyle/pkg-comment sed 's/^X//' >checkstyle/pkg-comment << 'END-of-checkstyle/pkg-comment' XJava style checker END-of-checkstyle/pkg-comment echo x - checkstyle/pkg-descr sed 's/^X//' >checkstyle/pkg-descr << 'END-of-checkstyle/pkg-descr' XCheckstyle is a development tool to help programmers write Java code Xthat adheres to a coding standard. It automates the process of Xchecking Java code to spare humans of this boring (but important) Xtask. This makes it ideal for projects that want to enforce a coding Xstandard. X XCheckstyle can be used as either a commandline utility or as an XAnt task. X XWWW: http://checkstyle.sourceforge.net/ END-of-checkstyle/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message