From 55ffa4c8706065ff76cb1eb5d112d969d8ca68e5 Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Sun, 9 Oct 2005 16:51:06 +0000 Subject: [PATCH] Benjamin Schieder: install subversions java bindings if sun-jdk14 is installed [2005093013444504715] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6448 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/subversion/subversion.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/base/subversion/subversion.conf b/package/base/subversion/subversion.conf index a45439ad6..6ad8e1672 100644 --- a/package/base/subversion/subversion.conf +++ b/package/base/subversion/subversion.conf @@ -22,6 +22,7 @@ # use system wide neon pkginstalled neon && var_append extraconfopt " " "--with-neon=$root/usr" +pkginstalled sun-jdk14 && var_append extraconfopt " " "--enable-javahl --with-jdk=/opt/j2sdk1.4.2_09/" if [ "$xpkg" = subversion-static ] then @@ -74,6 +75,12 @@ else make swig-py make install-swig-py } + + # build and install java bindings + svn_inst_java() { + make javahl + make install-javahl + } # install etc/profile.d/subversion svn_inst_profile() { @@ -88,6 +95,8 @@ EOF # if swig is present build and install the perl and python bindings pkginstalled swig && [ -n "$( type -p perl )" ] && hook_add postmake 5 "svn_inst_pl" pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py" + # if java is present, install java bindings + pkginstalled sun-jdk14 && hook_add postmake 5 "svn_inst_java" hook_add postmake 5 "svn_inst_profile" @@ -100,7 +109,11 @@ EOF splitdesc_server() { desc_I="$desc_I (server binaries)" } + splitdesc_java() { + desc_I="$desc_I (java bindings)" + } splitreg 51 server /svn[^.]\+[^th]$ splitreg 52 server rc\.d + splitreg 53 java java fi