diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-13 13:28:40 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-13 13:54:58 +0100 |
| commit | 6b97d643890b79db511582e1b76dee70ca486920 (patch) | |
| tree | f3e6c090ee3ddeea7eb1cd05ffc08f67601e2183 /gnu | |
| parent | a89b4cdebbebab8bf829b614a16b24b587b626bb (diff) | |
gnu: asymptote: Sort alphabetically.
* gnu/packages/plotutils.scm (asymptote): Sort alphabetically.
Change-Id: I26c8b7e1fd5d83e95bd19387492dd40ec87231ca
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/plotutils.scm | 302 |
1 files changed, 151 insertions, 151 deletions
diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm index 9ce4bde5828..a4d0f9156be 100644 --- a/gnu/packages/plotutils.scm +++ b/gnu/packages/plotutils.scm | |||
| @@ -61,6 +61,157 @@ | |||
| 61 | #:use-module (gnu packages web) | 61 | #:use-module (gnu packages web) |
| 62 | #:use-module (gnu packages xorg)) | 62 | #:use-module (gnu packages xorg)) |
| 63 | 63 | ||
| 64 | (define-public asymptote | ||
| 65 | (package | ||
| 66 | (name "asymptote") | ||
| 67 | (version "2.89") | ||
| 68 | (source | ||
| 69 | (origin | ||
| 70 | (method url-fetch) | ||
| 71 | (uri (string-append "mirror://sourceforge/asymptote/" | ||
| 72 | version "/asymptote-" version ".src.tgz")) | ||
| 73 | (sha256 | ||
| 74 | (base32 "0nvzlnabxjn74ybv3jns9vsr33prlvlg3i20hskz31agxss64kpn")) | ||
| 75 | (modules '((guix build utils))) | ||
| 76 | (snippet | ||
| 77 | ;; Remove bundled RapidJSON. | ||
| 78 | #~(begin | ||
| 79 | (delete-file-recursively "LspCpp/third_party/rapidjson"))))) | ||
| 80 | (build-system gnu-build-system) | ||
| 81 | ;; Note: The 'asy' binary retains a reference to docdir for use with its | ||
| 82 | ;; "help" command in interactive mode, so adding a "doc" output is not | ||
| 83 | ;; currently useful. | ||
| 84 | (native-inputs | ||
| 85 | (list autoconf | ||
| 86 | automake | ||
| 87 | bison | ||
| 88 | boost | ||
| 89 | cmake | ||
| 90 | emacs-minimal | ||
| 91 | flex | ||
| 92 | ghostscript ;for tests | ||
| 93 | perl | ||
| 94 | pkg-config | ||
| 95 | rapidjson | ||
| 96 | texinfo ;for generating documentation | ||
| 97 | (texlive-updmap.cfg | ||
| 98 | (list texlive-epsf | ||
| 99 | texlive-etoolbox | ||
| 100 | texlive-hypdoc | ||
| 101 | texlive-infwarerr | ||
| 102 | texlive-kvdefinekeys | ||
| 103 | texlive-kvoptions | ||
| 104 | texlive-media9 | ||
| 105 | texlive-ocgx2 | ||
| 106 | texlive-parskip | ||
| 107 | texlive-pdftexcmds | ||
| 108 | texlive-texinfo)))) | ||
| 109 | (inputs | ||
| 110 | (list bash-minimal | ||
| 111 | eigen | ||
| 112 | fftw | ||
| 113 | freeglut | ||
| 114 | glew | ||
| 115 | glm | ||
| 116 | gsl | ||
| 117 | libgc | ||
| 118 | libtirpc | ||
| 119 | python | ||
| 120 | python-cson | ||
| 121 | python-numpy | ||
| 122 | python-pyqt | ||
| 123 | readline | ||
| 124 | zlib)) | ||
| 125 | (arguments | ||
| 126 | (list | ||
| 127 | #:modules '((guix build emacs-utils) | ||
| 128 | (guix build gnu-build-system) | ||
| 129 | (guix build utils) | ||
| 130 | (srfi srfi-26)) | ||
| 131 | #:imported-modules `(,@%gnu-build-system-modules | ||
| 132 | (guix build emacs-utils)) | ||
| 133 | #:configure-flags | ||
| 134 | #~(list (string-append "--enable-gc=" #$(this-package-input "libgc")) | ||
| 135 | (string-append "--with-latex=" #$output "/share/texmf/tex/latex") | ||
| 136 | (string-append "--with-context=" | ||
| 137 | #$output | ||
| 138 | "/share/texmf/tex/context/third")) | ||
| 139 | #:phases | ||
| 140 | #~(modify-phases %standard-phases | ||
| 141 | (add-after 'unpack 'locate-tirpc | ||
| 142 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 143 | (substitute* (list "configure.ac") | ||
| 144 | (("/usr/include/tirpc") | ||
| 145 | (search-input-directory inputs "include/tirpc"))))) | ||
| 146 | (add-after 'unpack 'unbundle-rapidjson | ||
| 147 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 148 | (substitute* (list "Makefile.in") | ||
| 149 | (("\\$\\(CMAKE\\)" all) | ||
| 150 | (string-append all " -DUSE_SYSTEM_RAPIDJSON=ON"))))) | ||
| 151 | (add-after 'unpack 'fix-includes | ||
| 152 | (lambda _ | ||
| 153 | (substitute* (find-files "." "\\.in$") | ||
| 154 | (("#include <primitives.h>") "#include \"primitives.h\"")) | ||
| 155 | (substitute* (find-files "prc" "\\.h$") | ||
| 156 | (("#include \"config.h\"") "#include \"../config.h\"")) | ||
| 157 | (substitute* "prc/oPRCFile.h" | ||
| 158 | (("#include \"xstream.h\"") "#include \"../xstream.h\"")) | ||
| 159 | (substitute* "v3dfile.h" | ||
| 160 | (("#include <prc/oPRCFile.h>") "#include \"prc/oPRCFile.h\"")) | ||
| 161 | (substitute* "LspCpp/src/lsp/ParentProcessWatcher.cpp" | ||
| 162 | (("#include <boost/process.hpp>" all) | ||
| 163 | (string-append "#include <algorithm>\n" all))))) | ||
| 164 | (replace 'bootstrap | ||
| 165 | (lambda _ | ||
| 166 | (invoke "autoreconf" "-vfi"))) | ||
| 167 | (add-after 'unpack 'move-info-location | ||
| 168 | ;; Build process installs info file in the unusual | ||
| 169 | ;; "%out/share/info/asymptote/" location. Move it to | ||
| 170 | ;; "%out/share/info/" so it appears in the top-level directory. | ||
| 171 | (lambda _ | ||
| 172 | (substitute* "doc/png/Makefile.in" | ||
| 173 | (("(\\$\\(infodir\\))/asymptote" _ infodir) infodir)) | ||
| 174 | (substitute* "doc/asymptote.texi" | ||
| 175 | (("asymptote/asymptote") "asymptote")))) | ||
| 176 | (add-before 'build 'patch-pdf-viewer | ||
| 177 | (lambda _ | ||
| 178 | ;; Default to a free pdf viewer. | ||
| 179 | (substitute* "settings.cc" | ||
| 180 | (("defaultPDFViewer=\"acroread\"") | ||
| 181 | "defaultPDFViewer=\"gv\"")))) | ||
| 182 | (add-before 'check 'set-HOME | ||
| 183 | ;; Some tests require write access to $HOME, otherwise leading to | ||
| 184 | ;; "failed to create directory /homeless-shelter/.asy" error. | ||
| 185 | (lambda _ | ||
| 186 | (setenv "HOME" "/tmp"))) | ||
| 187 | (add-after 'install 'install-Emacs-data | ||
| 188 | (lambda _ | ||
| 189 | ;; Install related Emacs libraries into an appropriate location. | ||
| 190 | (let ((lisp-dir | ||
| 191 | (string-append #$output "/share/emacs/site-lisp"))) | ||
| 192 | (for-each (cut install-file <> lisp-dir) | ||
| 193 | (find-files "." "\\.el$")) | ||
| 194 | (emacs-generate-autoloads #$name lisp-dir)))) | ||
| 195 | (add-after 'install-Emacs-data 'wrap-python-script | ||
| 196 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 197 | ;; Make sure 'xasy' runs with the correct PYTHONPATH. | ||
| 198 | (let ((path (getenv "GUIX_PYTHONPATH"))) | ||
| 199 | (wrap-program | ||
| 200 | (string-append #$output "/share/asymptote/GUI/xasy.py") | ||
| 201 | `("GUIX_PYTHONPATH" ":" prefix (,path))))))))) | ||
| 202 | (home-page "https://asymptote.sourceforge.io") | ||
| 203 | (synopsis "Script-based vector graphics language") | ||
| 204 | (description | ||
| 205 | "Asymptote is a powerful descriptive vector graphics language for | ||
| 206 | technical drawing, inspired by MetaPost but with an improved C++-like syntax. | ||
| 207 | Asymptote provides for figures the same high-quality level of typesetting that | ||
| 208 | LaTeX does for scientific text.") | ||
| 209 | ;; Most source files do not contain license statements, but the README | ||
| 210 | ;; contains: "All source files in the Asymptote project, unless explicitly | ||
| 211 | ;; noted otherwise, are released under version 3 (or later) of the GNU | ||
| 212 | ;; Lesser General Public License" | ||
| 213 | (license license:lgpl3+))) | ||
| 214 | |||
| 64 | (define-public plotutils | 215 | (define-public plotutils |
| 65 | (package | 216 | (package |
| 66 | (name "plotutils") | 217 | (name "plotutils") |
| @@ -273,157 +424,6 @@ basic statistical capabilities. It allows significant user control over | |||
| 273 | colors, styles, options and details.") | 424 | colors, styles, options and details.") |
| 274 | (license license:gpl2+))) | 425 | (license license:gpl2+))) |
| 275 | 426 | ||
| 276 | (define-public asymptote | ||
| 277 | (package | ||
| 278 | (name "asymptote") | ||
| 279 | (version "2.89") | ||
| 280 | (source | ||
| 281 | (origin | ||
| 282 | (method url-fetch) | ||
| 283 | (uri (string-append "mirror://sourceforge/asymptote/" | ||
| 284 | version "/asymptote-" version ".src.tgz")) | ||
| 285 | (sha256 | ||
| 286 | (base32 "0nvzlnabxjn74ybv3jns9vsr33prlvlg3i20hskz31agxss64kpn")) | ||
| 287 | (modules '((guix build utils))) | ||
| 288 | (snippet | ||
| 289 | ;; Remove bundled RapidJSON. | ||
| 290 | #~(begin | ||
| 291 | (delete-file-recursively "LspCpp/third_party/rapidjson"))))) | ||
| 292 | (build-system gnu-build-system) | ||
| 293 | ;; Note: The 'asy' binary retains a reference to docdir for use with its | ||
| 294 | ;; "help" command in interactive mode, so adding a "doc" output is not | ||
| 295 | ;; currently useful. | ||
| 296 | (native-inputs | ||
| 297 | (list autoconf | ||
| 298 | automake | ||
| 299 | bison | ||
| 300 | boost | ||
| 301 | cmake | ||
| 302 | emacs-minimal | ||
| 303 | flex | ||
| 304 | ghostscript ;for tests | ||
| 305 | perl | ||
| 306 | pkg-config | ||
| 307 | rapidjson | ||
| 308 | texinfo ;for generating documentation | ||
| 309 | (texlive-updmap.cfg | ||
| 310 | (list texlive-epsf | ||
| 311 | texlive-etoolbox | ||
| 312 | texlive-hypdoc | ||
| 313 | texlive-infwarerr | ||
| 314 | texlive-kvdefinekeys | ||
| 315 | texlive-kvoptions | ||
| 316 | texlive-media9 | ||
| 317 | texlive-ocgx2 | ||
| 318 | texlive-parskip | ||
| 319 | texlive-pdftexcmds | ||
| 320 | texlive-texinfo)))) | ||
| 321 | (inputs | ||
| 322 | (list bash-minimal | ||
| 323 | eigen | ||
| 324 | fftw | ||
| 325 | freeglut | ||
| 326 | glew | ||
| 327 | glm | ||
| 328 | gsl | ||
| 329 | libgc | ||
| 330 | libtirpc | ||
| 331 | python | ||
| 332 | python-cson | ||
| 333 | python-numpy | ||
| 334 | python-pyqt | ||
| 335 | readline | ||
| 336 | zlib)) | ||
| 337 | (arguments | ||
| 338 | (list | ||
| 339 | #:modules '((guix build emacs-utils) | ||
| 340 | (guix build gnu-build-system) | ||
| 341 | (guix build utils) | ||
| 342 | (srfi srfi-26)) | ||
| 343 | #:imported-modules `(,@%gnu-build-system-modules | ||
| 344 | (guix build emacs-utils)) | ||
| 345 | #:configure-flags | ||
| 346 | #~(list (string-append "--enable-gc=" #$(this-package-input "libgc")) | ||
| 347 | (string-append "--with-latex=" #$output "/share/texmf/tex/latex") | ||
| 348 | (string-append "--with-context=" | ||
| 349 | #$output | ||
| 350 | "/share/texmf/tex/context/third")) | ||
| 351 | #:phases | ||
| 352 | #~(modify-phases %standard-phases | ||
| 353 | (add-after 'unpack 'locate-tirpc | ||
| 354 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 355 | (substitute* (list "configure.ac") | ||
| 356 | (("/usr/include/tirpc") | ||
| 357 | (search-input-directory inputs "include/tirpc"))))) | ||
| 358 | (add-after 'unpack 'unbundle-rapidjson | ||
| 359 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 360 | (substitute* (list "Makefile.in") | ||
| 361 | (("\\$\\(CMAKE\\)" all) | ||
| 362 | (string-append all " -DUSE_SYSTEM_RAPIDJSON=ON"))))) | ||
| 363 | (add-after 'unpack 'fix-includes | ||
| 364 | (lambda _ | ||
| 365 | (substitute* (find-files "." "\\.in$") | ||
| 366 | (("#include <primitives.h>") "#include \"primitives.h\"")) | ||
| 367 | (substitute* (find-files "prc" "\\.h$") | ||
| 368 | (("#include \"config.h\"") "#include \"../config.h\"")) | ||
| 369 | (substitute* "prc/oPRCFile.h" | ||
| 370 | (("#include \"xstream.h\"") "#include \"../xstream.h\"")) | ||
| 371 | (substitute* "v3dfile.h" | ||
| 372 | (("#include <prc/oPRCFile.h>") "#include \"prc/oPRCFile.h\"")) | ||
| 373 | (substitute* "LspCpp/src/lsp/ParentProcessWatcher.cpp" | ||
| 374 | (("#include <boost/process.hpp>" all) | ||
| 375 | (string-append "#include <algorithm>\n" all))))) | ||
| 376 | (replace 'bootstrap | ||
| 377 | (lambda _ | ||
| 378 | (invoke "autoreconf" "-vfi"))) | ||
| 379 | (add-after 'unpack 'move-info-location | ||
| 380 | ;; Build process installs info file in the unusual | ||
| 381 | ;; "%out/share/info/asymptote/" location. Move it to | ||
| 382 | ;; "%out/share/info/" so it appears in the top-level directory. | ||
| 383 | (lambda _ | ||
| 384 | (substitute* "doc/png/Makefile.in" | ||
| 385 | (("(\\$\\(infodir\\))/asymptote" _ infodir) infodir)) | ||
| 386 | (substitute* "doc/asymptote.texi" | ||
| 387 | (("asymptote/asymptote") "asymptote")))) | ||
| 388 | (add-before 'build 'patch-pdf-viewer | ||
| 389 | (lambda _ | ||
| 390 | ;; Default to a free pdf viewer. | ||
| 391 | (substitute* "settings.cc" | ||
| 392 | (("defaultPDFViewer=\"acroread\"") | ||
| 393 | "defaultPDFViewer=\"gv\"")))) | ||
| 394 | (add-before 'check 'set-HOME | ||
| 395 | ;; Some tests require write access to $HOME, otherwise leading to | ||
| 396 | ;; "failed to create directory /homeless-shelter/.asy" error. | ||
| 397 | (lambda _ | ||
| 398 | (setenv "HOME" "/tmp"))) | ||
| 399 | (add-after 'install 'install-Emacs-data | ||
| 400 | (lambda _ | ||
| 401 | ;; Install related Emacs libraries into an appropriate location. | ||
| 402 | (let ((lisp-dir | ||
| 403 | (string-append #$output "/share/emacs/site-lisp"))) | ||
| 404 | (for-each (cut install-file <> lisp-dir) | ||
| 405 | (find-files "." "\\.el$")) | ||
| 406 | (emacs-generate-autoloads #$name lisp-dir)))) | ||
| 407 | (add-after 'install-Emacs-data 'wrap-python-script | ||
| 408 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 409 | ;; Make sure 'xasy' runs with the correct PYTHONPATH. | ||
| 410 | (let ((path (getenv "GUIX_PYTHONPATH"))) | ||
| 411 | (wrap-program | ||
| 412 | (string-append #$output "/share/asymptote/GUI/xasy.py") | ||
| 413 | `("GUIX_PYTHONPATH" ":" prefix (,path))))))))) | ||
| 414 | (home-page "https://asymptote.sourceforge.io") | ||
| 415 | (synopsis "Script-based vector graphics language") | ||
| 416 | (description | ||
| 417 | "Asymptote is a powerful descriptive vector graphics language for | ||
| 418 | technical drawing, inspired by MetaPost but with an improved C++-like syntax. | ||
| 419 | Asymptote provides for figures the same high-quality level of typesetting that | ||
| 420 | LaTeX does for scientific text.") | ||
| 421 | ;; Most source files do not contain license statements, but the README | ||
| 422 | ;; contains: "All source files in the Asymptote project, unless explicitly | ||
| 423 | ;; noted otherwise, are released under version 3 (or later) of the GNU | ||
| 424 | ;; Lesser General Public License" | ||
| 425 | (license license:lgpl3+))) | ||
| 426 | |||
| 427 | (define-public ruby-unicode-plot | 427 | (define-public ruby-unicode-plot |
| 428 | (package | 428 | (package |
| 429 | (name "ruby-unicode-plot") | 429 | (name "ruby-unicode-plot") |
