gnu: lucene++: Update to 3.0.8.
* gnu/packages/rdf.scm (lucene++): Update to 3.0.8. [source]: Add a nice snippet. [arguments]: Don't install the entire gtest suite. Add a custom 'check phase. [inputs]: Add zlib.
This commit is contained in:
parent
0e3fd2b64b
commit
8e25b0f64a
1 changed files with 25 additions and 8 deletions
|
@ -24,6 +24,7 @@
|
||||||
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
(define-module (gnu packages rdf)
|
(define-module (gnu packages rdf)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
|
@ -124,7 +125,7 @@ Java Lucene text search engine API to C++.")
|
||||||
(define-public lucene++
|
(define-public lucene++
|
||||||
(package
|
(package
|
||||||
(name "lucene++")
|
(name "lucene++")
|
||||||
(version "3.0.7")
|
(version "3.0.8")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -133,19 +134,35 @@ Java Lucene text search engine API to C++.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"06b37fly6l27zc6kbm93f6khfsv61w792j8xihfagpcm9cfz2zi1"))))
|
"12v7r62f7pqh5h210pb74sfx6h70lj4pgfpva8ya2d55fn0qxrr2"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
#~(begin
|
||||||
|
(substitute* (list "src/config/core/CMakeLists.txt"
|
||||||
|
"src/config/contrib/CMakeLists.txt")
|
||||||
|
(("include/pkgconfig")
|
||||||
|
"lib/pkgconfig")
|
||||||
|
(("include/cmake")
|
||||||
|
"share/cmake/lucene++"))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
;; CXX_FLAGS suggested in a closed issue on github:
|
(list (string-append "-DLIB_DESTINATION:PATH="
|
||||||
;; https://github.com/luceneplusplus/LucenePlusPlus/issues/100
|
(assoc-ref %outputs "out") "/lib")
|
||||||
(list "-Wno-dev" "-DCMAKE_CXX_FLAGS=-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT"
|
"-DINSTALL_GTEST:BOOL=OFF")
|
||||||
;; Install in lib64 break rpath
|
#:phases
|
||||||
"-DCMAKE_INSTALL_LIBDIR:PATH=lib")))
|
(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
;; XXX Tests are built unconditionally during the 'build phase.
|
||||||
|
;; There's no ‘test’ target. README.md suggests running this.
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "src/test/lucene++-tester"
|
||||||
|
"--test_dir=../source/src/test/testfiles")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config))
|
(list pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
(list boost))
|
(list boost zlib))
|
||||||
(home-page "https://github.com/luceneplusplus/LucenePlusPlus")
|
(home-page "https://github.com/luceneplusplus/LucenePlusPlus")
|
||||||
(synopsis "Text search engine")
|
(synopsis "Text search engine")
|
||||||
(description "Lucene++ is an up to date C++ port of the popular Java
|
(description "Lucene++ is an up to date C++ port of the popular Java
|
||||||
|
|
Reference in a new issue