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,71 +3333,73 @@ 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"
"binsrc/jena3" "binsrc/jena3"
"binsrc/jena4" "binsrc/jena4"
"binsrc/rdf4j" "binsrc/rdf4j"
"binsrc/sesame" "binsrc/sesame"
"binsrc/sesame2" "binsrc/sesame2"
"binsrc/sesame3" "binsrc/sesame3"
"binsrc/sesame4" "binsrc/sesame4"
"libsrc/JDBCDriverType4"))))) "libsrc/JDBCDriverType4")))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; Tests require a network connection. (list
;; TODO: Removing the libsrc/zlib source directory breaks the build. #:tests? #f ; tests require a network connection
;; This indicates that the internal zlib code may still be used. ;; TODO: Removing the libsrc/zlib source directory breaks the build.
#:configure-flags '("--without-internal-zlib" ;; This indicates that the internal zlib code may still be used.
"--with-readline" #:configure-flags
"--enable-static=no") #~(list "--without-internal-zlib"
#:phases "--with-readline"
(modify-phases %standard-phases "--enable-static=no")
(replace 'bootstrap #:phases
(lambda _ #~(modify-phases %standard-phases
(invoke "sh" "autogen.sh"))) (replace 'bootstrap
(add-after 'unpack 'avoid-embedding-kernel-and-timestamps (lambda _
;; For a reproducible build, avoid embedding the kernel version and (invoke "sh" "autogen.sh")))
;; timestamps. (add-after 'unpack 'avoid-embedding-kernel-and-timestamps
(lambda _ ;; For a reproducible build, avoid embedding the kernel version and
(substitute* ;; timestamps.
(list "bin/makever" (lambda _
"appsrc/ODS-Polls/make_vad.sh" (substitute*
"appsrc/ODS-Blog/make_vad.sh" (list "bin/makever"
"appsrc/ODS-Community/make_vad.sh" "appsrc/ODS-Polls/make_vad.sh"
"appsrc/ODS-Framework/make_vad.sh" "appsrc/ODS-Blog/make_vad.sh"
"appsrc/ODS-Framework/oauth/make_vad.sh" "appsrc/ODS-Community/make_vad.sh"
"appsrc/ODS-WebMail/make_vad.sh" "appsrc/ODS-Framework/make_vad.sh"
"appsrc/ODS-Calendar/make_vad.sh" "appsrc/ODS-Framework/oauth/make_vad.sh"
"appsrc/ODS-Gallery/make_vad.sh" "appsrc/ODS-WebMail/make_vad.sh"
"appsrc/ODS-Briefcase/make_vad.sh" "appsrc/ODS-Calendar/make_vad.sh"
"appsrc/ODS-FeedManager/make_vad.sh" "appsrc/ODS-Gallery/make_vad.sh"
"appsrc/ODS-Bookmark/make_vad.sh" "appsrc/ODS-Briefcase/make_vad.sh"
"appsrc/ODS-Addressbook/make_vad.sh" "appsrc/ODS-FeedManager/make_vad.sh"
"binsrc/dbpedia/make_vad.sh" "appsrc/ODS-Bookmark/make_vad.sh"
"binsrc/samples/demo/make_vad.sh" "appsrc/ODS-Addressbook/make_vad.sh"
"binsrc/samples/demo/mkdoc.sh" "binsrc/dbpedia/make_vad.sh"
"binsrc/samples/sparql_demo/make_vad.sh" "binsrc/samples/demo/make_vad.sh"
"binsrc/bpel/make_vad.sh" "binsrc/samples/demo/mkdoc.sh"
"binsrc/fct/make_vad.sh" "binsrc/samples/sparql_demo/make_vad.sh"
"binsrc/rdf_mappers/make_vad.sh" "binsrc/bpel/make_vad.sh"
"binsrc/isparql/make_vad.sh" "binsrc/fct/make_vad.sh"
"binsrc/conductor/mkvad.sh") "binsrc/rdf_mappers/make_vad.sh"
(("^UNAME_SYSTEM=.*") "UNAME_SYSTEM=unknown\n") "binsrc/isparql/make_vad.sh"
(("^UNAME_RELEASE=.*") "UNAME_RELEASE=unknown\n") "binsrc/conductor/mkvad.sh")
(("^PACKDATE=.*") "PACKDATE=2012-04-18\n") (("^UNAME_SYSTEM=.*") "UNAME_SYSTEM=unknown\n")
(("^DATE=.*") "DATE=2012-04-18\n")))) (("^UNAME_RELEASE=.*") "UNAME_RELEASE=unknown\n")
;; Even with "--enable-static=no", "libvirtuoso-t.a" is left in (("^PACKDATE=.*") "PACKDATE=2012-04-18\n")
;; the build output. The following phase removes it. (("^DATE=.*") "DATE=2012-04-18\n"))))
(add-after 'install 'remove-static-libs ;; Even with "--enable-static=no", "libvirtuoso-t.a" is left in
(lambda* (#:key outputs #:allow-other-keys) ;; the build output. The following phase removes it.
(let ((lib (string-append (assoc-ref outputs "out") "/lib"))) (add-after 'install 'remove-static-libs
(for-each (lambda (file) (lambda _
(delete-file (string-append lib "/" file))) (for-each
'("libvirtuoso-t.a" (lambda (file)
"libvirtuoso-t.la")))))))) (delete-file (string-append #$output "/lib/" file)))
'("libvirtuoso-t.a"
"libvirtuoso-t.la")))))))
(native-inputs (native-inputs
(list autoconf automake bison flex gperf libtool)) (list autoconf automake bison flex gperf libtool))
(inputs (inputs