add webkitgtk 2.2.3

With minor changes from @vcunat, see #1197.
This commit is contained in:
Song Wenwu 2013-12-05 23:24:05 +08:00 committed by Vladimír Čunát
parent 7ae520404f
commit 9c8789e8bc
3 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ stdenv, fetchurl, perl, python, ruby, bison, gperf, flex
, pkgconfig, which, gettext, gobjectIntrospection
, gtk2, gtk3, wayland, libwebp, enchant
, libxml2, libsoup, libsecret, libxslt, harfbuzz
}:
stdenv.mkDerivation rec {
name = "webkitgtk-2.2.3";
meta = {
description = "Web content rendering engine, GTK+ port";
homepage = "http://webkitgtk.org/";
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ iyzsong ];
};
src = fetchurl {
url = "http://webkitgtk.org/releases/${name}.tar.xz";
sha256 = "01a69v0aw3bv2zkx6jzk71r3pjlf2xfhxavjnma89kmd78qb7g4l";
};
patches = [ ./webcore-svg-libxml-cflags.patch ];
prePatch = ''
for i in $(find . -name '*.p[l|m]'); do
sed -e 's@/usr/bin/gcc@gcc@' -i $i
done
'';
configureFlags = [
"--disable-geolocation"
"--disable-video" # TODO: gsteramer-1.0
"--enable-introspection"
];
dontAddDisableDepTrack = true;
nativeBuildInputs = [
perl python ruby bison gperf flex
pkgconfig which gettext gobjectIntrospection
];
buildInputs = [
gtk2 wayland libwebp enchant
libxml2 libsecret libxslt harfbuzz
];
propagatedBuildInputs = [ gtk3 libsoup ];
enableParallelBuilding = true;
}

View File

@ -0,0 +1,8 @@
--- webkitgtk-2.2.3-orig/GNUmakefile.in 2013-12-04 17:56:28.000000000 +0800
+++ webkitgtk-2.2.3/GNUmakefile.in 2013-12-05 17:32:37.976689248 +0800
@@ -21911,6 +21911,7 @@
@ENABLE_SVG_TRUE@ $(CAIRO_CFLAGS) \
@ENABLE_SVG_TRUE@ $(FREETYPE_CFLAGS) \
@ENABLE_SVG_TRUE@ $(LIBSOUP_CFLAGS) \
+@ENABLE_SVG_TRUE@ $(LIBXML_CFLAGS) \
@ENABLE_SVG_TRUE@ $(UNICODE_CFLAGS)

View File

@ -5845,6 +5845,14 @@ let
inherit gstreamer gst_plugins_base gst_ffmpeg gst_plugins_good;
};
webkitgtk = callPackage ../development/libraries/webkitgtk {
stdenv = overrideGCC stdenv gcc47;
libsoup = libsoup_2_44;
harfbuzz = harfbuzz.override {
withIcu = true;
};
};
wildmidi = callPackage ../development/libraries/wildmidi { };
wvstreams = callPackage ../development/libraries/wvstreams { };