[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/79: gnu: apache-arrow: Use G-expressions.
From: |
guix-commits |
Subject: |
01/79: gnu: apache-arrow: Use G-expressions. |
Date: |
Tue, 9 May 2023 09:26:58 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit a0fe6bec4bc5aca09ff11c43e7087e2884391e57
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue May 9 13:19:55 2023 +0200
gnu: apache-arrow: Use G-expressions.
* gnu/packages/databases.scm (apache-arrow)[arguments]: Use G-expressions to
refer to inputs without assoc-ref.
---
gnu/packages/databases.scm | 150 ++++++++++++++++++++++-----------------------
1 file changed, 72 insertions(+), 78 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 4cd0d61da8..d5ae19ed95 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -4289,86 +4289,80 @@ the SQL language using a syntax that reflects the
resulting query.")
"06d3jjxagj5f14j9c48rh63x7pr9f96v69anjnpc6lakr0gkpi1d"))))
(build-system cmake-build-system)
(arguments
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'enter-source-directory
- (lambda _ (chdir "cpp")))
- (add-after 'unpack 'set-env
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "cpp/cmake_modules/ThirdpartyToolchain.cmake"
- (("set\\(xsimd_SOURCE.*") ""))
- (setenv "BOOST_ROOT" (assoc-ref inputs "boost"))
- (setenv "BROTLI_HOME" (assoc-ref inputs "brotli"))
- (setenv "FLATBUFFERS_HOME" (assoc-ref inputs "flatbuffers"))
- (setenv "RAPIDJSON_HOME" (assoc-ref inputs "rapidjson")))))
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'enter-source-directory
+ (lambda _ (chdir "cpp")))
+ (add-after 'unpack 'set-env
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "cpp/cmake_modules/ThirdpartyToolchain.cmake"
+ (("set\\(xsimd_SOURCE.*") ""))
+ (setenv "BOOST_ROOT" #$(this-package-input "boost"))
+ (setenv "BROTLI_HOME" #$(this-package-input "brotli"))
+ (setenv "FLATBUFFERS_HOME" #$(this-package-input "flatbuffers"))
+ (setenv "RAPIDJSON_HOME" #$(this-package-input "rapidjson")))))
#:build-type "Release"
#:configure-flags
- (list "-DARROW_PYTHON=ON"
- "-DARROW_GLOG=ON"
- ;; Parquet options
- "-DARROW_PARQUET=ON"
- "-DPARQUET_BUILD_EXECUTABLES=ON"
- ;; The maintainers disallow using system versions of
- ;; jemalloc:
- ;; https://issues.apache.org/jira/browse/ARROW-3507. This
- ;; is unfortunate because jemalloc increases performance:
- ;; https://arrow.apache.org/blog/2018/07/20/jemalloc/.
- "-DARROW_JEMALLOC=OFF"
-
- ;; The CMake option ARROW_DEPENDENCY_SOURCE is a global
- ;; option that instructs the build system how to resolve
- ;; each dependency. SYSTEM = Finding the dependency in
- ;; system paths using CMake's built-in find_package
- ;; function, or using pkg-config for packages that do not
- ;; have this feature
- "-DARROW_DEPENDENCY_SOURCE=SYSTEM"
- "-Dxsimd_SOURCE=SYSTEM"
-
- "-DARROW_RUNTIME_SIMD_LEVEL=NONE"
- "-DARROW_SIMD_LEVEL=NONE"
- "-DARROW_PACKAGE_KIND=Guix"
-
- ;; Split output into its component packages.
- (string-append "-DCMAKE_INSTALL_PREFIX="
- (assoc-ref %outputs "lib"))
- (string-append "-DCMAKE_INSTALL_RPATH="
- (assoc-ref %outputs "lib")
- "/lib")
- (string-append "-DCMAKE_INSTALL_BINDIR="
- (assoc-ref %outputs "out")
- "/bin")
- (string-append "-DCMAKE_INSTALL_INCLUDEDIR="
- (assoc-ref %outputs "include")
- "/share/include")
-
-
- "-DARROW_WITH_SNAPPY=ON"
- "-DARROW_WITH_ZLIB=ON"
- "-DARROW_WITH_ZSTD=ON"
- "-DARROW_WITH_LZ4=ON"
- "-DARROW_COMPUTE=ON"
- "-DARROW_CSV=ON"
- "-DARROW_DATASET=ON"
- "-DARROW_FILESYSTEM=ON"
- "-DARROW_HDFS=ON"
- "-DARROW_JSON=ON"
- ;; Arrow Python C++ integration library (required for
- ;; building pyarrow). This library must be built against
- ;; the same Python version for which you are building
- ;; pyarrow. NumPy must also be installed. Enabling this
- ;; option also enables ARROW_COMPUTE, ARROW_CSV,
- ;; ARROW_DATASET, ARROW_FILESYSTEM, ARROW_HDFS, and
- ;; ARROW_JSON.
- "-DARROW_PYTHON=ON"
-
- ;; Building the tests forces on all the
- ;; optional features and the use of static
- ;; libraries.
- "-DARROW_BUILD_TESTS=OFF"
- "-DBENCHMARK_ENABLE_GTEST_TESTS=OFF"
- ;;"-DBENCHMARK_ENABLE_TESTING=OFF"
- "-DARROW_BUILD_STATIC=OFF")))
+ #~(list "-DARROW_PYTHON=ON"
+ "-DARROW_GLOG=ON"
+ ;; Parquet options
+ "-DARROW_PARQUET=ON"
+ "-DPARQUET_BUILD_EXECUTABLES=ON"
+ ;; The maintainers disallow using system versions of
+ ;; jemalloc:
+ ;; https://issues.apache.org/jira/browse/ARROW-3507. This
+ ;; is unfortunate because jemalloc increases performance:
+ ;; https://arrow.apache.org/blog/2018/07/20/jemalloc/.
+ "-DARROW_JEMALLOC=OFF"
+
+ ;; The CMake option ARROW_DEPENDENCY_SOURCE is a global
+ ;; option that instructs the build system how to resolve
+ ;; each dependency. SYSTEM = Finding the dependency in
+ ;; system paths using CMake's built-in find_package
+ ;; function, or using pkg-config for packages that do not
+ ;; have this feature
+ "-DARROW_DEPENDENCY_SOURCE=SYSTEM"
+ "-Dxsimd_SOURCE=SYSTEM"
+
+ "-DARROW_RUNTIME_SIMD_LEVEL=NONE"
+ "-DARROW_SIMD_LEVEL=NONE"
+ "-DARROW_PACKAGE_KIND=Guix"
+
+ ;; Split output into its component packages.
+ (string-append "-DCMAKE_INSTALL_PREFIX=" #$output:lib)
+ (string-append "-DCMAKE_INSTALL_RPATH=" #$output:lib "/lib")
+ (string-append "-DCMAKE_INSTALL_BINDIR=" #$output "/bin")
+ (string-append "-DCMAKE_INSTALL_INCLUDEDIR=" #$output:include
+ "/share/include")
+
+ "-DARROW_WITH_SNAPPY=ON"
+ "-DARROW_WITH_ZLIB=ON"
+ "-DARROW_WITH_ZSTD=ON"
+ "-DARROW_WITH_LZ4=ON"
+ "-DARROW_COMPUTE=ON"
+ "-DARROW_CSV=ON"
+ "-DARROW_DATASET=ON"
+ "-DARROW_FILESYSTEM=ON"
+ "-DARROW_HDFS=ON"
+ "-DARROW_JSON=ON"
+ ;; Arrow Python C++ integration library (required for
+ ;; building pyarrow). This library must be built against
+ ;; the same Python version for which you are building
+ ;; pyarrow. NumPy must also be installed. Enabling this
+ ;; option also enables ARROW_COMPUTE, ARROW_CSV,
+ ;; ARROW_DATASET, ARROW_FILESYSTEM, ARROW_HDFS, and
+ ;; ARROW_JSON.
+ "-DARROW_PYTHON=ON"
+
+ ;; Building the tests forces on all the
+ ;; optional features and the use of static
+ ;; libraries.
+ "-DARROW_BUILD_TESTS=OFF"
+ "-DBENCHMARK_ENABLE_GTEST_TESTS=OFF"
+ ;;"-DBENCHMARK_ENABLE_TESTING=OFF"
+ "-DARROW_BUILD_STATIC=OFF")))
(inputs
`(("boost" ,boost)
("brotli" ,brotli)
- 41/79: gnu: r-chron: Update to 2.3-61., (continued)
- 41/79: gnu: r-chron: Update to 2.3-61., guix-commits, 2023/05/09
- 42/79: gnu: r-httr: Update to 1.4.6., guix-commits, 2023/05/09
- 39/79: gnu: r-evaluate: Update to 0.21., guix-commits, 2023/05/09
- 46/79: gnu: r-hmisc: Update to 5.1-0., guix-commits, 2023/05/09
- 51/79: gnu: r-amplican: Update to 1.22.1., guix-commits, 2023/05/09
- 47/79: gnu: r-gdata: Update to 2.19.0., guix-commits, 2023/05/09
- 54/79: gnu: r-delayedarray: Update to 0.26.2., guix-commits, 2023/05/09
- 55/79: gnu: r-densvis: Update to 1.10.1., guix-commits, 2023/05/09
- 61/79: gnu: r-impute: Update to 1.74.1., guix-commits, 2023/05/09
- 66/79: gnu: r-oligo: Update to 1.64.1., guix-commits, 2023/05/09
- 01/79: gnu: apache-arrow: Use G-expressions.,
guix-commits <=
- 06/79: gnu: r-biomartr: Update to 1.0.3., guix-commits, 2023/05/09
- 10/79: gnu: r-httpuv: Update to 1.6.10., guix-commits, 2023/05/09
- 21/79: gnu: r-wk: Update to 0.7.3., guix-commits, 2023/05/09
- 29/79: gnu: r-metafor: Update to 4.2-0., guix-commits, 2023/05/09
- 30/79: gnu: r-scattermore: Update to 1.0., guix-commits, 2023/05/09
- 49/79: gnu: Add r-s4arrays., guix-commits, 2023/05/09
- 48/79: gnu: r-deoptimr: Update to 1.0-13., guix-commits, 2023/05/09
- 63/79: gnu: r-rhdf5filters: Update to 1.12.1., guix-commits, 2023/05/09
- 67/79: gnu: r-glmgampoi: Update to 1.12.1., guix-commits, 2023/05/09
- 69/79: gnu: r-dnacopy: Update to 1.74.1., guix-commits, 2023/05/09