summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2022-06-24 18:17:50 +0530
committerArun Isaac <arunisaac@systemreboot.net>2022-07-08 11:32:46 +0530
commit37dd7e53b9bf635b62b36cd6b028497048481288 (patch)
tree97139a054e50289082b20eb6fbe45e9f6d313ef3
parent7dfb8dc4c156e96c4029eb5a4eeb6e704ffdb64d (diff)
downloadguix-37dd7e53b9bf635b62b36cd6b028497048481288.tar.gz
gnu: Add omega.
* gnu/packages/search.scm (omega): New variable.
* gnu/packages/search.scm (xapian): Add note to update omega when updating
xapian.
-rw-r--r--gnu/packages/search.scm32
1 files changed, 31 insertions, 1 deletions
diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index c8b0fdd89a..016142c7a9 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -74,7 +74,8 @@
   (package
     (name "xapian")
     (version "1.4.19")
-    ;; Note: When updating Xapian, remember to update xapian-bindings below.
+    ;; Note: When updating Xapian, remember to update omega and
+    ;; python-xapian-bindings below.
     (source (origin
               (method url-fetch)
               (uri (string-append "https://oligarchy.co.uk/xapian/" version
@@ -108,6 +109,35 @@ rich set of boolean query operators.")
     (home-page "https://xapian.org/")
     (license (list license:gpl2+ license:bsd-3 license:x11))))
 
+(define-public omega
+  (package
+    (name "omega")
+    (version (package-version xapian))
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://oligarchy.co.uk/xapian/" version
+                           "/xapian-omega-" version ".tar.xz"))
+       (sha256
+        (base32
+         "136dsna6jvq48j4x4rr5y9nxmgrif9kvf4ybl5a6gpsmgqlfzcp4"))))
+    (build-system gnu-build-system)
+    (inputs
+     (list (list pcre "bin") perl xapian zlib))
+    (home-page "https://xapian.org/")
+    (synopsis "Search engine built on Xapian")
+    (description
+     "Omega is a search application built on Xapian.  It provides indexers and
+a CGI web search frontend.")
+    (license (list license:gpl2+        ; Main license
+                   ;; csvescape.cc, csvescape.h, csvesctest.cc, datetime.cc,
+                   ;; datetime.h, jsonescape.cc, jsonescape.h, jsonesctest.cc,
+                   ;; mimemap.h, my-html-tok.h, namedents.h, pkglibbindir.cc,
+                   ;; pkglibbindir.h, timegm.cc, timegm.h, urldecode.h,
+                   ;; urlencode.cc, urlencode.h, urlenctest.cc, common/Tokeniseise.pm,
+                   ;; common/keyword.cc, common/keyword.h
+                   license:expat))))
+
 (define-public python-xapian-bindings
   (package (inherit xapian)
     (name "python-xapian-bindings")