Commit | Line | Data |
---|---|---|
98e7fc9b MW |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages search) | |
20 | #:use-module ((guix licenses) | |
21 | #:select (gpl2+ bsd-3 x11)) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module (gnu packages compression) | |
26 | #:use-module (gnu packages linux) | |
27 | #:export (xapian)) | |
28 | ||
29 | (define-public xapian | |
30 | (package | |
31 | (name "xapian") | |
32 | (version "1.2.17") | |
33 | (source (origin | |
34 | (method url-fetch) | |
35 | (uri (string-append "http://oligarchy.co.uk/xapian/" version | |
36 | "/xapian-core-" version ".tar.xz")) | |
37 | (sha256 | |
38 | (base32 "1pn65h06c23imck2pb42zhrrngch3clk39wl2bjwyqhfyfq4b7g7")))) | |
39 | (build-system gnu-build-system) | |
40 | (inputs `(("zlib" ,zlib) | |
41 | ("util-linux" ,util-linux))) | |
42 | (arguments | |
43 | `(#:phases (alist-cons-after | |
44 | 'unpack 'patch-remotetcp-harness | |
45 | (lambda _ | |
46 | (substitute* "tests/harness/backendmanager_remotetcp.cc" | |
47 | (("/bin/sh") (which "bash")))) | |
48 | %standard-phases))) | |
49 | (synopsis "Search Engine Library") | |
50 | (description | |
51 | "Xapian is a highly adaptable toolkit which allows developers to easily | |
52 | add advanced indexing and search facilities to their own applications. It | |
53 | supports the Probabilistic Information Retrieval model and also supports a | |
54 | rich set of boolean query operators.") | |
55 | (home-page "http://xapian.org/") | |
56 | (license (list gpl2+ bsd-3 x11)))) | |
57 | ||
58 | ;;; search.scm ends here |