Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Sep 2002 08:47:33 -0500
From:      Dave Glowacki <dglo@hyde.ssec.wisc.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42412: NEW JAVA PORT: checkstyle
Message-ID:  <200209041347.g84DlXq16515@hyde.ssec.wisc.edu>

next in thread | raw e-mail | index | archive | help

>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 <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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209041347.g84DlXq16515>