GNU IceCat: Allow compilation of XulRunner.
In turn, this allows compilation of plug-ins like MPlayer's. svn path=/nixpkgs/trunk/; revision=12930
This commit is contained in:
parent
2e30347099
commit
b46faa7a45
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, fetchurl, lzma, pkgconfig, gtk, pango, perl, python, zip, libIDL
|
{ stdenv, fetchurl, lzma, pkgconfig, gtk, pango, perl, python, zip, libIDL
|
||||||
, libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs
|
, libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs
|
||||||
, gnomevfs, libgnomeui
|
, gnomevfs, libgnomeui
|
||||||
, freetype, fontconfig }:
|
, freetype, fontconfig
|
||||||
|
, application ? "browser" }:
|
||||||
|
|
||||||
let version = "3.0.2-g1"; in
|
let version = "3.0.2-g1"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -25,7 +26,7 @@ stdenv.mkDerivation {
|
|||||||
patches = [ ./skip-gre-registration.patch ];
|
patches = [ ./skip-gre-registration.patch ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-application=browser"
|
"--enable-application=${application}"
|
||||||
"--enable-libxul"
|
"--enable-libxul"
|
||||||
"--disable-javaxpcom"
|
"--disable-javaxpcom"
|
||||||
|
|
||||||
@ -48,23 +49,34 @@ stdenv.mkDerivation {
|
|||||||
# Strip some more stuff
|
# Strip some more stuff
|
||||||
strip -S $out/lib/*/* || true
|
strip -S $out/lib/*/* || true
|
||||||
|
|
||||||
# Fix some references to /bin paths in the IceCat shell script.
|
|
||||||
substituteInPlace $out/bin/icecat \
|
|
||||||
--replace /bin/pwd "$(type -tP pwd)" \
|
|
||||||
--replace /bin/ls "$(type -tP ls)"
|
|
||||||
|
|
||||||
# This fixes starting IceCat when there already is a running
|
# This fixes starting IceCat when there already is a running
|
||||||
# instance. The `icecat' wrapper script actually expects to be
|
# instance. The `icecat' wrapper script actually expects to be
|
||||||
# in the same directory as `run-mozilla.sh', apparently.
|
# in the same directory as `run-mozilla.sh', apparently.
|
||||||
libDir=$(cd $out/lib && ls -d icecat-[0-9]*)
|
libDir=$(cd $out/lib && ls -d icecat-[0-9]*)
|
||||||
test -n "$libDir"
|
test -n "$libDir"
|
||||||
cd $out/bin
|
|
||||||
mv icecat ../lib/$libDir/
|
|
||||||
ln -s ../lib/$libDir/icecat .
|
|
||||||
|
|
||||||
# Register extensions etc.
|
if [ -f "$out/bin/icecat" ]
|
||||||
echo "running icecat -register..."
|
then
|
||||||
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./icecat-bin -register) || false
|
# Fix references to /bin paths in the IceCat shell script.
|
||||||
|
substituteInPlace $out/bin/icecat \
|
||||||
|
--replace /bin/pwd "$(type -tP pwd)" \
|
||||||
|
--replace /bin/ls "$(type -tP ls)"
|
||||||
|
|
||||||
|
cd $out/bin
|
||||||
|
mv icecat ../lib/$libDir/
|
||||||
|
ln -s ../lib/$libDir/icecat .
|
||||||
|
|
||||||
|
# Register extensions etc.
|
||||||
|
echo "running \`icecat -register'..."
|
||||||
|
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./icecat-bin -register) || false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$out/lib/$libDir/xpidl" ]
|
||||||
|
then
|
||||||
|
# XulRunner's IDL compiler.
|
||||||
|
echo "linking \`xpidl'..."
|
||||||
|
ln -s "$out/lib/$libDir/xpidl" "$out/bin"
|
||||||
|
fi
|
||||||
|
|
||||||
# Put the GNU IceCat icon in the right place.
|
# Put the GNU IceCat icon in the right place.
|
||||||
ensureDir $out/lib/$libDir/chrome/icons/default
|
ensureDir $out/lib/$libDir/chrome/icons/default
|
||||||
|
@ -6335,7 +6335,18 @@ let
|
|||||||
inherit (gnome) libIDL libgnomeui gnomevfs gtk pango;
|
inherit (gnome) libIDL libgnomeui gnomevfs gtk pango;
|
||||||
});
|
});
|
||||||
|
|
||||||
icecatWrapper = wrapFirefox icecat3 "icecat" "";
|
icecatXulrunner3 = lowPrio (import ../applications/networking/browsers/icecat-3 {
|
||||||
|
application = "xulrunner";
|
||||||
|
inherit fetchurl stdenv lzma pkgconfig perl zip libjpeg libpng zlib cairo
|
||||||
|
python dbus dbus_glib freetype fontconfig bzip2 xlibs;
|
||||||
|
inherit (gnome) libIDL libgnomeui gnomevfs gtk pango;
|
||||||
|
});
|
||||||
|
|
||||||
|
icecat3Xul =
|
||||||
|
(symlinkJoin "icecat-3-with-xulrunner" [ icecat3 icecatXulrunner3 ])
|
||||||
|
// { inherit (icecat3) gtk meta; };
|
||||||
|
|
||||||
|
icecatWrapper = wrapFirefox icecat3Xul "icecat" "";
|
||||||
|
|
||||||
icewm = import ../applications/window-managers/icewm {
|
icewm = import ../applications/window-managers/icewm {
|
||||||
inherit fetchurl stdenv gettext libjpeg libtiff libungif libpng imlib;
|
inherit fetchurl stdenv gettext libjpeg libtiff libungif libpng imlib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user