xiphos: 4.2.1 -> 4.3.2 (#414395)

This commit is contained in:
Gaétan Lepage 2025-06-21 20:58:40 +02:00 committed by GitHub
commit 4b2e7e4efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 31 deletions

View File

@ -18,11 +18,10 @@ diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt
index 49b86371..bb8e4bb6 100644
--- a/src/main/CMakeLists.txt
+++ b/src/main/CMakeLists.txt
@@ -74,3 +74,14 @@ target_link_libraries(main
PkgConfig::Sword
@@ -77,6 +77,17 @@
PkgConfig::Biblesync
)
+
+IF (DBUS)
+ target_include_directories (main
+ PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
@ -33,6 +32,10 @@ index 49b86371..bb8e4bb6 100644
+ PkgConfig::DBus
+ )
+ENDIF (DBUS)
+
if(WK_FOUND)
target_compile_definitions(main
PRIVATE
--
2.34.1

View File

@ -1,8 +1,7 @@
{
stdenv,
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
appstream-glib,
biblesync,
cmake,
@ -10,46 +9,34 @@
desktop-file-utils,
docbook2x,
docbook_xml_dtd_412,
enchant2,
glib,
gtk3,
gtkhtml,
icu,
intltool,
isocodes,
itstool,
libuuid,
libxslt,
minizip,
pkg-config,
sword,
webkitgtk_4_0,
webkitgtk_4_1,
wrapGAppsHook3,
yelp-tools,
zip,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xiphos";
version = "4.2.1";
version = "4.3.2";
src = fetchFromGitHub {
owner = "crosswire";
repo = "xiphos";
rev = version;
hash = "sha256-H5Q+azE2t3fgu77C9DxrkeUCJ7iJz3Cc91Ln4dqLvD8=";
tag = finalAttrs.version;
hash = "sha256-HTndBWfze8tV4G9npLYB7SkgpJNQcQBZqHKjxhZU6JY=";
};
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&id=bb816f43ba764ffac1287ab1e2a649c2443e3ce8";
sha256 = "he3U7phU2/QCrZidHviupA7YwzudnQ9Jbb8eMZw6/ck=";
extraPrefix = "";
})
# Fix D-Bus build
# https://github.com/crosswire/xiphos/pull/1103
./0001-Add-dbus-glib-dependency-to-main.patch
@ -73,16 +60,13 @@ stdenv.mkDerivation rec {
buildInputs = [
biblesync
dbus-glib
enchant2
glib
gtk3
gtkhtml
icu
isocodes
libuuid
minizip
sword
webkitgtk_4_0
webkitgtk_4_1
];
cmakeFlags = [
@ -92,12 +76,12 @@ stdenv.mkDerivation rec {
preConfigure = ''
# The build script won't continue without the version saved locally.
echo "${version}" > cmake/source_version.txt
echo "${finalAttrs.version}" > cmake/source_version.txt
export SWORD_HOME=${sword};
'';
meta = with lib; {
meta = {
description = "GTK Bible study tool";
longDescription = ''
Xiphos (formerly known as GnomeSword) is a Bible study tool
@ -106,8 +90,8 @@ stdenv.mkDerivation rec {
modules from The SWORD Project and elsewhere.
'';
homepage = "https://www.xiphos.org/";
license = licenses.gpl2Plus;
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = platforms.linux;
platforms = lib.platforms.linux;
};
}
})