-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchordpro.scm
232 lines (224 loc) · 7.65 KB
/
chordpro.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
(define-module (chordpro)
#:use-module (srfi srfi-1)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system perl)
#:use-module (guix licenses)
#:use-module (gnu packages perl)
#:use-module (gnu packages perl-check)
#:use-module (gnu packages python)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk))
(define perl-app-packager
(package
(name "perl-app-packager")
(version "1.430.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/J/JV/JV/App-Packager-"
version
".tar.gz"))
(sha256
(base32
"18vlwf5qsmw64kr0mc84cn55nm72s4aqdz9dxpigk1w38lad1x2p"))))
(build-system perl-build-system)
(home-page
"https://metacpan.org/release/App-Packager")
(synopsis "Abstraction for Packagers")
(description "Abstraction for Packagers")
(license perl-license)))
(define perl-file-loadlines
(package
(name "perl-file-loadlines")
(version "0.02")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/J/JV/JV/File-LoadLines-"
version
".tar.gz"))
(sha256
(base32
"0yvbwj5mi83f95zrlyb0dga66ds8yyc70w50r79lssbvrwqiq35b"))))
(build-system perl-build-system)
(home-page
"https://metacpan.org/release/File-LoadLines")
(synopsis "Load lines from file")
(description "Load lines from file")
(license perl-license)))
(define perl-image-info
(package
(name "perl-image-info")
(version "1.42")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/S/SR/SREZIC/Image-Info-"
version
".tar.gz"))
(sha256
(base32
"0kwg9a8in219p4ka1ykzdfcfpfpkc979ffmccg6w3cvi7w65djib"))))
(build-system perl-build-system)
(propagated-inputs
`(("perl-io-stringy" ,perl-io-stringy)))
(home-page
"https://metacpan.org/release/Image-Info")
(synopsis
"Extract meta information from image files")
(description "Extract meta information from image files")
(license perl-license)))
(define perl-string-interpolate-named
(package
(name "perl-string-interpolate-named")
(version "0.05")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/J/JV/JV/String-Interpolate-Named-"
version
".tar.gz"))
(sha256
(base32
"106mkhkd1x463dczjcs0hv4k7604xdd0hlwpy8yhk5gfbiirxjc4"))))
(build-system perl-build-system)
(home-page
"https://metacpan.org/release/String-Interpolate-Named")
(synopsis
"Interpolated named arguments in string")
(description "Interpolated named arguments in string")
(license perl-license)))
(define perl-text-layout
(package
(name "perl-text-layout")
(version "0.019")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/J/JV/JV/Text-Layout-"
version
".tar.gz"))
(sha256
(base32
"13hhlka8vl1q3f8968a8vmgdg3irm0gsgvx94g2jjfqikslg4hx0"))))
(build-system perl-build-system)
(native-inputs
`(("perl-pdf-api2" ,perl-pdf-api2)))
(propagated-inputs
`(("perl-harfbuzz-shaper" ,perl-harfbuzz-shaper)))
(home-page
"https://metacpan.org/release/Text-Layout")
(synopsis "Pango style markup formatting")
(description synopsis)
(license perl-license)))
(define perl-harfbuzz-shaper
(package
(name "perl-harfbuzz-shaper")
(version "0.023")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/J/JV/JV/HarfBuzz-Shaper-"
version
".tar.gz"))
(sha256
(base32
"0kcyyvcppk1h3fq9vmndiks6vzyr965vpzfja8p8pymm430616qr"))))
(build-system perl-build-system)
(arguments
;; See https://github.com/sciurius/perl-HarfBuzz-Shaper/issues/8
`(#:make-maker-flags (list (string-append
"LIBS=-L"
(assoc-ref %build-inputs "harfbuzz")
"/lib"
" -lharfbuzz"))))
(native-inputs
`(("python-2" ,python-2)))
(inputs
`(("harfbuzz" ,harfbuzz)))
(home-page
"https://metacpan.org/release/HarfBuzz-Shaper")
(synopsis "Use HarfBuzz for text shaping")
(description "HarfBuzz::Shaper is a perl module that provides access to a
small subset of the native HarfBuzz library. The subset is suitable for typesetting
programs that need to deal with complex languages like Devanagari, Hebrew or Arabic.")
(license perl-license)))
(define-public chordpro
(package
(name "chordpro")
(version "0.974_017")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ChordPro/chordpro")
(commit "03c72e8e651bca0f24ee6d8b59e61750fe10f8b7")))
(file-name (git-file-name name version))
(sha256
(base32
"14770w94p1granp1b8f2bra1kf44xxv5gklm3ccmf1qs9pgy5wxp"))))
(build-system perl-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")))
(wrap-program
(string-append
out
"/bin/chordpro")
`("PERL5LIB" ":" =
(,(getenv "PERL5LIB")
,(string-append
out "/lib/perl5/site_perl")))))
#t)))))
(native-inputs
`(("perl-cpan-changes" ,perl-cpan-changes)
("perl-text-layout" ,perl-text-layout)))
(inputs
`(("perl-cairo" ,perl-cairo)
("perl-pango" ,perl-pango)
("perl-app-packager" ,perl-app-packager)
("perl-file-loadlines" ,perl-file-loadlines)
("perl-pdf-api2" ,perl-pdf-api2)
("perl-image-info" ,perl-image-info)
("perl-string-interpolate-named" ,perl-string-interpolate-named)
;; The following are the-missing-links: propagated-inputs of the
;; direct/first dependencies of chordpro. The adjacent comments
;; tell which dependency they are a propagated-input of.
("perl-glib" ,perl-glib) ;; perl-cairo
("perl-font-ttf" ,perl-font-ttf) ;; perl-pdf-api2
("perl-io-stringy" ,perl-io-stringy))) ;; perl-image-info
(synopsis "Simple text format for the notation of lyrics with chords")
(description "Chordpro Dev Branch")
(home-page "https://www.chordpro.org/")
(license artistic2.0)))
(define-public chordpro-next
(package
(inherit chordpro)
(name "chordpro-next")
(version "0.977")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ChordPro/chordpro")
(commit "c295821a0d047a2afe4370f444bff2cb3f7fbacb")))
(file-name (git-file-name name version))
(sha256
(base32
"1im7r5akf86ivyd41wr907br27lghr73c8f62bk7rv83529aczbb"))))
(inputs
`(("perl-harfbuzz-shaper" ,perl-harfbuzz-shaper) ;; perl-text-layout
,@(fold alist-delete
(package-inputs chordpro)
(list "perl-cairo"
"perl-pango"
"perl-glib"))))))