xiphos: 4.1.0 -> 4.2.1

- Changes build system from waf to cmake
- Upgrades to enchant-2
This commit is contained in:
Daniel Șerbănescu
2022-01-13 14:17:17 +01:00
parent 8696842641
commit 7508d82289
2 changed files with 41 additions and 14 deletions
+40 -13
View File
@@ -1,43 +1,70 @@
{ lib, stdenv, fetchFromGitHub, pkg-config
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config
, python
, intltool
, docbook2x, docbook_xml_dtd_412, libxslt
, sword, clucene_core, biblesync
, gnome-doc-utils
, libgsf, gconf
, gtkhtml, libglade, scrollkeeper
, libglade, scrollkeeper
, webkitgtk
, dbus-glib, enchant, isocodes, libuuid, icu
, cmake, itstool, desktop-file-utils, appstream-glib, yelp-tools
, zip, minizip, pcre, libselinux, xorg, libsepol, libthai, libdatrie
, libxkbcommon, libepoxy, at-spi2-core, libsysprof-capture, sqlite
, libpsl, brotli, gtk2, glib, dbus, gtkhtml
, wrapGAppsHook
, wafHook
}:
stdenv.mkDerivation rec {
pname = "xiphos";
version = "4.1.0";
version = "4.2.1";
src = fetchFromGitHub {
owner = "crosswire";
repo = "xiphos";
rev = version;
sha256 = "14il9k4i58qbc78hcadw3gqy21sb9q661d75vlj6fwpczbzj7x1a";
hash = "sha256-H5Q+azE2t3fgu77C9DxrkeUCJ7iJz3Cc91Ln4dqLvD8=";
};
nativeBuildInputs = [ pkg-config wrapGAppsHook wafHook ];
buildInputs = [ python intltool docbook2x docbook_xml_dtd_412 libxslt
sword clucene_core biblesync gnome-doc-utils libgsf gconf gtkhtml
libglade scrollkeeper webkitgtk dbus-glib enchant isocodes libuuid icu ];
nativeBuildInputs = [ pkg-config wrapGAppsHook cmake itstool
appstream-glib # for appstream-util
desktop-file-utils # for desktop-file-validate
yelp-tools # for yelp-build
];
prePatch = ''
patchShebangs .;
'';
buildInputs = [
python intltool docbook2x docbook_xml_dtd_412 libxslt
sword clucene_core biblesync gnome-doc-utils libgsf gconf
libglade scrollkeeper webkitgtk dbus-glib enchant isocodes libuuid icu
zip minizip pcre xorg.libXdmcp libselinux libsepol libthai libdatrie
libxkbcommon libepoxy at-spi2-core libsysprof-capture xorg.libXtst
sqlite libpsl brotli gtk2 glib dbus dbus-glib gtkhtml
];
cmakeFlags = [
"-DDBUS=OFF"
"-DGTKHTML=ON"
];
preConfigure = ''
# The build script won't continue without the version saved locally.
echo "${version}" > cmake/source_version.txt
export CLUCENE_HOME=${clucene_core};
export SWORD_HOME=${sword};
'';
wafConfigureFlags = [ "--enable-webkit2" ];
patchFlags = [ "-p0" ];
patches = [
# GLIB_VERSION_MIN_REQUIRED is not defined.
# https://github.com/crosswire/xiphos/issues/1083#issuecomment-820304874
(fetchpatch {
name ="xiphos-glibc.patch";
url = "https://aur.archlinux.org/cgit/aur.git/plain/xiphos-glibc.patch?h=xiphos";
sha256 = "sha256-0WadztJKXW2adqsDP8iSAYVShbdqHoDvP+aVJC0cQB0=";
})
];
meta = with lib; {
description = "A GTK Bible study tool";
+1 -1
View File
@@ -29680,7 +29680,7 @@ with pkgs;
inherit (gnome2) libglade scrollkeeper;
gtkhtml = gnome2.gtkhtml4;
python = python27;
enchant = enchant1;
enchant = enchant2;
};
xournal = callPackage ../applications/graphics/xournal {