From: Ivan Gankevich <i.gankevich@spbu.ru>
To: 49443@debbugs.gnu.org
Cc: Ivan Gankevich <i.gankevich@spbu.ru>
Subject: [bug#49443] [PATCH] gnu: Add blitz.
Date: Wed, 14 Jul 2021 14:57:14 +0300 [thread overview]
Message-ID: <20210714115713.24675-1-i.gankevich@spbu.ru> (raw)
In-Reply-To: <20210706165607.31598-1-i.gankevich@spbu.ru>
* gnu/packages/maths.scm (blitz): New variable.
---
gnu/packages/maths.scm | 54 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index b4cf0b5409..eb92fb083a 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6440,3 +6440,57 @@ to source-code analysis of C software. The Frama-C analyzers assist you in
various source-code-related activities, from the navigation through unfamiliar
projects up to the certification of critical software.")
(license license:lgpl2.1+)))
+
+(define-public blitz
+ (package
+ (name "blitz")
+ (version "1.0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/blitzpp/blitz")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256 (base32 "0c88gc72j3zggyk4yrrip6i0v7xkx97l140vpy3xhxs2i7xy1461"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags
+ '("-DBUILD_DOC=ON"
+ "-DDISABLE_REFMAN_PDF=ON" ;; refman.pdf requires array-2016-10-06.sty
+ "-DBUILD_TESTING=ON")
+ ;; default "check" target also includes examples and benchmarks
+ #:test-target "check-testsuite"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-locations
+ (lambda _
+ ;; replace "texinfo.tex" location
+ (substitute* "doc/CMakeLists.txt"
+ (("/usr/share/texmf/tex/texinfo/")
+ (format #f "~a/share/texmf-dist/tex/texinfo/"
+ (assoc-ref %build-inputs "texlive-tex-texinfo"))))
+ #t))
+ (add-after 'build 'build-doc
+ (lambda _
+ (define jobs (format #f "-j~a" (parallel-job-count)))
+ (invoke "make" jobs "blitz-doc")
+ #t))
+ (add-after 'check 'check-examples
+ (lambda _
+ (define jobs (format #f "-j~a" (parallel-job-count)))
+ (invoke "make" jobs "check-examples")
+ #t)))))
+ (native-inputs
+ `(("python" ,python)
+ ("texinfo" ,texinfo)
+ ("texlive-tex-texinfo" ,texlive-tex-texinfo)
+ ("texlive" ,(texlive-union (list texlive-epsf))) ;; for texi2dvi
+ ("texi2html" ,texi2html)
+ ("doxygen" ,doxygen)
+ ("graphviz" ,graphviz)))
+ (synopsis "C++ template class library for multidimensional arrays")
+ (description
+ "High-performance multidimensional array containers for scientific computing.")
+ (home-page "https://github.com/blitzpp/blitz")
+ (license (list license:artistic2.0 license:bsd-3 license:lgpl3+))))
--
2.32.0
next prev parent reply other threads:[~2021-07-14 11:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-06 16:56 [bug#49443] [PATCH] Add blitz Ivan Gankevich
2021-07-13 17:46 ` Arun Isaac
2021-07-14 11:57 ` Ivan Gankevich [this message]
2021-07-15 13:39 ` [bug#49443] [PATCH v3 0/1] " Arun Isaac
2021-07-15 17:20 ` Ivan Gankevich
2021-07-16 4:40 ` bug#49443: " Arun Isaac
2021-07-15 13:39 ` [bug#49443] [PATCH v3 1/1] gnu: " Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210714115713.24675-1-i.gankevich@spbu.ru \
--to=i.gankevich@spbu.ru \
--cc=49443@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.