Commit | Line | Data |
---|---|---|
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> |
d373e57e | 4 | ;;; |
233e7676 | 5 | ;;; This file is part of GNU Guix. |
d373e57e | 6 | ;;; |
233e7676 | 7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
d373e57e LC |
8 | ;;; under the terms of the GNU General Public License as published by |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
233e7676 | 12 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
d373e57e LC |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
d373e57e | 19 | |
1ffa7090 | 20 | (define-module (gnu packages pth) |
4a44e743 | 21 | #:use-module (guix licenses) |
d373e57e | 22 | #:use-module (guix packages) |
87f5d366 | 23 | #:use-module (guix download) |
d373e57e LC |
24 | #:use-module (guix build-system gnu)) |
25 | ||
26 | (define-public pth | |
27 | (package | |
28 | (name "pth") | |
29 | (version "2.0.7") | |
30 | (source | |
31 | (origin | |
87f5d366 | 32 | (method url-fetch) |
0db342a5 | 33 | (uri (string-append "mirror://gnu/pth/pth-" version |
d373e57e LC |
34 | ".tar.gz")) |
35 | (sha256 | |
36 | (base32 | |
37 | "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj")))) | |
38 | (build-system gnu-build-system) | |
223ed921 | 39 | (arguments |
9b1bf330 | 40 | '(#:parallel-build? #f)) |
d373e57e | 41 | (home-page "http://www.gnu.org/software/pth") |
f50d2669 | 42 | (synopsis "Portable thread library") |
d373e57e | 43 | (description |
79c311b8 | 44 | "GNU Pth is a portable library providing non-preemptive, priority-based |
a22dc0c4 | 45 | scheduling for multiple execution threads. Each thread has its own |
c5779c93 | 46 | program-counter, run-time stack, signal mask and errno variable. Threads are |
a22dc0c4 LC |
47 | scheduled in a cooperative way, rather than in the standard preemptive way, |
48 | such that they are managed according to priority and events. However, Pth | |
79c311b8 | 49 | also features emulation of POSIX.1c threads (\"pthreads\") for backwards |
a22dc0c4 | 50 | compatibility.") |
4a44e743 | 51 | (license lgpl2.1+))) |