svn-javahl stable port information

Info2: <<
Package: svn-javahl
Version: 1.6.18
Revision: 1
Description: Subversion - Java bindings
Type: java(1.5)
License: BSD
Maintainer: Daniel Johnson

# Dependencies:
Depends: system-java%type_pkg[java], svn15-shlibs (>= %v)
BuildDepends: <<
libapr.0-dev,
libaprutil.0-dev (>= 1.4.1-1),
cyrus-sasl2-dev (>= 2.1.25-1),
db53-aes,
fink (>= 0.24.12-1),
gettext-bin,
gettext-tools,
io-string-pm,
libgettext8-dev,
libiconv-dev (>= 1.9.1-11),
libserf0 (>= 0.7.2-1),
neon27,
openssl100-dev (>= 1.0.1a-1),
sqlite3-dev,
svn15-dev (>= %v),
system-java%type_pkg[java]-dev
<<
Replaces: svn-ssl-javahl

# Unpack Phase:
Source: http://subversion.tigris.org/downloads/subversion-%v.tar.bz2
Source-MD5: c5c662a5d19d047256fa333bd890a925

# Compile Phase:
ConfigureParams: <<
--libexecdir='${prefix}/lib/svn15' \
--libdir='${prefix}/lib/svn15' \
--enable-shared \
--disable-static \
--with-neon=%p \
--with-serf=%p \
--with-apr=%p/bin/apr-1-config \
--with-apr-util=%p/bin/apu-1-config \
--without-apxs \
--disable-mod-activation \
--enable-javahl \
--with-jikes=no \
--without-swig \
--with-berkeley-db='db.h:%p/include/db5:%p/lib:db-5.3' \
--with-sasl=%p \
--with-sqlite=%p \
--without-gnome-keyring \
--without-kwallet \
--without-ctypesgen \
--disable-neon-version-check
<<
GCC: 4.0
CompileScript: <<
#! /bin/sh -ev
### Recreate build-outputs.mk to not include already installed libs
./gen-make.py --installed-libs libsvn_client,libsvn_delta,libsvn_diff,libsvn_fs,libsvn_fs_base,libsvn_fs_fs,libsvn_fs_util,libsvn_ra,libsvn_ra_neon,libsvn_ra_local,libsvn_ra_serf,libsvn_ra_svn,libsvn_repos,libsvn_subr,libsvn_wc

### Configure shared
export F77=no
export RUBY=/usr/bin/false
export PERL=/usr/bin/false
if [ -e /usr/libexec/java_home ]; then
./configure %c --with-jdk=`/usr/libexec/java_home`
else
./configure %c --with-jdk=/System/Library/Frameworks/JavaVM.framework/Versions/%type_raw[java]/Home
fi

### Build javahl bindings
make javahl CPPFLAGS='-I$(top_srcdir)/subversion/include -I$(top_builddir)/subversion -I%p/include/neon -I%p/include/serf-0 -I%p/include/apache2 -I%p/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK' INCLUDES=''
<<
InfoTest: <<
TestDepends: junit
TestScript: <<
make check-javahl || exit 1
<<
TestConfigureParams: --with-junit=%p/share/java/junit/junit.jar
<<

# Install Phase:
DocFiles: <<
subversion/bindings/javahl/README
COPYING HACKING INSTALL
<<
JarFiles: subversion/bindings/javahl/svn-javahl.jar
Shlibs: <<
%p/lib/svn15/libsvnjavahl-1.0.dylib 1.0.0 %n (>= 1.5.0-2)
<<
InstallScript: <<
### Install javahl bindings
# INSTALL_EXTRA_JAVAHL_LIB is set to nothing since it would generate
# a symbolic link directly in %p instead of %i
make install-javahl INSTALL_EXTRA_JAVAHL_LIB="" DESTDIR=%d javahl_javadir=%p/share/java/%n javahl_javahdir=%p/include/%n
#### make a symlink for the jnilib
ln -sf libsvnjavahl-1.0.0.0.dylib %i/lib/svn15/libsvnjavahl-1.jnilib
ln -sf %p/lib/svn15/libsvnjavahl-1.0.0.0.dylib %i/share/java/%n/libsvnjavahl-1.jnilib

### Remove unneeded include dir and archives
rm -rf %i/include
rm %i/lib/svn15/*.la
rm %i/lib/svn15/libsvnjavahl-1.dylib
<<

# Additional Info
DescDetail: <<
Subversion bindings to call svn functions from java 1.5.
<<
DescUsage: <<
Please read the files in '%p/share/doc/%n/'.

If you get a java.lang.UnsatisfiedLinkError exception in java check
to make sure that the path %p/share/java/%n is in your
'java.library.path' or make a simbolic link to
%p/lib/svn15/libsvnjavahl-1.dylib that is called 'libsvnjavahl-1.jnilib'
in your working directory.

To use the bindings together with Subclipse (an SVN plugin for Eclipse)
do the following:

cd /Developer/Applications/eclipse/plugins/ \
org.tigris.subversion.subclipse.core_0.9.22
cp %p/share/java/%n/svn-javahl.jar .
ln -sf %p/lib/svn15/libsvnjavahl-1.jnilib

(Adjust the path to your subclise plugin accordingly.)
<<
DescPort: <<
Added 'export F77=no;' to configure in order not to fail if the
fort77 package is installed.

Previously maintained by Christian Schaffner
<<
Homepage: http://subversion.apache.org/
<<