summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-08-20 19:28:13 +0200
committerNguyễn Gia Phong <cnx@loang.net>2026-08-26 15:47:36 +0900
commit5687b11d5f99c464919409696654762ef2f74558 (patch)
tree639d3a7eb0ebe61164451c52a6e4d5bdd57e4cb4
parent9d0bcbf379ca62dba09eff37e41378b53e313752 (diff)
gnu: recoll: Update to 1.44.1.
* gnu/packages/search.scm (recoll): Update to 1.44.1. [outputs]: Add python output. [arguments]<#:configure-flags>: Enable python-module. <#:modules, #:imported-modules>: Add pyproject-build-system module. <#:phases>{relocate-python}: New phase after 'install. [inputs]: Add jsoncpp. [native-inputs]: Add python. Merges: https://codeberg.org/guix/guix/pulls/10685 Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
-rw-r--r--gnu/packages/search.scm26
1 files changed, 20 insertions, 6 deletions
diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index 5a6f81da69c..b5ff17485ba 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -70,6 +70,7 @@
70 #:use-module (gnu packages python-xyz) 70 #:use-module (gnu packages python-xyz)
71 #:use-module (gnu packages qt) 71 #:use-module (gnu packages qt)
72 #:use-module (gnu packages regex) 72 #:use-module (gnu packages regex)
73 #:use-module (gnu packages serialization)
73 #:use-module (gnu packages sphinx) 74 #:use-module (gnu packages sphinx)
74 #:use-module (gnu packages swig) 75 #:use-module (gnu packages swig)
75 #:use-module (gnu packages time) 76 #:use-module (gnu packages time)
@@ -415,27 +416,30 @@ Search Engine. It is written in C and based on GTK3.")
415(define-public recoll 416(define-public recoll
416 (package 417 (package
417 (name "recoll") 418 (name "recoll")
418 (version "1.43.2") 419 (version "1.44.1")
419 (source 420 (source
420 (origin 421 (origin
421 (method url-fetch) 422 (method url-fetch)
422 (uri (string-append "https://www.recoll.org/recoll-" version ".tar.gz")) 423 (uri (string-append "https://www.recoll.org/recoll-" version ".tar.gz"))
423 (sha256 424 (sha256
424 (base32 "0c9p4vphysf7mfn7c6260a1fdlra0pp037s3i9f4p3m6gf9dgc0m")))) 425 (base32 "0zhjpqlv18ahh7lfv464rr274h2czyvfl19kbswsd8vf7bpzaxqg"))))
426 (outputs (list "out" "python"))
425 (build-system meson-build-system) 427 (build-system meson-build-system)
426 (arguments 428 (arguments
427 (list 429 (list
428 #:imported-modules 430 #:imported-modules
429 `((guix build gremlin) 431 `((guix build gremlin)
430 ,@%meson-build-system-modules) 432 ,@%meson-build-system-modules
433 ,@%pyproject-build-system-modules)
431 #:modules 434 #:modules
432 '((guix build meson-build-system) 435 '((guix build meson-build-system)
436 ((guix build pyproject-build-system) #:prefix py:)
433 (guix build utils) 437 (guix build utils)
434 (guix build gremlin) 438 (guix build gremlin)
435 (ice-9 match)) 439 (ice-9 match))
436 #:configure-flags 440 #:configure-flags
437 #~(list "-Dwebkit=false" 441 #~(list "-Dwebkit=false"
438 "-Dpython-module=false" 442 "-Dpython-module=true"
439 "-Dsystemd=false" 443 "-Dsystemd=false"
440 "-Dinotify=false" 444 "-Dinotify=false"
441 "-Drecollq=true") 445 "-Drecollq=true")
@@ -480,11 +484,21 @@ Search Engine. It is written in C and based on GTK3.")
480 ("rclscribus" . ("grep" "gawk" "sed")))) 484 ("rclscribus" . ("grep" "gawk" "sed"))))
481 (wrap-program (string-append target "rclimg") 485 (wrap-program (string-append target "rclimg")
482 `("PERL5LIB" ":" prefix 486 `("PERL5LIB" ":" prefix
483 (,(getenv "PERL5LIB")))))))))) 487 (,(getenv "PERL5LIB")))))))
488 (add-after 'install 'relocate-python
489 (lambda* (#:key inputs outputs #:allow-other-keys)
490 (define (py:site output)
491 (py:site-packages inputs `(("out" . ,output))))
492 (let ((origin (py:site #$output))
493 (destination (py:site #$output:python)))
494 (mkdir-p destination)
495 (copy-recursively origin destination)
496 (delete-file-recursively (dirname origin))))))))
484 (inputs 497 (inputs
485 (list aspell 498 (list aspell
486 chmlib 499 chmlib
487 inotify-tools 500 inotify-tools
501 jsoncpp
488 libxslt 502 libxslt
489 libxml2 503 libxml2
490 python 504 python
@@ -504,7 +518,7 @@ Search Engine. It is written in C and based on GTK3.")
504 sed 518 sed
505 tar)) 519 tar))
506 (native-inputs 520 (native-inputs
507 (list patchelf pkg-config qttools-5)) 521 (list patchelf pkg-config python qttools-5))
508 (home-page "https://www.recoll.org") 522 (home-page "https://www.recoll.org")
509 (synopsis "Find documents based on their contents or file names") 523 (synopsis "Find documents based on their contents or file names")
510 (description "Recoll finds documents based on their contents as well as 524 (description "Recoll finds documents based on their contents as well as