[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#35991] [PATCH 2/9] gnu: Add swap-bytes.
From: |
Pierre Neidhardt |
Subject: |
[bug#35991] [PATCH 2/9] gnu: Add swap-bytes. |
Date: |
Wed, 29 May 2019 16:07:26 +0200 |
* gnu/packages/lisp.scm (cl-swap-bytes, ecl-swap-bytes, sbcl-swap-bytes): New
variables.
---
gnu/packages/lisp.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 27a868c559..537150dd61 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -5350,3 +5350,39 @@ decoding routines for IDNA, the International Domain
Names in Applications.")
(define-public ecl-idna
(sbcl-package->ecl-package sbcl-idna))
+
+(define-public sbcl-swap-bytes
+ (package
+ (name "sbcl-swap-bytes")
+ (build-system asdf-build-system/sbcl)
+ (version "1.1")
+ (home-page "https://github.com/sionescu/swap-bytes")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1qysbv0jngdfkv53y874qjhcxc4qi8ixaqq6j8bzxh5z0931wv55"))))
+ (inputs
+ `(("trivial-features" ,sbcl-trivial-features)))
+ (native-inputs
+ `(("fiveam" ,sbcl-fiveam)))
+ (arguments
+ ;; TODO: Tests fail, why?
+ `(#:tests? #f))
+ (synopsis "Efficient endianness conversion for Common Lisp")
+ (description "This Common Lisp library provides optimized byte-swapping
+primitives. The library can change endianness of unsigned integers of length
+1/2/4/8. Very useful in implementing various network protocols and file
+formats.")
+ (license license:expat)))
+
+(define-public cl-swap-bytes
+ (sbcl-package->cl-source-package sbcl-swap-bytes))
+
+(define-public ecl-swap-bytes
+ (sbcl-package->ecl-package sbcl-swap-bytes))
--
2.21.0
- [bug#35982] [PATCH 8/9] gnu: Add sbcl-iolib., (continued)
- [bug#35982] [PATCH 8/9] gnu: Add sbcl-iolib., Pierre Neidhardt, 2019/05/29
- [bug#35983] [PATCH 7/9] gnu: Add sbcl-iolib.grovel., Pierre Neidhardt, 2019/05/29
- [bug#35986] [PATCH 4/9] gnu: Add sbcl-iolib.conf., Pierre Neidhardt, 2019/05/29
- [bug#35988] [PATCH 5/9] gnu: Add sbcl-iolib.common-lisp., Pierre Neidhardt, 2019/05/29
- [bug#35989] [PATCH 3/9] gnu: Add sbcl-iolib.asdf., Pierre Neidhardt, 2019/05/29
- [bug#35984] [PATCH 2/9] gnu: Add swap-bytes., Pierre Neidhardt, 2019/05/29
- [bug#35987] [PATCH 6/9] gnu: Add sbcl-iolib.base., Pierre Neidhardt, 2019/05/29
- [bug#35990] [PATCH 9/9] gnu: Add sbcl-dbus., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 1/9] gnu: Add idna., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 7/9] gnu: Add sbcl-iolib.grovel., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 2/9] gnu: Add swap-bytes.,
Pierre Neidhardt <=
- [bug#35991] [PATCH 4/9] gnu: Add sbcl-iolib.conf., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 6/9] gnu: Add sbcl-iolib.base., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 5/9] gnu: Add sbcl-iolib.common-lisp., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 8/9] gnu: Add sbcl-iolib., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 3/9] gnu: Add sbcl-iolib.asdf., Pierre Neidhardt, 2019/05/29
- [bug#35991] [PATCH 9/9] gnu: Add sbcl-dbus., Pierre Neidhardt, 2019/05/29