2008-02-13 09:43:38 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar xfvj $src
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2008-02-13 09:43:38 +01:00
|
|
|
cp -av $name $out
|
|
|
|
|
|
|
|
# Create wrapper scripts so that the GWT compiler/host work
|
|
|
|
|
|
|
|
libPath="$libstdcpp5/lib:$glib/lib:$gtk/lib:$atk/lib:$pango/lib:$libX11/lib:$libXt/lib:$out/$name/mozilla-1.7.12"
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2008-02-13 09:43:38 +01:00
|
|
|
|
|
|
|
cat > $out/bin/gwt-compile <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=$libPath
|
|
|
|
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
|
|
|
|
|
2009-11-20 12:37:11 +01:00
|
|
|
$jdk/bin/java -Xmx256m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.Compiler \$@
|
2008-02-13 09:43:38 +01:00
|
|
|
EOF
|
|
|
|
chmod 755 $out/bin/gwt-compile
|
|
|
|
|
|
|
|
cat > $out/bin/gwt-shell <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=$libPath
|
|
|
|
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
|
|
|
|
|
2009-11-20 12:37:11 +01:00
|
|
|
$jdk/bin/java -Xmx256m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell \$@
|
2008-02-13 09:43:38 +01:00
|
|
|
EOF
|
|
|
|
chmod 755 $out/bin/gwt-shell
|