Archived
1
0
Fork 0

gnu: filters: Replace git commit with equivalent tag.

* gnu/packages/toys.scm (filters)[source]: Use tag.
This commit is contained in:
Tobias Geerinckx-Rice 2020-10-16 16:47:41 +02:00
parent 834ab06477
commit d7b83e2f8d
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -78,53 +78,51 @@ typing @command{sl} instead of @command{ls}.")
"See LICENSE in the distribution.")))) "See LICENSE in the distribution."))))
(define-public filters (define-public filters
(let ((version "2.55") (package
(commit "c5c291916b52ed9e6418448a8eee30475fb9adcf")) (name "filters")
(package (version "2.55")
(name "filters") (source
(version "2.55") (origin
(source (method git-fetch)
(origin (uri (git-reference
(method git-fetch) (url "https://git.joeyh.name/filters")
(uri (git-reference (commit version)))
(url "https://git.joeyh.name/filters") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32 "1gaigpda1w9wxfh8an3sam1hpacc1bhxl696w4yj0vzhc6izqvxs"))
(sha256 (modules '((guix build utils)))
(base32 "1gaigpda1w9wxfh8an3sam1hpacc1bhxl696w4yj0vzhc6izqvxs")) (snippet '(begin
(modules '((guix build utils))) ;; kenny is under nonfree Artistic License (Perl) 1.0.
(snippet '(begin (delete-file "kenny")
;; kenny is under nonfree Artistic License (Perl) 1.0. (substitute* "Makefile"
(delete-file "kenny") (("kenny")
(substitute* "Makefile" ""))))))
(("kenny") (build-system gnu-build-system)
"")))))) (arguments
(build-system gnu-build-system) `(#:make-flags
(arguments (list (string-append "CC=" ,(cc-for-target))
`(#:make-flags (string-append "DESTDIR=" %output))
(list (string-append "CC=" ,(cc-for-target)) #:phases
(string-append "DESTDIR=" %output)) (modify-phases %standard-phases
#:phases (delete 'configure)
(modify-phases %standard-phases (add-after 'unpack 'fix-install-directories
(delete 'configure) (lambda _
(add-after 'unpack 'fix-install-directories (substitute* "Makefile"
(lambda _ (("/usr/games")
(substitute* "Makefile" "/bin/")
(("/usr/games") (("/usr/share/")
"/bin/") "/share/"))
(("/usr/share/") #t)))
"/share/")) #:tests? #f)) ; no test suite
#t))) (native-inputs
#:tests? #f)) ; no test suite `(("bison" ,bison)
(native-inputs ("flex" ,flex)))
`(("bison" ,bison) (inputs
("flex" ,flex))) `(("perl" ,perl)))
(inputs (home-page "https://joeyh.name/code/filters/")
`(("perl" ,perl))) (synopsis "Various amusing text filters")
(home-page "https://joeyh.name/code/filters/") (description
(synopsis "Various amusing text filters") "The filters collection harks back to the late 1980s, when various text
(description
"The filters collection harks back to the late 1980s, when various text
filters were written to munge written language in amusing ways. The earliest filters were written to munge written language in amusing ways. The earliest
and best known were legends such as the Swedish Chef filter and B1FF. and best known were legends such as the Swedish Chef filter and B1FF.
@ -158,13 +156,13 @@ This package contains the following filter commands:
@end enumerate @end enumerate
The GNU project hosts a similar collection of filters, the GNU talkfilters.") The GNU project hosts a similar collection of filters, the GNU talkfilters.")
(license ; see debian/copyright (license ; see debian/copyright
(list license:gpl2+ ; most of the filters (list license:gpl2+ ; most of the filters
license:gpl2 ; rasterman, ky00te.dir/* nethackify, pirate license:gpl2 ; rasterman, ky00te.dir/* nethackify, pirate
license:gpl3+ ; scramble, scottish license:gpl3+ ; scramble, scottish
license:public-domain ; jethro, kraut, ken, studly license:public-domain ; jethro, kraut, ken, studly
license:gpl1+ ; cockney, jive, nyc only say "gpl" license:gpl1+ ; cockney, jive, nyc only say "gpl"
license:expat))))) ; newspeak license:expat)))) ; newspeak
(define-public xsnow (define-public xsnow
(package (package