From 37dd7e53b9bf635b62b36cd6b028497048481288 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 24 Jun 2022 18:17:50 +0530 Subject: [PATCH] gnu: Add omega. * gnu/packages/search.scm (omega): New variable. * gnu/packages/search.scm (xapian): Add note to update omega when updating xapian. --- gnu/packages/search.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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")