guix-more/more/packages/boost.scm

boost.scm

1
;;; GNU Guix --- Functional package management for GNU
2
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
3
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
4
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5
;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
6
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
7
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
8
;;;
9
;;; This file is part of GNU Guix.
10
;;;
11
;;; GNU Guix is free software; you can redistribute it and/or modify it
12
;;; under the terms of the GNU General Public License as published by
13
;;; the Free Software Foundation; either version 3 of the License, or (at
14
;;; your option) any later version.
15
;;;
16
;;; GNU Guix is distributed in the hope that it will be useful, but
17
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
;;; GNU General Public License for more details.
20
;;;
21
;;; You should have received a copy of the GNU General Public License
22
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
23
24
(define-module (more packages boost)
25
  #:use-module ((guix licenses) #:prefix license:)
26
  #:use-module (guix packages)
27
  #:use-module (guix download)
28
  #:use-module (guix build-system gnu)
29
  #:use-module (gnu packages)
30
  #:use-module (gnu packages base)
31
  #:use-module (gnu packages bash)
32
  #:use-module (gnu packages boost)
33
  #:use-module (gnu packages compression)
34
  #:use-module (gnu packages icu4c)
35
  #:use-module (gnu packages python)
36
  #:use-module (gnu packages shells)
37
  #:use-module (gnu packages perl))
38
39
(define-public boost-build
40
  (package
41
    (name "boost-build")
42
    (version "2016.03")
43
    (source (origin
44
              (method url-fetch)
45
              (uri (string-append "https://github.com/boostorg/build/archive/"
46
                                  version ".tar.gz"))
47
              (sha256
48
               (base32
49
                "1sgvl8jisz73ff4vlqjkns4zgjs1yapgw18wmh4dpjp4dhx2ay8y"))))
50
    (build-system gnu-build-system)
51
    (inputs
52
     `(("sh" ,bash)))
53
    (arguments
54
     `(#:tests? #f
55
       #:phases
56
       (modify-phases %standard-phases
57
         (delete 'configure)
58
         (replace 'build
59
           (lambda _
60
             (begin
61
               ;; TODO: we can use JAMSHELL here, but not in 'install, so
62
               ;; I added a dependance on the shell here.
63
               (substitute* "src/engine/execunix.c"
64
                 (("/bin/sh") (which "sh")))
65
               (zero? (system* "./bootstrap.sh")))))
66
         (replace 'install
67
           (lambda* (#:key outputs #:allow-other-keys)
68
             (zero? (system* "./b2" "install"
69
                             (string-append "--prefix=" (assoc-ref outputs "out")))))))))
70
    (home-page "http://www.boost.org/build/")
71
    (synopsis "")
72
    (description "")
73
    (license license:boost1.0)))
74
75
(define-public boost-fix
76
  (package
77
    (inherit boost)
78
    (name "boost-fix")
79
    (native-inputs
80
     `(("perl" ,perl)
81
       ("python" ,python-2)
82
       ("tcsh" ,tcsh)
83
       ("which" ,which)))
84
    (inputs
85
     `(("zlib" ,zlib)
86
       ("icu" ,icu4c)))))
87