summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDariqq <dariqq@posteo.net>2026-06-15 15:28:37 +0000
committerAndreas Enge <andreas@enge.fr>2026-06-26 15:14:32 +0200
commit0f7fcbd6b54813923ca224739ccbcb14217f5076 (patch)
tree5b568e36cde3f39f1f87149355ba01968639a566 /gnu/packages
parentde92b82d5cf27eb1ef6d92897b0494c214d59418 (diff)
gnu: libextractor: Update to 1.14.
* gnu/packages/gnunet.scm (libextractor): Update to 1.14. [#:phases]: Remove 'force-reconfigure phase. [native-inuts]: Remove autoconf, automake, gettext, libtool, texinfo. * gnu/packages/patches/libextractor-tidy-support.patch: Delete patch. * gnu/local.mk (dist_patch_DATA): Remove deleted patch. Change-Id: Ic0cc4e2c842a7f88fdecf631a07b4d6aff9e4a01 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/gnunet.scm16
-rw-r--r--gnu/packages/patches/libextractor-tidy-support.patch81
2 files changed, 3 insertions, 94 deletions
diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm
index c0bcee085bb..db9a550a07e 100644
--- a/gnu/packages/gnunet.scm
+++ b/gnu/packages/gnunet.scm
@@ -88,16 +88,14 @@
88(define-public libextractor 88(define-public libextractor
89 (package 89 (package
90 (name "libextractor") 90 (name "libextractor")
91 (version "1.13") 91 (version "1.14")
92 (source (origin 92 (source (origin
93 (method url-fetch) 93 (method url-fetch)
94 (uri (string-append "mirror://gnu/libextractor/libextractor-" 94 (uri (string-append "mirror://gnu/libextractor/libextractor-"
95 version ".tar.gz")) 95 version ".tar.gz"))
96 (sha256 96 (sha256
97 (base32 97 (base32
98 "0mgprmwdhdwq9xhfxfhcncd304425nvcc4zi8ci5f0nja4n333xv")) 98 "1026dg626b0vy55rz3wv9rpmvqsqahbpphsdqqr4mz6a7x1mafhs"))))
99 (patches
100 (search-patches "libextractor-tidy-support.patch"))))
101 (build-system gnu-build-system) 99 (build-system gnu-build-system)
102 (outputs '("out" 100 (outputs '("out"
103 "static")) ; 420 KiB .a files 101 "static")) ; 420 KiB .a files
@@ -107,9 +105,6 @@
107 #$(this-package-input "libltdl"))) 105 #$(this-package-input "libltdl")))
108 #:phases 106 #:phases
109 #~(modify-phases %standard-phases 107 #~(modify-phases %standard-phases
110 (add-after 'unpack 'force-reconfigure
111 (lambda _
112 (delete-file "configure")))
113 (add-after 'install 'move-static-libraries 108 (add-after 'install 'move-static-libraries
114 (lambda* (#:key outputs #:allow-other-keys) 109 (lambda* (#:key outputs #:allow-other-keys)
115 ;; Move static libraries to the "static" output. 110 ;; Move static libraries to the "static" output.
@@ -122,12 +117,7 @@
122 (delete-file file)) 117 (delete-file file))
123 (find-files lib "\\.a$")))))))) 118 (find-files lib "\\.a$"))))))))
124 (native-inputs 119 (native-inputs
125 (list autoconf-2.71 120 (list pkg-config))
126 automake
127 gettext-minimal
128 libtool
129 pkg-config
130 texinfo))
131 (inputs 121 (inputs
132 (list bzip2 122 (list bzip2
133 exiv2-0.27 123 exiv2-0.27
diff --git a/gnu/packages/patches/libextractor-tidy-support.patch b/gnu/packages/patches/libextractor-tidy-support.patch
deleted file mode 100644
index 8fe2f21b2b5..00000000000
--- a/gnu/packages/patches/libextractor-tidy-support.patch
+++ /dev/null
@@ -1,81 +0,0 @@
1Upstream status: submitted to bug-libextractor@gnu.org.
2
3From 1fc6daaeaf829fb941a176831c011888a73c43b9 Mon Sep 17 00:00:00 2001
4From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
5Date: Mon, 11 Mar 2024 09:36:26 -0400
6Subject: [PATCH] html_extractor: Add support for modern tidy-html.
7
8* configure.ac: Use PKG_PROG_PKG_CONFIG to initialize pkg-config detection.
9<tidy>: Check for library via pkg-config.
10* src/plugins/html_extractor.c: Standardize tidy include file names.
11---
12 configure.ac | 28 +++++++++-------------------
13 src/plugins/html_extractor.c | 4 ++--
14 2 files changed, 11 insertions(+), 21 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index d17ff39..e89d70c 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -176,6 +176,8 @@ AS_CASE(["$target_os"],
21
22 AM_ICONV
23
24+PKG_PROG_PKG_CONFIG()
25+
26 # We define the paths here, because MinGW/GCC expands paths
27 # passed through the command line ("-DLOCALEDIR=..."). This would
28 # lead to hard-coded paths ("C:\mingw\mingw\bin...") that do
29@@ -424,25 +426,13 @@ AC_CHECK_LIB(magic, magic_open,
30 AM_CONDITIONAL(HAVE_MAGIC, false))],
31 AM_CONDITIONAL(HAVE_MAGIC, false))
32
33-AC_MSG_CHECKING(for tidyNodeGetValue -ltidy)
34-AC_LANG_PUSH(C++)
35-SAVED_LIBS=$LIBS
36-LIBS="$LIBS -ltidy"
37-AC_LINK_IFELSE(
38- [AC_LANG_PROGRAM([[#include <tidy/tidy.h>]],
39- [[ Bool b = tidyNodeGetValue (NULL, NULL, NULL); ]])],
40- [AC_MSG_RESULT(yes)
41- AM_CONDITIONAL(HAVE_TIDY, true)
42- AC_DEFINE(HAVE_TIDY,1,[Have tidyNodeGetValue in libtidy])],
43- [AC_MSG_RESULT(no)
44- AM_CONDITIONAL(HAVE_TIDY, false)])
45-LIBS=$SAVED_LIBS
46-AC_LANG_POP(C++)
47-
48-# restore LIBS
49-LIBS=$LIBSOLD
50-
51-
52+dnl tidyNodeGetValue was already available in 5.0.0, released in 2015.
53+PKG_CHECK_MODULES([TIDY], [tidy >= 5.0.0],
54+ [AC_DEFINE(HAVE_TIDY, 1, [Have tidy])
55+ AM_CONDITIONAL(HAVE_TIDY, true)],
56+ [AM_CONDITIONAL(HAVE_TIDY, false)])
57+CFLAGS="$CFLAGS $TIDY_CFLAGS"
58+LIBS="$LIBS $TIDY_LIBS"
59
60 # should 'make check' run tests?
61 AC_MSG_CHECKING(whether to run tests)
62diff --git a/src/plugins/html_extractor.c b/src/plugins/html_extractor.c
63index 5ebf97b..88100d3 100644
64--- a/src/plugins/html_extractor.c
65+++ b/src/plugins/html_extractor.c
66@@ -26,8 +26,8 @@
67 #include "platform.h"
68 #include "extractor.h"
69 #include <magic.h>
70-#include <tidy/tidy.h>
71-#include <tidy/tidybuffio.h>
72+#include <tidy.h>
73+#include <tidybuffio.h>
74
75 /**
76 * Mapping of HTML META names to LE types.
77
78base-commit: a75f40b64b5868967c95ea214e8eaac4f7088b23
79--
802.41.0
81