[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: Add libxlsxwriter.
From: |
guix-commits |
Subject: |
02/06: gnu: Add libxlsxwriter. |
Date: |
Mon, 29 Mar 2021 05:57:36 -0400 (EDT) |
glv pushed a commit to branch master
in repository guix.
commit 5d32fa526d9d054f21fa3a40b7cb3e3cf468e4b9
Author: Felix Gruber <felgru@posteo.net>
AuthorDate: Sun Mar 28 10:40:19 2021 +0200
gnu: Add libxlsxwriter.
* gnu/packages/xml.scm (libxlsxwriter): New variable.
Co-authored-by: Guillaume Le Vaillant <glv@posteo.net>
---
gnu/packages/xml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index defc032..130fe45 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -29,6 +29,8 @@
;;; Copyright © 2021 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Julien Lepiller <julien@lepiller.eu>
+;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -77,6 +79,7 @@
#:use-module (guix build-system meson)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
+ #:use-module (guix utils)
#:use-module (gnu packages linux)
#:use-module (gnu packages pkg-config))
@@ -215,6 +218,49 @@ hierarchical form with variable field lengths.")
project (but it is usable outside of the Gnome platform).")
(license license:x11)))
+(define-public libxlsxwriter
+ (package
+ (name "libxlsxwriter")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jmcnamara/libxlsxwriter")
+ (commit (string-append "RELEASE_" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "070pfqggia71z4ichr5yrwfndfz903z941ns72vy0lvb1mpp7g05"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Remove bundled minizip source
+ '(begin
+ (delete-file-recursively "third_party/minizip")
+ #t))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:test-target "test"
+ #:make-flags
+ (list (string-append "CC=" ,(cc-for-target))
+ (string-append "PREFIX=" (assoc-ref %outputs "out"))
+ "USE_STANDARD_TMPFILE=1"
+ "USE_SYSTEM_MINIZIP=1")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)))) ; no configure script
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (inputs
+ `(("minizip" ,minizip)))
+ (home-page "https://github.com/jmcnamara/libxlsxwriter")
+ (synopsis "C library for creating Excel XLSX files")
+ (description
+ "Libxlsxwriter is a C library that can be used to write text, numbers,
+formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
+ (license (list license:bsd-2
+ license:public-domain)))) ; third_party/md5
+
;; This is the latest stable release.
(define-public libxmlplusplus
(package
- branch master updated (fba2fa7 -> 46884fc4), guix-commits, 2021/03/29
- 01/06: gnu: libspatialite: Update dependencies., guix-commits, 2021/03/29
- 02/06: gnu: Add libxlsxwriter.,
guix-commits <=
- 03/06: licenses: Add Free Art License 1.3., guix-commits, 2021/03/29
- 04/06: gnu: Add librasterlite2., guix-commits, 2021/03/29
- 05/06: gnu: spatialite-gui: Update to 2.1.0-beta1., guix-commits, 2021/03/29
- 06/06: gnu: libgaiagraphics: Remove package., guix-commits, 2021/03/29