[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
179/182: gnu: Add boost-with-python3.
From: |
guix-commits |
Subject: |
179/182: gnu: Add boost-with-python3. |
Date: |
Fri, 15 Nov 2019 00:02:05 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome-updates
in repository guix.
commit a41d1b55f083ae463d306399e0148bb41bef80fe
Author: Giacomo Leidi <address@hidden>
Date: Fri Nov 8 11:52:42 2019 +0100
gnu: Add boost-with-python3.
* gnu/packages/boost.scm (boost-with-python3): New variable.
Signed-off-by: Marius Bakke <address@hidden>
---
gnu/packages/boost.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index a2253a9..2ef0591 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -10,6 +10,7 @@
;;; Copyright © 2018, 2019 Ricardo Wurmus <address@hidden>
;;; Copyright © 2018 Maxim Cournoyer <address@hidden>
;;; Copyright © 2018 Efraim Flashner <address@hidden>
+;;; Copyright © 2019 Giacomo Leidi <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -128,6 +129,55 @@ across a broad spectrum of applications.")
(license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"
"Some components have other similar
licences."))))
+;; TODO: Merge with 'Boost' in the next rebuild cycle.
+(define-public boost-with-python3
+ (package
+ (inherit boost)
+ (name "boost-python3")
+ (native-inputs
+ `(("perl" ,perl)
+ ("python" ,python)
+ ("tcsh" ,tcsh)))
+ (arguments (substitute-keyword-arguments (package-arguments boost)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((icu (assoc-ref inputs "icu4c"))
+ (python (assoc-ref inputs "python"))
+ (out (assoc-ref outputs "out")))
+ (substitute* '("libs/config/configure"
+
"libs/spirit/classic/phoenix/test/runtest.sh"
+ "tools/build/src/engine/execunix.c"
+ "tools/build/src/engine/Jambase"
+ "tools/build/src/engine/jambase.c")
+ (("/bin/sh") (which "sh")))
+
+ (setenv "SHELL" (which "sh"))
+ (setenv "CONFIG_SHELL" (which "sh"))
+
+ (substitute* "tools/build/src/tools/python.jam"
+ (("include/python\\$\\(version\\)")
+ "include/python$(version)m"))
+
+ (invoke "./bootstrap.sh"
+ (string-append "--prefix=" out)
+ ;; Auto-detection looks for dependencies
only
+ ;; in traditional install locations.
+ (string-append "--with-icu=" icu)
+ (string-append "--with-python=" python
"/bin/python3")
+ (string-append "--with-python-root=" python)
+ "--with-python-version=3.7"
+ "--with-toolset=gcc"))))
+ (replace 'provide-libboost_python
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (with-directory-excursion (string-append out "/lib")
+ (symlink "libboost_python37.so"
"libboost_python.so")
+ ;; Some packages also look for libboost_python3.so
+ (symlink "libboost_python37.so"
"libboost_python3.so"))
+ #t)))))))))
+
(define-public boost-for-mysql
;; Older version for MySQL 5.7.23.
(package
- 149/182: gnu: fvwm: Don't use NAME in source URI., (continued)
- 149/182: gnu: fvwm: Don't use NAME in source URI., guix-commits, 2019/11/15
- 154/182: gnu: gimp: Update to 2.10.14., guix-commits, 2019/11/15
- 153/182: gnu: gegl: Update to 0.4.18., guix-commits, 2019/11/15
- 158/182: gnu: faad2: Use HTTPS home page., guix-commits, 2019/11/15
- 164/182: gnu: LibreSSL: Make search paths single-entry., guix-commits, 2019/11/15
- 169/182: gnu: raincat: Use 'mirror-url'., guix-commits, 2019/11/15
- 175/182: gnu: limnoria: Update to 2019.11.09 [security fix]., guix-commits, 2019/11/15
- 161/182: gnu: Remove monero-miniupnpc., guix-commits, 2019/11/15
- 160/182: gnu: cgal: Update to 4.14.2., guix-commits, 2019/11/15
- 165/182: gnu: Add ghc-ncurses., guix-commits, 2019/11/15
- 179/182: gnu: Add boost-with-python3.,
guix-commits <=
- 181/182: gnu: jalv: Fix gtkmm, add gtk+-2 and qtbase., guix-commits, 2019/11/15
- 180/182: gnu: zita-convolver: Update to 4.0.3., guix-commits, 2019/11/15
- 171/182: gnu: polkit-qt: Use https for home-page., guix-commits, 2019/11/15
- 168/182: gnu: delta: Use 'mirror-url'., guix-commits, 2019/11/15
- 166/182: gnu: Add scroll., guix-commits, 2019/11/15
- 174/182: gnu: xfce4-whiskermenu-plugin: Download over HTTPS., guix-commits, 2019/11/15
- 173/182: gnu: qtwebkit: Don't use NAME in source URI., guix-commits, 2019/11/15
- 178/182: gnu: gnome: Add gnome-screenshot to default apps., guix-commits, 2019/11/15
- 182/182: Merge branch 'master' into wip-gnome-updates, guix-commits, 2019/11/15
- 162/182: gnu: monero: Update to 0.15.0.0., guix-commits, 2019/11/15