[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: gnu: Add libite.
From: |
guix-commits |
Subject: |
01/03: gnu: Add libite. |
Date: |
Thu, 23 Dec 2021 12:13:34 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit 4ea4db5f8a3c863ceb19da90ff55d66b8a5648c7
Author: Petr Hodina <phodina@protonmail.com>
AuthorDate: Tue Dec 21 22:18:37 2021 +0100
gnu: Add libite.
* gnu/packages/linux.scm (libite): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/linux.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f008aa2..6f41a7f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -59,6 +59,7 @@
;;; Copyright © 2021 Josselin Poiret <josselin.poiret@protonmail.ch>
;;; Copyright © 2021 Olivier Dion <olivier.dion@polymtl.ca>
;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
+;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4865,6 +4866,43 @@ information, and set the CPU frequency if supported,
using the cpufreq
capabilities of the Linux kernel.")
(license license:gpl2)))
+(define-public libite
+ (package
+ (name "libite")
+ (version "2.5.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/troglobit/libite")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "14i0q0nxns6g4zh86zdqy97dwljkqdr5l85ammljzccsrijg9m8v"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; replace paths to the executables
+ (substitute* "test/which.c"
+ (("/usr/bin/which")
+ (search-input-file inputs "/bin/which"))
+ (("ls\"")
+ (string-append
+ (search-input-file inputs "/bin/ls") "\"")))
+ ;; create pidfile in /tmp instead of /var
+ (substitute* "test/pidfile.c" (("/var/tmp") "/tmp")))))))
+ (native-inputs (list autoconf automake libtool which))
+ (synopsis "Missing pieces in GNU libc")
+ (description "This package provides many of the missing pieces in GNU libc.
+Most notably the string functions: strlcpy(3), strlcat(3) and the highly
+useful *BSD sys/queue.h and sys/tree.h API's")
+ (home-page "https://troglobit.com/projects/libite/")
+ (license license:expat)))
+
(define-public libraw1394
(package
(name "libraw1394")