gnu: artanis: Unbundled guile-json and version according to documentation.
* gnu/packages/guile.scm (artanis): Unbundled guile-json and version according to documentation. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
9081a776ea
commit
12235a124f
|
@ -7,7 +7,7 @@
|
||||||
;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
|
;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
|
||||||
;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
|
;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
|
||||||
;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
|
;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
|
||||||
;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
|
;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
|
||||||
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
|
;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
|
||||||
|
@ -384,19 +384,45 @@ program can be installed in one go.")
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
(define-public artanis
|
(define-public artanis
|
||||||
|
(let ((release "0.2.1")
|
||||||
|
(revision 3))
|
||||||
(package
|
(package
|
||||||
(name "artanis")
|
(name "artanis")
|
||||||
(version "0.2.1")
|
(version (if (zero? revision)
|
||||||
|
release
|
||||||
|
(string-append release "-"
|
||||||
|
(number->string revision))))
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnu/artanis/artanis-"
|
(uri (string-append "mirror://gnu/artanis/artanis-"
|
||||||
version ".tar.gz"))
|
release ".tar.gz"))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"041ajcg2pz918kd9iqcj4inpzddc3impvz3r2nhlpbv8zrz011hn"))))
|
"041ajcg2pz918kd9iqcj4inpzddc3impvz3r2nhlpbv8zrz011hn"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively "artanis/third-party/json.scm")
|
||||||
|
(delete-file-recursively "artanis/third-party/json")
|
||||||
|
(substitute* '("artanis/artanis.scm"
|
||||||
|
"artanis/oht.scm")
|
||||||
|
(("(#:use-module \\()artanis third-party (json\\))" _
|
||||||
|
use-module json)
|
||||||
|
(string-append use-module json)))
|
||||||
|
(substitute* "artanis/oht.scm"
|
||||||
|
(("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
|
||||||
|
_ pre json-string post)
|
||||||
|
(string-append pre
|
||||||
|
"scm" json-string
|
||||||
|
post)))
|
||||||
|
(substitute* "artanis/artanis.scm"
|
||||||
|
(("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
|
||||||
|
""))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
;; TODO: Add guile-dbi and guile-dbd optional dependencies.
|
;; TODO: Add guile-dbi and guile-dbd optional dependencies.
|
||||||
(inputs `(("guile" ,guile-2.2)))
|
(inputs `(("guile" ,guile-2.2)
|
||||||
|
("guile-json" ,guile-json)))
|
||||||
(native-inputs `(("bash" ,bash) ;for the `source' builtin
|
(native-inputs `(("bash" ,bash) ;for the `source' builtin
|
||||||
("pkgconfig" ,pkg-config)
|
("pkgconfig" ,pkg-config)
|
||||||
("util-linux" ,util-linux))) ;for the `script' command
|
("util-linux" ,util-linux))) ;for the `script' command
|
||||||
|
@ -441,7 +467,7 @@ provides several tools for web development: database access, templating
|
||||||
frameworks, session management, URL-remapping for RESTful, page caching, and
|
frameworks, session management, URL-remapping for RESTful, page caching, and
|
||||||
more.")
|
more.")
|
||||||
(home-page "https://www.gnu.org/software/artanis/")
|
(home-page "https://www.gnu.org/software/artanis/")
|
||||||
(license (list license:gpl3+ license:lgpl3+)))) ;dual license
|
(license (list license:gpl3+ license:lgpl3+))))) ;dual license
|
||||||
|
|
||||||
(define-public guile-reader
|
(define-public guile-reader
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue