Bug 93322 - New port: java/jakarta-commons-io a library of io utilities
Summary: New port: java/jakarta-commons-io a library of io utilities
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Herve Quiroz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-14 08:30 UTC by Michael Winking
Modified: 2006-02-14 15:48 UTC (History)
1 user (show)

See Also:


Attachments
jakarta-commons-io.shar (2.99 KB, text/plain)
2006-02-14 08:30 UTC, Michael Winking
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Winking 2006-02-14 08:30:07 UTC
	New port: java/jakarta-commons-io a library of io utilities

How-To-Repeat: 	N/A
Comment 1 Herve Quiroz freebsd_committer 2006-02-14 10:13:48 UTC
State Changed
From-To: open->feedback

There are a couple of improvements to be applied: 

- The header says commons-dbutils 
- If the ports sets USE_ANT, then there is no need to register a dependency on 
Ant in BUILD_DEPENDS 
- "-cp <jar-file>" should be passed to Ant through MAKE_ARGS 
- According to the porter's handbook, 'java' category should not be the main 
category of a new port, save for ports that are directly related to the Java 
platform (which is not the case here). I suggest the port goes to the 'devel' 
category instead. 



Comment 2 Herve Quiroz freebsd_committer 2006-02-14 10:13:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hq

I'll handle this.
Comment 3 mikwin 2006-02-14 13:09:01 UTC
Hi,

