gnu: libdvdcss: Update to 1.4.3.
[jackhill/guix/guix.git] / gnu / packages / pth.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
9b1bf330 2;;; Copyright © 2012, 2015 Ludovic Courtès <ludo@gnu.org>
223ed921 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
10045e5c 4;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
d373e57e 5;;;
233e7676 6;;; This file is part of GNU Guix.
d373e57e 7;;;
233e7676 8;;; GNU Guix is free software; you can redistribute it and/or modify it
d373e57e
LC
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
233e7676 13;;; GNU Guix is distributed in the hope that it will be useful, but
d373e57e
LC
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
233e7676 19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
d373e57e 20
1ffa7090 21(define-module (gnu packages pth)
4a44e743 22 #:use-module (guix licenses)
d373e57e 23 #:use-module (guix packages)
87f5d366 24 #:use-module (guix download)
d373e57e
LC
25 #:use-module (guix build-system gnu))
26
27(define-public pth
28 (package
29 (name "pth")
30 (version "2.0.7")
31 (source
32 (origin
87f5d366 33 (method url-fetch)
0db342a5 34 (uri (string-append "mirror://gnu/pth/pth-" version
d373e57e
LC
35 ".tar.gz"))
36 (sha256
37 (base32
38 "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj"))))
39 (build-system gnu-build-system)
223ed921 40 (arguments
10045e5c
EF
41 `(#:parallel-build? #f
42 #:configure-flags (list
43 ,@(if (string=? "aarch64-linux"
44 (%current-system))
45 '("--host=aarch64-unknown-linux-gnu")
46 '()))))
6fd52309 47 (home-page "https://www.gnu.org/software/pth/")
f50d2669 48 (synopsis "Portable thread library")
d373e57e 49 (description
79c311b8 50 "GNU Pth is a portable library providing non-preemptive, priority-based
a22dc0c4 51scheduling for multiple execution threads. Each thread has its own
c5779c93 52program-counter, run-time stack, signal mask and errno variable. Threads are
a22dc0c4
LC
53scheduled in a cooperative way, rather than in the standard preemptive way,
54such that they are managed according to priority and events. However, Pth
79c311b8 55also features emulation of POSIX.1c threads (\"pthreads\") for backwards
a22dc0c4 56compatibility.")
4a44e743 57 (license lgpl2.1+)))