me
/
guix
Archived
1
0
Fork 0

gnu: virtuoso-ose: Use G-expressions.

* gnu/packages/databases.scm (virtuoso-ose)[arguments]:
Rewrite as G-expressions.
master
Tobias Geerinckx-Rice 2023-07-09 02:00:02 +02:00
parent 560e61e5eb
commit ae8a4de141
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 65 additions and 63 deletions

View File

@ -3333,7 +3333,7 @@ Memory-Mapped Database} (LMDB), a high-performance key-value store.")
(modules '((guix build utils))) (modules '((guix build utils)))
;; This snippet removes pre-built Java archives. ;; This snippet removes pre-built Java archives.
(snippet (snippet
'(for-each delete-file-recursively #~(for-each delete-file-recursively
(list "binsrc/hibernate" (list "binsrc/hibernate"
"binsrc/jena" "binsrc/jena"
"binsrc/jena2" "binsrc/jena2"
@ -3347,14 +3347,16 @@ Memory-Mapped Database} (LMDB), a high-performance key-value store.")
"libsrc/JDBCDriverType4"))))) "libsrc/JDBCDriverType4")))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; Tests require a network connection. (list
#:tests? #f ; tests require a network connection
;; TODO: Removing the libsrc/zlib source directory breaks the build. ;; TODO: Removing the libsrc/zlib source directory breaks the build.
;; This indicates that the internal zlib code may still be used. ;; This indicates that the internal zlib code may still be used.
#:configure-flags '("--without-internal-zlib" #:configure-flags
#~(list "--without-internal-zlib"
"--with-readline" "--with-readline"
"--enable-static=no") "--enable-static=no")
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'bootstrap (replace 'bootstrap
(lambda _ (lambda _
(invoke "sh" "autogen.sh"))) (invoke "sh" "autogen.sh")))
@ -3392,12 +3394,12 @@ Memory-Mapped Database} (LMDB), a high-performance key-value store.")
;; Even with "--enable-static=no", "libvirtuoso-t.a" is left in ;; Even with "--enable-static=no", "libvirtuoso-t.a" is left in
;; the build output. The following phase removes it. ;; the build output. The following phase removes it.
(add-after 'install 'remove-static-libs (add-after 'install 'remove-static-libs
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let ((lib (string-append (assoc-ref outputs "out") "/lib"))) (for-each
(for-each (lambda (file) (lambda (file)
(delete-file (string-append lib "/" file))) (delete-file (string-append #$output "/lib/" file)))
'("libvirtuoso-t.a" '("libvirtuoso-t.a"
"libvirtuoso-t.la")))))))) "libvirtuoso-t.la")))))))
(native-inputs (native-inputs
(list autoconf automake bison flex gperf libtool)) (list autoconf automake bison flex gperf libtool))
(inputs (inputs