[Lunar-commits] r23917 - moonbase/trunk/devel/subversion

Stefan Wold ratler at lunar-linux.org
Wed Apr 4 19:47:23 CEST 2007


Author: ratler
Date: 2007-04-04 19:47:23 +0200 (Wed, 04 Apr 2007)
New Revision: 23917

Modified:
   moonbase/trunk/devel/subversion/BUILD
   moonbase/trunk/devel/subversion/DEPENDS
Log:
Adding support for java bindings

Modified: moonbase/trunk/devel/subversion/BUILD
===================================================================
--- moonbase/trunk/devel/subversion/BUILD	2007-04-04 17:19:04 UTC (rev 23916)
+++ moonbase/trunk/devel/subversion/BUILD	2007-04-04 17:47:23 UTC (rev 23917)
@@ -1,4 +1,17 @@
 (
+
+  if in_depends $MODULE sun-jdk; then
+    JAVA_HOME=$(expr /usr/lib/jdk*)
+    OPTS+=" --with-jdk=$JAVA_HOME"
+    BINDINGS_MAKE+=" javahl"
+    BINDINGS_INSTALL+=" install-javahl"
+  elif in_depends $MODULE j2sdk; then
+    JAVA_HOME=$(expr /usr/lib/j2sdk*)
+    OPTS+=" --with-jdk=$JAVA_HOME"
+    BINDINGS_MAKE+=" javahl"
+    BINDINGS_INSTALL+=" install-javahl"
+  fi	
+
   OPTS="$OPTS --disable-neon-version-check --with-neon=`neon-config --prefix` --with-apr=`which apr-$(installed_version apr | cut -d. -f1)-config` --with-apr-util=`which apu-$(installed_version apr-util | cut -d. -f1)-config`"
 
   if in_depends $MODULE swig ; then

Modified: moonbase/trunk/devel/subversion/DEPENDS
===================================================================
--- moonbase/trunk/devel/subversion/DEPENDS	2007-04-04 17:19:04 UTC (rev 23916)
+++ moonbase/trunk/devel/subversion/DEPENDS	2007-04-04 17:47:23 UTC (rev 23917)
@@ -2,4 +2,5 @@
 depends  zlib      &&
 depends  apr-util  &&
 
-optional_depends "swig" "" "--without-swig" "for Perl/Python and Ruby Swig Bindings"
+optional_depends "swig" "" "--without-swig" "for Perl/Python and Ruby Swig Bindings" &&
+optional_depends "%JAVA_SDK" "--enable-javahl --without-jikes" "--disable-javahl" "for java bindings"



More information about the Lunar-commits mailing list