gnu: cat-avatar-generator: Update to 1-1.9360ea3.
* gnu/packages/web.scm (cat-avatar-generator): Update to 1-1.9360ea3. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
8e3dfb3d6d
commit
076fa659ef
1 changed files with 38 additions and 36 deletions
|
@ -7648,47 +7648,49 @@ features include:
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public cat-avatar-generator
|
(define-public cat-avatar-generator
|
||||||
(package
|
(let ((commit "9360ea33f79d1dad3e43494b09878b5e3f6b41fa")
|
||||||
(name "cat-avatar-generator")
|
(revision "1"))
|
||||||
(version "1")
|
(package
|
||||||
(source (origin
|
(name "cat-avatar-generator")
|
||||||
(method git-fetch)
|
(version (git-version "1" revision commit))
|
||||||
(uri (git-reference
|
(source (origin
|
||||||
(url "https://framagit.org/Deevad/cat-avatar-generator.git")
|
(method git-fetch)
|
||||||
(commit "71c0c662742cafe8afd2d2d50ec84243113e35ad")))
|
(uri (git-reference
|
||||||
(file-name (string-append name "-" version))
|
(url "https://framagit.org/Deevad/cat-avatar-generator.git")
|
||||||
(sha256
|
(commit commit)))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"0s7b5whqsmfa57prbgl66ym551kg6ly0z14h5dgrlx4lqm70y2yw"))))
|
(sha256
|
||||||
(build-system trivial-build-system)
|
(base32
|
||||||
(arguments
|
"0js4grqzsm4gvmcbmxv7zw4samfzi6nk4mn977ddcvla9g222rkm"))))
|
||||||
`(#:modules ((guix build utils))
|
(build-system trivial-build-system)
|
||||||
#:builder
|
(arguments
|
||||||
(begin
|
`(#:modules ((guix build utils))
|
||||||
(use-modules (guix build utils)
|
#:builder
|
||||||
(srfi srfi-1)
|
(begin
|
||||||
(srfi srfi-26))
|
(use-modules (guix build utils)
|
||||||
|
(srfi srfi-1)
|
||||||
(let ((source (assoc-ref %build-inputs "source"))
|
(srfi srfi-26))
|
||||||
(php-dir (string-append %output "/share/web/" ,name "/")))
|
(let ((source (assoc-ref %build-inputs "source"))
|
||||||
;; The cache directory must not be in the store, but in a writable
|
(php-dir (string-append %output "/share/web/" ,name)))
|
||||||
;; location. The webserver will give us this location.
|
(install-file (string-append source "/cat-avatar-generator.php") php-dir)
|
||||||
(copy-recursively source php-dir)
|
(copy-recursively (string-append source "/avatars") (string-append php-dir "/avatars"))
|
||||||
(substitute* (string-append php-dir "/cat-avatar-generator.php")
|
;; The cache directory must not be in the store, but in a writable
|
||||||
(("\\$cachepath = .*")
|
;; location. The webserver will give us this location.
|
||||||
"if(isset($_SERVER['CACHE_DIR']))
|
(substitute* (string-append php-dir "/cat-avatar-generator.php")
|
||||||
|
(("\\$cachepath = .*")
|
||||||
|
"if(isset($_SERVER['CACHE_DIR']))
|
||||||
$cachepath = $_SERVER['CACHE_DIR'];
|
$cachepath = $_SERVER['CACHE_DIR'];
|
||||||
else
|
else
|
||||||
die('You need to set the CACHE_DIR variable first.');"))
|
die('You need to set the CACHE_DIR variable first.');"))
|
||||||
#t))))
|
#t))))
|
||||||
(home-page "https://framagit.org/Deevad/cat-avatar-generator")
|
(home-page "https://framagit.org/Deevad/cat-avatar-generator")
|
||||||
(synopsis "Random avatar generator")
|
(synopsis "Random avatar generator")
|
||||||
(description "Cat avatar generator is a generator of cat pictures optimised
|
(description "Cat avatar generator is a generator of cat pictures optimised
|
||||||
to generate random avatars, or defined avatar from a \"seed\". This is a
|
to generate random avatars, or defined avatar from a \"seed\". This is a
|
||||||
derivation by David Revoy from the original MonsterID by Andreas Gohr.")
|
derivation by David Revoy from the original MonsterID by Andreas Gohr.")
|
||||||
;; expat for the code, CC-BY 4.0 for the artwork
|
;; expat for the code, CC-BY 4.0 for the artwork
|
||||||
(license (list license:expat
|
(license (list license:expat
|
||||||
license:cc-by4.0))))
|
license:cc-by4.0)))))
|
||||||
|
|
||||||
(define-public nghttp2
|
(define-public nghttp2
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue