| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages pth)
|
| 24 | #:use-module (gnu packages autotools)
|
| 25 | #:use-module (guix licenses)
|
| 26 | #:use-module (guix packages)
|
| 27 | #:use-module (guix download)
|
| 28 | #:use-module (guix build-system gnu))
|
| 29 |
|
| 30 | (define-public pth
|
| 31 | (package
|
| 32 | (name "pth")
|
| 33 | (version "2.0.7")
|
| 34 | (source
|
| 35 | (origin
|
| 36 | (method url-fetch)
|
| 37 | (uri (string-append "mirror://gnu/pth/pth-" version
|
| 38 | ".tar.gz"))
|
| 39 | (sha256
|
| 40 | (base32
|
| 41 | "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj"))))
|
| 42 | (build-system gnu-build-system)
|
| 43 | (arguments
|
| 44 | '(#:configure-flags
|
| 45 | '("CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types")
|
| 46 | #:parallel-build? #f
|
| 47 | #:phases
|
| 48 | (modify-phases %standard-phases
|
| 49 | (add-after 'unpack 'update-config-scripts
|
| 50 | (lambda* (#:key inputs native-inputs #:allow-other-keys)
|
| 51 | |
| 52 | (for-each (lambda (file)
|
| 53 | (install-file
|
| 54 | (search-input-file
|
| 55 | (or native-inputs inputs)
|
| 56 | (string-append "/bin/" file)) "."))
|
| 57 | '("config.guess" "config.sub")))))))
|
| 58 | (native-inputs
|
| 59 | (list config))
|
| 60 | (home-page "https://www.gnu.org/software/pth/")
|
| 61 | (synopsis "Portable thread library")
|
| 62 | (description
|
| 63 | "GNU Pth is a portable library providing non-preemptive, priority-based
|
| 64 | scheduling for multiple execution threads. Each thread has its own
|
| 65 | program-counter, run-time stack, signal mask and errno variable. Threads are
|
| 66 | scheduled in a cooperative way, rather than in the standard preemptive way,
|
| 67 | such that they are managed according to priority and events. However, Pth
|
| 68 | also features emulation of POSIX.1c threads (\"pthreads\") for backwards
|
| 69 | compatibility.")
|
| 70 | (license lgpl2.1+)))
|