rdf.scm
| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
| 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 (more packages rdf) |
| 20 | #:use-module ((guix licenses) #:prefix license:) |
| 21 | #:use-module (gnu packages) |
| 22 | #:use-module (guix packages) |
| 23 | #:use-module (guix download) |
| 24 | #:use-module (guix git-download) |
| 25 | #:use-module (guix utils) |
| 26 | #:use-module (guix build-system cmake) |
| 27 | #:use-module (gnu packages boost) |
| 28 | #:use-module (gnu packages gtk) |
| 29 | #:use-module (gnu packages icu4c) |
| 30 | #:use-module (gnu packages pkg-config) |
| 31 | #:use-module (gnu packages wxwidgets)) |
| 32 | |
| 33 | (define-public lucene++ |
| 34 | (package |
| 35 | (name "lucene++") |
| 36 | (version "3.0.7") |
| 37 | (source (origin |
| 38 | (method url-fetch) |
| 39 | (uri (string-append "https://github.com/luceneplusplus/" |
| 40 | "LucenePlusPlus/archive/rel_" version ".tar.gz")) |
| 41 | (file-name (string-append name "-" version ".tar.gz")) |
| 42 | (sha256 |
| 43 | (base32 |
| 44 | "032yb35b381ifm7wb8cy2m3yndklnxyi5cgprjh48jqy641z46bc")))) |
| 45 | (build-system cmake-build-system) |
| 46 | (arguments |
| 47 | `(#:configure-flags |
| 48 | ;; CXX_FLAGS suggested in a closed issue on github: |
| 49 | ;; https://github.com/luceneplusplus/LucenePlusPlus/issues/100 |
| 50 | (list "-Wno-dev" "-DCMAKE_CXX_FLAGS=-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT" |
| 51 | ;; Install in lib64 break rpath |
| 52 | "-DCMAKE_INSTALL_LIBDIR:PATH=lib"))) |
| 53 | ;#:phases |
| 54 | ;(modify-phases %standard-phases |
| 55 | ; (add-after 'configure 'fix-lib64 |
| 56 | ; (lambda _ |
| 57 | ; ;; Install in lib64 break rpath |
| 58 | ; (substitute* "Makefile" |
| 59 | ; (("lib64") "lib")) |
| 60 | ; #t))))) |
| 61 | (native-inputs |
| 62 | `(("pkg-config" ,pkg-config))) |
| 63 | (inputs |
| 64 | `(("boost" ,boost))) |
| 65 | (home-page "https://github.com/luceneplusplus/LucenePlusPlus") |
| 66 | (synopsis "Text search engine") |
| 67 | (description |
| 68 | "Lucene++ is an up to date C++ port of the popular Java Lucene library, |
| 69 | a high-performance, full-featured text search engine.") |
| 70 | (license (list license:asl2.0 license:lgpl3)))); either asl or lgpl. |
| 71 |