I have a new modified shar here which should resolve the issues (next
time I'll know better)

Could you please cc: your answer to mwfp@foldl.net since gnats has for
some reason changed my originator address and I won't receive an answer
(I have already mailed bugmeister@freebsd.org to find out why this has
happened)

# 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:
#
#	jakarta-commons-io
#	jakarta-commons-io/Makefile
#	jakarta-commons-io/pkg-descr
#	jakarta-commons-io/distinfo
#
echo c - jakarta-commons-io
mkdir -p jakarta-commons-io > /dev/null 2>&1
echo x - jakarta-commons-io/Makefile
sed 's/^X//' >jakarta-commons-io/Makefile <<
'END-of-jakarta-commons-io/Makefile'
X# Ports collection makefile for:	Jakarta Commons IO
X# Date created:			14 Feb 2006
X# Whom:				Michael Winking <mwfp@foldl.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	commons-io
XPORTVERSION=	1.1
XCATEGORIES=	devel java
XMASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
XMASTER_SITE_SUBDIR=	commons/io/source
XPKGNAMEPREFIX=	jakarta-
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src
X
XMAINTAINER=	mwfp@foldl.net
XCOMMENT=	IO is a collection of I/O utilities
X
XBUILD_DEPENDS=	${JAVAJARDIR}/junit.jar:${PORTSDIR}/java/junit
X
XUSE_JAVA=	yes
XJAVA_VERSION=	1.3+
XUSE_ANT=	yes
X
XMAKE_ARGS=	-cp ${JAVAJARDIR}/junit.jar
XALL_TARGET=	dist javadoc
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
XPLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar
X
X.if !defined(NOPORTDOCS)
XPORTDOCS=	LICENSE.txt NOTICE.txt RELEASE-NOTES.txt docs
X.endif
X
Xdo-install:
X	@${ECHO_MSG} -n ">> Installing JAR file as
${JAVAJARDIR}/${PORTNAME}.jar..."
X	@${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-${PORTVERSION}.jar \
X		${JAVAJARDIR}/${PORTNAME}.jar
X
X	@${ECHO_MSG} " [DONE]"
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} -n ">> Installing documentation..."
X	@${MKDIR} ${DOCSDIR}
X	@cd ${WRKSRC}/build/dist-build/${PORTNAME}-${PORTVERSION} && ${FIND}
docs \
X	  | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null
2>&1
X	@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt \
X		${DOCSDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt \
X		${DOCSDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES.txt \
X		${DOCSDIR}/
X	@${ECHO_MSG} " [DONE]"
X.endif
X
X.include <bsd.port.mk>
END-of-jakarta-commons-io/Makefile
echo x - jakarta-commons-io/pkg-descr
sed 's/^X//' >jakarta-commons-io/pkg-descr <<
'END-of-jakarta-commons-io/pkg-descr'
XCommons IO is a library of utilities to assist with developing IO
functionality.
X
XThere are three main areas included:
X
X    * Utility classes - with static methods to perform common tasks
X    * Filters - various implementations of file filters
X    * Streams - useful stream, reader and writer implementations
X
XWWW: http://jakarta.apache.org/commons/io/
END-of-jakarta-commons-io/pkg-descr
echo x - jakarta-commons-io/distinfo
sed 's/^X//' >jakarta-commons-io/distinfo <<
'END-of-jakarta-commons-io/distinfo'
XMD5 (commons-io-1.1-src.tar.gz) = 0a39b54885b86dc42169ffd761caf414
XSHA256 (commons-io-1.1-src.tar.gz) =
375983a026c86afee9b07405a616b3614de3f844b2530d54a5f12c06a666b92c
XSIZE (commons-io-1.1-src.tar.gz) = 197922
END-of-jakarta-commons-io/distinfo
exit
Comment 4 Michael Winking 2006-02-14 14:33:08 UTC
Yet another try, hope this will do the trick. Last time I used evolution which may have wrapped around some longer lines in the shar. Tell me if it did work this time, then I will send the shars for the other ports.

# 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:
#
#	jakarta-commons-io
#	jakarta-commons-io/Makefile
#	jakarta-commons-io/pkg-descr
#	jakarta-commons-io/distinfo
#
echo c - jakarta-commons-io
mkdir -p jakarta-commons-io > /dev/null 2>&1
echo x - jakarta-commons-io/Makefile
sed 's/^X//' >jakarta-commons-io/Makefile << 'END-of-jakarta-commons-io/Makefile'
X# Ports collection makefile for:	Jakarta Commons IO
X# Date created:			14 Feb 2006
X# Whom:				Michael Winking <mwfp@foldl.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	commons-io
XPORTVERSION=	1.1
XCATEGORIES=	devel java
XMASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
XMASTER_SITE_SUBDIR=	commons/io/source
XPKGNAMEPREFIX=	jakarta-
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src
X
XMAINTAINER=	mwfp@foldl.net
XCOMMENT=	IO is a collection of I/O utilities
X
XBUILD_DEPENDS=	${JAVAJARDIR}/junit.jar:${PORTSDIR}/java/junit
X
XUSE_JAVA=	yes
XJAVA_VERSION=	1.3+
XUSE_ANT=	yes
X
XMAKE_ARGS=	-cp ${JAVAJARDIR}/junit.jar
XALL_TARGET=	dist javadoc
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
XPLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar
X
X.if !defined(NOPORTDOCS)
XPORTDOCS=	LICENSE.txt NOTICE.txt RELEASE-NOTES.txt docs
X.endif
X
Xdo-install:
X	@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
X	@${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-${PORTVERSION}.jar \
X		${JAVAJARDIR}/${PORTNAME}.jar
X
X	@${ECHO_MSG} " [DONE]"
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} -n ">> Installing documentation..."
X	@${MKDIR} ${DOCSDIR}
X	@cd ${WRKSRC}/build/dist-build/${PORTNAME}-${PORTVERSION} && ${FIND} docs \
X	  | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
X	@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt \
X		${DOCSDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt \
X		${DOCSDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES.txt \
X		${DOCSDIR}/
X	@${ECHO_MSG} " [DONE]"
X.endif
X
X.include <bsd.port.mk>
END-of-jakarta-commons-io/Makefile
echo x - jakarta-commons-io/pkg-descr
sed 's/^X//' >jakarta-commons-io/pkg-descr << 'END-of-jakarta-commons-io/pkg-descr'
XCommons IO is a library of utilities to assist with developing IO functionality.
X
XThere are three main areas included:
X
X    * Utility classes - with static methods to perform common tasks
X    * Filters - various implementations of file filters
X    * Streams - useful stream, reader and writer implementations
X
XWWW: http://jakarta.apache.org/commons/io/
END-of-jakarta-commons-io/pkg-descr
echo x - jakarta-commons-io/distinfo
sed 's/^X//' >jakarta-commons-io/distinfo << 'END-of-jakarta-commons-io/distinfo'
XMD5 (commons-io-1.1-src.tar.gz) = 0a39b54885b86dc42169ffd761caf414
XSHA256 (commons-io-1.1-src.tar.gz) =
375983a026c86afee9b07405a616b3614de3f844b2530d54a5f12c06a666b92c
XSIZE (commons-io-1.1-src.tar.gz) = 197922
END-of-jakarta-commons-io/distinfo
exit
Comment 5 Herve Quiroz freebsd_committer 2006-02-14 15:46:58 UTC
State Changed
From-To: feedback->closed

New port added. 

I applied some improvements: 

- Only build javadoc when !defined(NOPORTDOCS) 
- Tweak COMMENT (it should not contain the name of the port as it is somewhat 
redundant) 
- JAVAJARDIR -> JAVALIBDIR in BUILD_DEPENDS. JAVALIBDIR is to JAVAJARDIR what 
LOCALBASE is to PREFIX. 

Thanks for your contribution!