Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Guix Past
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guix-hpc
Guix Past
Commits
0eb2aae7
Unverified
Commit
0eb2aae7
authored
Jul 03, 2020
by
Ricardo Wurmus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add (past packages boost).
* modules/past/packages/boost.scm: New file.
parent
743993ae
Pipeline
#155681
failed with stages
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
0 deletions
+97
-0
modules/past/packages/boost.scm
modules/past/packages/boost.scm
+97
-0
No files found.
modules/past/packages/boost.scm
0 → 100644
View file @
0eb2aae7
;;; Guix Past --- Packages from the past for GNU Guix.
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of Guix Past.
;;;
;;; Guix Past is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; Guix Past is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with Guix Past. If not, see <http://www.gnu.org/licenses/>.
(
define-module
(
past
packages
boost
)
#
:use-module
(
guix
)
#
:use-module
(
guix
build-system
gnu
)
#
:use-module
((
guix
licenses
)
#
:prefix
license:
)
#
:use-module
(
gnu
packages
))
(
define
S
specification->package
)
(
define-public
boost-1
.
58
(
package
(
name
"boost"
)
(
version
"1.58.0"
)
(
source
(
origin
(
method
url-fetch
)
(
uri
(
string-append
"mirror://sourceforge/boost/boost/"
version
"/boost_"
(
string-map
(
lambda
(
x
)
(
if
(
eq?
x
#\.
)
#\_
x
))
version
)
".tar.bz2"
))
(
sha256
(
base32
"1rfkqxns60171q62cppiyzj8pmsbwp1l8jd7p6crriryqd7j1z7x"
))))
(
build-system
gnu-build-system
)
(
arguments
`
(
#
:tests?
#f
; TODO
#
:make-flags
(
list
"threading=multi"
"link=shared"
;; Set the RUNPATH to $libdir so that the libs find each other.
(
string-append
"linkflags=-Wl,-rpath="
(
assoc-ref
%outputs
"out"
)
"/lib"
)
;; Boost's 'context' library is not yet supported on mips64, so
;; we disable it. The 'coroutine' library depends on 'context',
;; so we disable that too.
,@
(
if
(
string-prefix?
"mips64"
(
or
(
%current-target-system
)
(
%current-system
)))
'
(
"--without-context"
"--without-coroutine"
"--without-coroutine2"
)
'
()))
#
:phases
(
modify-phases
%standard-phases
(
delete
'bootstrap
)
(
replace
'configure
(
lambda*
(
#
:key
outputs
#
:allow-other-keys
)
(
let
((
out
(
assoc-ref
outputs
"out"
)))
(
substitute*
'
(
"libs/config/configure"
"libs/spirit/classic/phoenix/test/runtest.sh"
"tools/build/doc/bjam.qbk"
"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"
))
(
invoke
"./bootstrap.sh"
(
string-append
"--prefix="
out
)
"--with-toolset=gcc"
))))
(
replace
'build
(
lambda*
(
#
:key
outputs
make-flags
#
:allow-other-keys
)
(
apply
invoke
"./b2"
(
format
#f
"-j~a"
(
parallel-job-count
))
make-flags
)))
(
replace
'install
(
lambda*
(
#
:key
outputs
make-flags
#
:allow-other-keys
)
(
apply
invoke
"./b2"
"install"
make-flags
))))))
(
native-inputs
`
((
"perl"
,
(
S
"perl"
))
(
"python"
,
(
S
"python@2"
))
(
"tcsh"
,
(
S
"tcsh"
))))
(
inputs
`
((
"zlib"
,
(
S
"zlib"
))))
(
home-page
"http://boost.org"
)
(
synopsis
"Peer-reviewed portable C++ source libraries"
)
(
description
"A collection of libraries intended to be widely useful, and
usable across a broad spectrum of applications."
)
(
license
(
license:x11-style
"http://www.boost.org/LICENSE_1_0.txt"
"Some components have other similar licences."
))))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment