Merge pull request #28969 from disassembler/xiphos

xiphos: 4.0.3 -> 4.0.6

authored by Anderson Torres and committed by GitHub 936dca89 5901a645

+156 -12
+12 -10
pkgs/applications/misc/xiphos/default.nix
··· 1 - {stdenv, fetchurl, pkgconfig 2 , python 3 , intltool 4 , docbook2x, docbook_xml_dtd_412, libxslt 5 , sword, clucene_core, biblesync 6 , gnome_doc_utils 7 , libgsf, gconf 8 - , gtkhtml, libgtkhtml, libglade, scrollkeeper 9 , webkitgtk 10 - , dbus_glib, enchant, isocodes, libuuid 11 }: 12 13 stdenv.mkDerivation rec { 14 name = "xiphos-${version}"; 15 - version = "4.0.3-20150806"; 16 17 - src = fetchurl { 18 - url = "mirror://sourceforge/project/gnomesword/Xiphos/4.0.3/${name}.tar.gz"; 19 - sha256 = "1xkvhpasdlda2rp0874znz158z4rjh1hpynwy13d96kjxq4npiqv"; 20 }; 21 22 buildInputs = [ pkgconfig python intltool docbook2x docbook_xml_dtd_412 libxslt 23 - sword clucene_core biblesync gnome_doc_utils libgsf gconf gtkhtml libgtkhtml 24 - libglade scrollkeeper webkitgtk dbus_glib enchant isocodes libuuid ]; 25 26 prePatch = '' 27 patchShebangs .; ··· 33 ''; 34 35 configurePhase = '' 36 - python waf configure --prefix=$out 37 ''; 38 39 buildPhase = ''
··· 1 + {stdenv, fetchFromGitHub, pkgconfig 2 , python 3 , intltool 4 , docbook2x, docbook_xml_dtd_412, libxslt 5 , sword, clucene_core, biblesync 6 , gnome_doc_utils 7 , libgsf, gconf 8 + , gtkhtml, libglade, scrollkeeper 9 , webkitgtk 10 + , dbus_glib, enchant, isocodes, libuuid, icu 11 }: 12 13 stdenv.mkDerivation rec { 14 name = "xiphos-${version}"; 15 + version = "4.0.6"; 16 17 + src = fetchFromGitHub { 18 + owner = "crosswire"; 19 + repo = "xiphos"; 20 + rev = "${version}"; 21 + sha256 = "02xyy6rxxxaqbjbhdp813f0vp1jpfzqscjdbdc0qcd4yvi3baj5f"; 22 }; 23 24 buildInputs = [ pkgconfig python intltool docbook2x docbook_xml_dtd_412 libxslt 25 + sword clucene_core biblesync gnome_doc_utils libgsf gconf gtkhtml 26 + libglade scrollkeeper webkitgtk dbus_glib enchant isocodes libuuid icu ]; 27 28 prePatch = '' 29 patchShebangs .; ··· 35 ''; 36 37 configurePhase = '' 38 + python waf configure --prefix=$out --enable-webkit2 39 ''; 40 41 buildPhase = ''
+2
pkgs/desktops/gnome-2/default.nix
··· 66 67 gtkhtml = callPackage ./platform/gtkhtml { }; 68 69 # Required for nautilus 70 inherit (libunique); 71
··· 66 67 gtkhtml = callPackage ./platform/gtkhtml { }; 68 69 + gtkhtml4 = callPackage ./platform/gtkhtml/4.x.nix { }; 70 + 71 # Required for nautilus 72 inherit (libunique); 73
+15
pkgs/desktops/gnome-2/platform/gtkhtml/4.x.nix
···
··· 1 + { stdenv, fetchurl, pkgconfig, gtk3, intltool, 2 + GConf, enchant, isocodes, gnome_icon_theme, gsettings_desktop_schemas }: 3 + 4 + stdenv.mkDerivation rec { 5 + version = "4.10.0"; 6 + name = "gtkhtml-${version}"; 7 + 8 + src = fetchurl { 9 + url = "mirror://gnome/sources/gtkhtml/4.10/${name}.tar.xz"; 10 + sha256 = "1hq6asgb5n9q3ryx2vngr4jyi8lg65lzpnlgrgcwayiczcj68fya"; 11 + }; 12 + 13 + propagatedBuildInputs = [ gsettings_desktop_schemas gtk3 gnome_icon_theme GConf ]; 14 + buildInputs = [pkgconfig intltool enchant isocodes ]; 15 + }
+106
pkgs/development/libraries/webkitgtk/2.17.nix
···
··· 1 + { stdenv, fetchurl, perl, python2, ruby, bison, gperf, cmake 2 + , pkgconfig, gettext, gobjectIntrospection, libnotify, gnutls 3 + , gtk2, gtk3, wayland, libwebp, enchant, xlibs, libxkbcommon, epoxy, at_spi2_core 4 + , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs, pcre, nettle, libtasn1, p11_kit 5 + , libidn, libedit, readline, mesa, libintlOrEmpty 6 + , enableGeoLocation ? true, geoclue2, sqlite 7 + , gst-plugins-base, gst-plugins-bad 8 + }: 9 + 10 + assert enableGeoLocation -> geoclue2 != null; 11 + 12 + with stdenv.lib; 13 + stdenv.mkDerivation rec { 14 + name = "webkitgtk-${version}"; 15 + version = "2.17.91"; 16 + 17 + meta = { 18 + description = "Web content rendering engine, GTK+ port"; 19 + homepage = http://webkitgtk.org/; 20 + license = licenses.bsd2; 21 + platforms = with platforms; linux ++ darwin; 22 + hydraPlatforms = []; 23 + maintainers = with maintainers; [ ]; 24 + }; 25 + 26 + postConfigure = optionalString stdenv.isDarwin '' 27 + substituteInPlace Source/WebKit2/CMakeFiles/WebKit2.dir/link.txt \ 28 + --replace "../../lib/libWTFGTK.a" "" 29 + substituteInPlace Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt \ 30 + --replace "../../lib/libbmalloc.a" "" 31 + sed -i "s|[\./]*\.\./lib/lib[^\.]*\.a||g" \ 32 + Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/link.txt \ 33 + Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/link.txt \ 34 + Source/JavaScriptCore/shell/CMakeFiles/testb3.dir/link.txt \ 35 + Source/WebKit2/CMakeFiles/DatabaseProcess.dir/link.txt \ 36 + Source/WebKit2/CMakeFiles/NetworkProcess.dir/link.txt \ 37 + Source/WebKit2/CMakeFiles/webkit2gtkinjectedbundle.dir/link.txt \ 38 + Source/WebKit2/CMakeFiles/WebProcess.dir/link.txt 39 + substituteInPlace Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt \ 40 + --replace "../../lib/libWTFGTK.a" "-Wl,-all_load ../../lib/libWTFGTK.a" 41 + ''; 42 + 43 + src = fetchurl { 44 + url = "http://webkitgtk.org/releases/${name}.tar.xz"; 45 + sha256 = "0f158gqb2lvv3v5z6s7gjgwms69fgsjkd8whfks8cq6cybiy9y37"; 46 + }; 47 + 48 + # see if we can clean this up.... 49 + 50 + patches = [ 51 + ./finding-harfbuzz-icu.patch 52 + ./gstreamergl-2.17.patch 53 + ] ++ optionals stdenv.isDarwin [ 54 + ./PR-152650-2.patch 55 + ./PR-153138.patch 56 + ./PR-157554.patch 57 + ./PR-157574.patch 58 + ]; 59 + 60 + cmakeFlags = [ 61 + "-DPORT=GTK" 62 + "-DUSE_LIBHYPHEN=0" 63 + ] 64 + ++ optional stdenv.isLinux "-DENABLE_GLES2=ON" 65 + ++ optionals stdenv.isDarwin [ 66 + "-DUSE_SYSTEM_MALLOC=ON" 67 + "-DUSE_ACCELERATE=0" 68 + "-DENABLE_INTROSPECTION=ON" 69 + "-DENABLE_MINIBROWSER=OFF" 70 + "-DENABLE_PLUGIN_PROCESS_GTK2=OFF" 71 + "-DENABLE_MINIBROWSER=OFF" 72 + "-DENABLE_VIDEO=ON" 73 + "-DENABLE_QUARTZ_TARGET=ON" 74 + "-DENABLE_X11_TARGET=OFF" 75 + "-DENABLE_OPENGL=OFF" 76 + "-DENABLE_WEB_AUDIO=OFF" 77 + "-DENABLE_WEBGL=OFF" 78 + "-DENABLE_GRAPHICS_CONTEXT_3D=OFF" 79 + "-DENABLE_GTKDOC=OFF" 80 + ]; 81 + 82 + # XXX: WebKit2 missing include path for gst-plugins-base. 83 + # Filled: https://bugs.webkit.org/show_bug.cgi?id=148894 84 + NIX_CFLAGS_COMPILE = "-I${gst-plugins-base.dev}/include/gstreamer-1.0 -I${gst-plugins-bad}/include/gstreamer-1.0" 85 + + (optionalString stdenv.isDarwin " -lintl"); 86 + 87 + nativeBuildInputs = [ 88 + cmake perl python2 ruby bison gperf sqlite 89 + pkgconfig gettext gobjectIntrospection 90 + ]; 91 + 92 + buildInputs = libintlOrEmpty ++ [ 93 + gtk2 libwebp enchant libnotify gnutls pcre nettle libidn 94 + libxml2 libsecret libxslt harfbuzz libpthreadstubs libtasn1 p11_kit 95 + gst-plugins-base gst-plugins-bad libxkbcommon epoxy at_spi2_core 96 + ] ++ optional enableGeoLocation geoclue2 97 + ++ (with xlibs; [ libXdmcp libXt libXtst ]) 98 + ++ optionals stdenv.isDarwin [ libedit readline mesa ] 99 + ++ optional stdenv.isLinux wayland; 100 + 101 + propagatedBuildInputs = [ 102 + libsoup gtk3 103 + ]; 104 + 105 + enableParallelBuilding = true; 106 + }
+13
pkgs/development/libraries/webkitgtk/gstreamergl-2.17.patch
···
··· 1 + diff --git i/Source/cmake/OptionsGTK.cmake w/Source/cmake/OptionsGTK.cmake 2 + index d3577a8..9620dc0 100644 3 + --- i/Source/cmake/OptionsGTK.cmake 4 + +++ w/Source/cmake/OptionsGTK.cmake 5 + @@ -94,7 +94,7 @@ WEBKIT_OPTION_DEFINE(USE_LIBSECRET "Whether to enable the persistent credential 6 + 7 + # Private options specific to the GTK+ port. Changing these options is 8 + # completely unsupported. They are intended for use only by WebKit developers. 9 + -WEBKIT_OPTION_DEFINE(USE_GSTREAMER_GL "Whether to enable support for GStreamer GL" PRIVATE ON) 10 + +WEBKIT_OPTION_DEFINE(USE_GSTREAMER_GL "Whether to enable support for GStreamer GL" PRIVATE OFF) 11 + WEBKIT_OPTION_DEFINE(USE_GSTREAMER_MPEGTS "Whether to enable support for MPEG-TS" PRIVATE OFF) 12 + WEBKIT_OPTION_DEFINE(USE_REDIRECTED_XCOMPOSITE_WINDOW "Whether to use a Redirected XComposite Window for accelerated compositing in X11." PRIVATE ON) 13 +
+8 -2
pkgs/top-level/all-packages.nix
··· 10731 gst-plugins-base = gst_all_1.gst-plugins-base; 10732 }; 10733 10734 webkitgtk24x-gtk2 = webkitgtk24x-gtk3.override { 10735 withGtk2 = true; 10736 enableIntrospection = false; ··· 17034 17035 xiphos = callPackage ../applications/misc/xiphos { 17036 gconf = gnome2.GConf; 17037 - inherit (gnome2) gtkhtml libgtkhtml libglade scrollkeeper; 17038 python = python27; 17039 - webkitgtk = webkitgtk24x-gtk2; 17040 }; 17041 17042 xournal = callPackage ../applications/graphics/xournal {
··· 10731 gst-plugins-base = gst_all_1.gst-plugins-base; 10732 }; 10733 10734 + webkitgtk217x = callPackage ../development/libraries/webkitgtk/2.17.nix { 10735 + harfbuzz = harfbuzz-icu; 10736 + gst-plugins-base = gst_all_1.gst-plugins-base; 10737 + }; 10738 + 10739 webkitgtk24x-gtk2 = webkitgtk24x-gtk3.override { 10740 withGtk2 = true; 10741 enableIntrospection = false; ··· 17039 17040 xiphos = callPackage ../applications/misc/xiphos { 17041 gconf = gnome2.GConf; 17042 + inherit (gnome2) libglade scrollkeeper; 17043 + gtkhtml = gnome2.gtkhtml4; 17044 + webkitgtk = webkitgtk217x; 17045 python = python27; 17046 }; 17047 17048 xournal = callPackage ../applications/graphics/xournal {