# 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:
#
#	javasvn
#	javasvn/Makefile
#	javasvn/distinfo
#	javasvn/pkg-descr
#	javasvn/files
#	javasvn/files/javasvn.sh.in
#
echo c - javasvn
mkdir -p javasvn > /dev/null 2>&1
echo x - javasvn/Makefile
sed 's/^X//' >javasvn/Makefile << 'END-of-javasvn/Makefile'
X# New ports collection makefile for:	JavaSVN
X# Date created:				6 Aug 2005
X# Whom:					tux@pinguru.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	javasvn
XPORTVERSION=	0.9.2
XCATEGORIES=	devel java
XMASTER_SITES=	http://tmate.org/svn/
XDISTNAME=	org.tmatesoft.svn_${PORTVERSION}.standalone
X
XMAINTAINER=	tux@pinguru.net
XCOMMENT=	The only pure Java Subversion client library in the world
X
XRUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper
X
XNO_BUILD=	yes
XUSE_ZIP=	yes
XUSE_REINPLACE=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.3+
XDATADIR=	${JAVASHAREDIR}/${PORTNAME}
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XDATA_FILES=	COPYING JAVAHL-LICENSE JSCH-LICENSE SEQUENCE-LICENSE \
X		changelog.txt logging.properties.disabled javasvnsrc.zip \
X		javasvn-cli.jar javasvn-javahl.jar javasvn.jar jsch.jar
X
XPLIST_FILES=	bin/javasvn ${DATA_FILES:S,^,%%DATADIR%%/,}
XPLIST_DIRS=	%%DATADIR%%
X
XSUB_FILES=	javasvn.sh
X
X.if !defined(NOPORTDOCS)
XPORTDOCS=	*
X.endif
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X.for file in ${DATA_FILES}
X	${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
X.endfor
X	${INSTALL_SCRIPT} ${WRKDIR}/javasvn.sh ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	cd ${WRKSRC}/doc/javadoc && \
X		${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
X	cd ${WRKSRC}/doc/javadoc && \
X		${FIND} . -not -type d -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
X.endif
X
X.include <bsd.port.mk>
END-of-javasvn/Makefile
echo x - javasvn/distinfo
sed 's/^X//' >javasvn/distinfo << 'END-of-javasvn/distinfo'
XMD5 (org.tmatesoft.svn_0.9.2.standalone.zip) = 0f51c8a5daadccd0a7c301b265fda893
XSIZE (org.tmatesoft.svn_0.9.2.standalone.zip) = 1792136
END-of-javasvn/distinfo
echo x - javasvn/pkg-descr
sed 's/^X//' >javasvn/pkg-descr << 'END-of-javasvn/pkg-descr'
XJavaSVN is a pure Java Subversion client library.
X
XYou would like to use JavaSVN when you need to access or modify Subversion
Xrepository from your Java application, be it a standalone program, plugin or
Xweb application. Being a pure Java program, JavaSVN doesn't need any
Xadditional configuration or native binaries to work on any OS that runs Java.
X
XJavaSVN Features:
X
X* No external binaries or libraries are needed.
X* JavaSVN supports http, https, svn and svn+ssh connection protocols.
X* Low level API allows effective direct Subversion repository access.
X* Compatible with applications that already use native javahl bindings.
X
XWWW: http://tmate.org/svn/
END-of-javasvn/pkg-descr
echo c - javasvn/files
mkdir -p javasvn/files > /dev/null 2>&1
echo x - javasvn/files/javasvn.sh.in
sed 's/^X//' >javasvn/files/javasvn.sh.in << 'END-of-javasvn/files/javasvn.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X
XJAVASVN_HOME=${JAVASVN_HOME:-"%%DATADIR%%"}
XJAVASVN_CP=${JAVASVN_HOME}/javasvn.jar:${JAVASVN_HOME}/javasvn-cli.jar:${JAVASVN_HOME}/jsch.jar
XJAVASVN_LOGDIR=${JAVASVN_LOGDIR:-"${HOME}/.javasvn"}
X
Xif [ ! -d ${JAVASVN_LOGDIR} ]; then
X	mkdir ${JAVASVN_LOGDIR}
Xfi
X
XJAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" \
X	${JAVASVN_OPTS} \
X	-Djava.util.logging.config.file="${JAVASVN_HOME}/logging.properties" \
X	-cp "${JAVASVN_CP}" \
X	org.tmatesoft.svn.cli.SVN "$@"
END-of-javasvn/files/javasvn.sh.in
exit

