From dglo@hyde.ssec.wisc.edu  Wed Sep  4 06:47:36 2002
Return-Path: <dglo@hyde.ssec.wisc.edu>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4FD8D37B400
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <dglo@hyde.ssec.wisc.edu>
To: FreeBSD-gnats-submit@freebsd.org
Subject: NEW JAVA PORT: checkstyle
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42412
>Category:       java
>Synopsis:       NEW JAVA PORT: checkstyle
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    znerd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 04 06:50:02 PDT 2002
>Closed-Date:    Wed Oct 09 15:05:50 PDT 2002
>Last-Modified:  Wed Oct 09 15:05:50 PDT 2002
>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 <dglo@ssec.wisc.edu>
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 <bsd.port.mk>
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:
Responsible-Changed-From-To: freebsd-ports->znerd 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Mon Sep 30 12:25:54 PDT 2002 
Responsible-Changed-Why:  
I'll handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42412 

From: Ernst de Haan <znerd@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, dglo@hyde.ssec.wisc.edu
Cc:  
Subject: Re: java/42412: NEW JAVA PORT: checkstyle
Date: Mon, 30 Sep 2002 21:32:42 +0200

 Result of portlint:
 
 OK: checking /usr/home/ernst/freebsd/ports/java/checkstyle/pkg-comment.
 OK: checking /usr/home/ernst/freebsd/ports/java/checkstyle/pkg-descr.
 OK: checking Makefile.
 WARN: possible direct use of command "rmdir" found. use ${RMDIR} instead.
 OK: checking /usr/home/ernst/freebsd/ports/java/checkstyle/distinfo.
 0 fatal errors and 1 warnings found.
 
 I'll fix this.
State-Changed-From-To: open->closed 
State-Changed-By: znerd 
State-Changed-When: Wed Oct 9 15:05:32 PDT 2002 
State-Changed-Why:  
Committed, thanks Dave! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42412 
>Unformatted:
