mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-wraparound-wrap: Improve style.
* gnu/packages/golang.scm (go-github-com-wraparound-wrap): Re-indent and move all propagated inputs to native. [arguments] <install-source?>: It's a final CLI command. <import-path>: Set to the source of command. <unpack-path>: Provide it. <phases>: Use default 'build. [propagated-inputs]: Remove go-github-com-spf13-cobra, go-github-com-signintech-gopdf, and go-github-com-flopp-go-findfont. [native-inputs]: Add go-github-com-spf13-cobra, go-github-com-signintech-gopdf, and go-github-com-flopp-go-findfont. [description]: Apply fill column. Change-Id: I80d470a77e49ff5004a9eb1417123e09efde024f
This commit is contained in:
parent
4bf8855a50
commit
eebacdfc8a
1 changed files with 23 additions and 24 deletions
|
@ -1581,29 +1581,25 @@ TrueType font files in your system's user and system font directories.")
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-wraparound-wrap")
|
(name "go-github-com-wraparound-wrap")
|
||||||
(version "0.3.1")
|
(version "0.3.1")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/Wraparound/wrap")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/Wraparound/wrap")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"0scf7v83p40r9k7k5v41rwiy9yyanfv3jm6jxs9bspxpywgjrk77"))
|
(base32 "0scf7v83p40r9k7k5v41rwiy9yyanfv3jm6jxs9bspxpywgjrk77"))
|
||||||
(patches (search-patches
|
(patches (search-patches
|
||||||
"go-github-com-wraparound-wrap-free-fonts.patch"))))
|
"go-github-com-wraparound-wrap-free-fonts.patch"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/Wraparound/wrap/"
|
#:install-source? #f
|
||||||
#:tests? #f ; no tests
|
#:import-path "github.com/Wraparound/wrap/cmd/wrap"
|
||||||
|
#:unpack-path "github.com/Wraparound/wrap"
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'build
|
|
||||||
(lambda* (#:key import-path #:allow-other-keys)
|
|
||||||
(invoke "go" "install" "-v" "-x"
|
|
||||||
"-ldflags=-s -w"
|
|
||||||
(string-append import-path "cmd/wrap"))))
|
|
||||||
(add-after 'install 'wrap-fonts
|
(add-after 'install 'wrap-fonts
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(for-each
|
(for-each
|
||||||
|
@ -1615,15 +1611,18 @@ TrueType font files in your system's user and system font directories.")
|
||||||
(map cdr inputs))))))
|
(map cdr inputs))))))
|
||||||
(find-files (string-append (assoc-ref outputs "out")
|
(find-files (string-append (assoc-ref outputs "out")
|
||||||
"/bin"))))))))
|
"/bin"))))))))
|
||||||
(propagated-inputs (list go-github-com-spf13-cobra
|
(native-inputs
|
||||||
go-github-com-signintech-gopdf
|
(list go-github-com-spf13-cobra
|
||||||
go-github-com-flopp-go-findfont))
|
go-github-com-signintech-gopdf
|
||||||
(inputs (list font-liberation font-gnu-freefont))
|
go-github-com-flopp-go-findfont))
|
||||||
|
(inputs
|
||||||
|
(list font-liberation
|
||||||
|
font-gnu-freefont))
|
||||||
(home-page "https://github.com/Wraparound/wrap")
|
(home-page "https://github.com/Wraparound/wrap")
|
||||||
(synopsis "Format Fountain screenplays")
|
(synopsis "Format Fountain screenplays")
|
||||||
(description
|
(description
|
||||||
"Wrap is a command line tool that is able to convert Fountain files into a
|
"Wrap is a command line tool that is able to convert Fountain files into
|
||||||
correctly formatted screen- or stageplay as an HTML or a PDF. It supports
|
a correctly formatted screen- or stageplay as an HTML or a PDF. It supports
|
||||||
standard Fountain, but also has some custom syntax extensions such as
|
standard Fountain, but also has some custom syntax extensions such as
|
||||||
translated keywords and acts.")
|
translated keywords and acts.")
|
||||||
(license license:gpl3)))
|
(license license:gpl3)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue