* SWIG updated to 1.3.22.
* Build Java/SWIG bindings in addition to the Java HL bindings in Subversion. Hm, I thought I had committed this. svn path=/nixpkgs/trunk/; revision=1570
This commit is contained in:
parent
4fbb44e598
commit
af78f4c44b
|
@ -16,11 +16,11 @@ if test "$httpServer"; then
|
||||||
makeFlags="APACHE_LIBEXECDIR=$out/modules $makeFlags"
|
makeFlags="APACHE_LIBEXECDIR=$out/modules $makeFlags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$pythonBindings"; then
|
if test -n "$pythonBindings" -o -n "$javaSwigBindings"; then
|
||||||
configureFlags="--with-swig=$swig $configureFlags"
|
configureFlags="--with-swig=$swig $configureFlags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$javaBindings"; then
|
if test "$javahlBindings"; then
|
||||||
configureFlags="--enable-javahl --with-jdk=$j2sdk $configureFlags"
|
configureFlags="--enable-javahl --with-jdk=$j2sdk $configureFlags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,13 +32,26 @@ postInstall() {
|
||||||
make swig-py
|
make swig-py
|
||||||
make install-swig-py
|
make install-swig-py
|
||||||
fi
|
fi
|
||||||
if test "$javaBindings"; then
|
if test "$javaSwigBindings"; then
|
||||||
mkdir subversion/bindings/java/javahl/classes # bug fix
|
# Hack to get Java-Swig bindings to build if Python is not in
|
||||||
|
# scope (this fails because Subversion's configure script does
|
||||||
|
# something silly like `SWIG_JAVA_COMPILE="$SWIG_PY_COMPILE"').
|
||||||
|
FL1='SWIG_JAVA_COMPILE=gcc'
|
||||||
|
FL2='SWIG_JAVA_LINK=gcc -L$(SWIG_BUILD_DIR)/.libs'
|
||||||
|
make swig-java "$FL1" "$FL2"
|
||||||
|
make swig-java-api "$FL1" "$FL2"
|
||||||
|
make swig-java-java "$FL1" "$FL2"
|
||||||
|
make install-swig-java "$FL1" "$FL2"
|
||||||
|
fi
|
||||||
|
if test "$javahlBindings"; then
|
||||||
|
mkdir -p subversion/bindings/java/javahl/classes # bug fix
|
||||||
make javahl
|
make javahl
|
||||||
make install-javahl
|
make install-javahl
|
||||||
mkdir -p $out/share/doc/$name
|
mkdir -p $out/share/doc/$name
|
||||||
$j2sdk/bin/javadoc -d $out/share/doc/$name -windowtitle "JavaHL Subversion Bindings" -link http://java.sun.com/j2se/1.4.2/docs/api/ \
|
$j2sdk/bin/javadoc -d $out/share/doc/$name \
|
||||||
subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/*.java
|
-windowtitle "JavaHL Subversion Bindings" \
|
||||||
|
-link http://java.sun.com/j2se/1.4.2/docs/api/ \
|
||||||
|
subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/*.java
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
postInstall=postInstall
|
postInstall=postInstall
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
, httpServer ? false
|
, httpServer ? false
|
||||||
, sslSupport ? false
|
, sslSupport ? false
|
||||||
, pythonBindings ? false
|
, pythonBindings ? false
|
||||||
, javaBindings ? false
|
, javaSwigBindings ? false
|
||||||
|
, javahlBindings ? false
|
||||||
, stdenv, fetchurl
|
, stdenv, fetchurl
|
||||||
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null
|
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, j2sdk ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert expat != null;
|
assert expat != null;
|
||||||
|
@ -12,7 +13,8 @@ assert localServer -> db4 != null;
|
||||||
assert httpServer -> httpd != null && httpd.expat == expat;
|
assert httpServer -> httpd != null && httpd.expat == expat;
|
||||||
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
|
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
|
||||||
assert pythonBindings -> swig != null && swig.pythonSupport;
|
assert pythonBindings -> swig != null && swig.pythonSupport;
|
||||||
assert javaBindings -> swig != null && swig.javaSupport;
|
assert javaSwigBindings -> swig != null && swig.javaSupport;
|
||||||
|
assert javahlBindings -> j2sdk != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "subversion-1.1.0";
|
name = "subversion-1.1.0";
|
||||||
|
@ -26,15 +28,16 @@ stdenv.mkDerivation {
|
||||||
# This is a hopefully temporary fix for the problem that
|
# This is a hopefully temporary fix for the problem that
|
||||||
# libsvnjavahl.so isn't linked against libstdc++, which causes
|
# libsvnjavahl.so isn't linked against libstdc++, which causes
|
||||||
# loading the library into the JVM to fail.
|
# loading the library into the JVM to fail.
|
||||||
patches = if javaBindings then [./javahl.patch] else [];
|
patches = if javahlBindings then [./javahl.patch] else [];
|
||||||
|
|
||||||
openssl = if sslSupport then openssl else null;
|
openssl = if sslSupport then openssl else null;
|
||||||
httpd = if httpServer then httpd else null;
|
httpd = if httpServer then httpd else null;
|
||||||
db4 = if localServer then db4 else null;
|
db4 = if localServer then db4 else null;
|
||||||
swig = if pythonBindings || javaBindings then swig else null;
|
swig = if pythonBindings || javaSwigBindings then swig else null;
|
||||||
python = if pythonBindings then swig.python else null;
|
python = if pythonBindings then swig.python else null;
|
||||||
j2sdk = if javaBindings then swig.j2sdk else null;
|
j2sdk = if javaSwigBindings then swig.j2sdk else
|
||||||
|
if javahlBindings then j2sdk else null;
|
||||||
|
|
||||||
inherit expat localServer httpServer sslSupport
|
inherit expat localServer httpServer sslSupport
|
||||||
pythonBindings javaBindings;
|
pythonBindings javaSwigBindings javahlBindings;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,12 @@ assert pythonSupport -> python != null;
|
||||||
assert javaSupport -> j2sdk != null;
|
assert javaSupport -> j2sdk != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "swig-1.3.19";
|
name = "swig-1.3.22";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://heanet.dl.sourceforge.net/sourceforge/swig/swig-1.3.19.tar.gz;
|
url = http://heanet.dl.sourceforge.net/sourceforge/swig/swig-1.3.22.tar.gz;
|
||||||
md5 = "a733455544426b31868dd87fc162e750";
|
md5 = "501121a2ddb61155348dfbc7c87286ba";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit perlSupport pythonSupport javaSupport;
|
inherit perlSupport pythonSupport javaSupport;
|
||||||
|
|
|
@ -773,7 +773,9 @@ rec {
|
||||||
httpServer = false;
|
httpServer = false;
|
||||||
sslSupport = true;
|
sslSupport = true;
|
||||||
httpd = apacheHttpd;
|
httpd = apacheHttpd;
|
||||||
javaBindings = true;
|
javaSwigBindings = true;
|
||||||
|
javahlBindings = true;
|
||||||
|
j2sdk = blackdown;
|
||||||
};
|
};
|
||||||
|
|
||||||
pan = (import ../applications/networking/newsreaders/pan) {
|
pan = (import ../applications/networking/newsreaders/pan) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user