gnu: Add perl6-grammar-debugger.
[jackhill/guix/guix.git] / gnu / packages / perl6.scm
CommitLineData
abc12b0d
EF
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages perl6)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix download)
d6170877 22 #:use-module (guix git-download)
abc12b0d
EF
23 #:use-module (guix packages)
24 #:use-module (guix build-system perl)
d6170877 25 #:use-module (guix build-system rakudo)
abc12b0d
EF
26 #:use-module (gnu packages bdw-gc)
27 #:use-module (gnu packages libevent)
28 #:use-module (gnu packages libffi)
29 #:use-module (gnu packages multiprecision)
f7f8e767
EF
30 #:use-module (gnu packages pkg-config)
31 #:use-module (gnu packages tls))
abc12b0d
EF
32
33(define-public moarvm
34 (package
35 (name "moarvm")
36 (version "2019.03")
37 (source
38 (origin
39 (method url-fetch)
40 (uri (string-append "https://moarvm.org/releases/MoarVM-"
41 version ".tar.gz"))
42 (sha256
43 (base32
44 "017w1zvr6yl0cgjfc1b3ddlc6vjw9q8p7alw1vvsckw95190xc14"))
45 (modules '((guix build utils)))
46 (snippet
47 '(begin
48 ;(delete-file-recursively "3rdparty/dynasm") ; JIT
49 (delete-file-recursively "3rdparty/dyncall")
50 (delete-file-recursively "3rdparty/freebsd")
51 (delete-file-recursively "3rdparty/libatomicops")
52 (delete-file-recursively "3rdparty/libuv")
53 (delete-file-recursively "3rdparty/libtommath")
54 (delete-file-recursively "3rdparty/msinttypes")
55 #t))))
56 (build-system perl-build-system)
57 (arguments
58 '(#:phases
59 (modify-phases %standard-phases
60 (replace 'configure
61 (lambda* (#:key inputs outputs #:allow-other-keys)
62 (let ((out (assoc-ref outputs "out"))
63 (pkg-config (assoc-ref inputs "pkg-config")))
64 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
65 (invoke "perl" "Configure.pl"
66 "--prefix" out
67 "--pkgconfig" (string-append pkg-config "/bin/pkg-config")
68 "--has-libtommath"
69 "--has-libatomic_ops"
70 "--has-libffi"
71 "--has-libuv")))))))
72 (home-page "https://moarvm.org/")
73 ;; These should be inputs but moar.h can't find them when building rakudo
74 (propagated-inputs
75 `(("libatomic-ops" ,libatomic-ops)
76 ("libtommath" ,libtommath-1.0)
77 ("libuv" ,libuv)))
78 (inputs
79 `(("libffi" ,libffi)))
80 (native-inputs
81 `(("pkg-config" ,pkg-config)))
82 (synopsis "VM for NQP And Rakudo Perl 6")
83 (description
84 "Short for \"Metamodel On A Runtime\", MoarVM is a modern virtual machine
85built for the Rakudo Perl 6 compiler and the NQP Compiler Toolchain. Highlights
86include:
87
88@itemize
89@item Great Unicode support, with strings represented at grapheme level
90@item Dynamic analysis of running code to identify hot functions and loops, and
91perform a range of optimizations, including type specialization and inlining
92@item Support for threads, a range of concurrency control constructs, and
93asynchronous sockets, timers, processes, and more
94@item Generational, parallel, garbage collection
95@item Support for numerous language features, including first class functions,
96exceptions, continuations, runtime loading of code, big integers and interfacing
97with native libraries.
98@end itemize")
99 (license license:artistic2.0)))
af2dec5b
EF
100
101(define-public nqp
102 (package
103 (name "nqp")
104 (version "2019.03")
105 (source
106 (origin
107 (method url-fetch)
108 (uri (string-append "https://rakudo.perl6.org/downloads/nqp/nqp-"
109 version ".tar.gz"))
110 (sha256
111 (base32
112 "183zhll13fx416s3hkg4bkvib77kyr857h0nydgrl643fpacxp83"))
113 (modules '((guix build utils)))
114 (snippet
115 '(begin
116 (delete-file-recursively "3rdparty") #t))))
117 (build-system perl-build-system)
118 (arguments
119 '(#:phases
120 (modify-phases %standard-phases
121 (add-after 'patch-source-shebangs 'patch-more-shebangs
122 (lambda _
123 (substitute* '("tools/build/install-jvm-runner.pl.in"
124 "tools/build/gen-js-cross-runner.pl"
125 "tools/build/gen-js-runner.pl"
126 "tools/build/install-js-runner.pl"
127 "tools/build/install-moar-runner.pl"
128 "tools/build/gen-moar-runner.pl"
129 "t/nqp/111-spawnprocasync.t"
130 "t/nqp/113-run-command.t")
131 (("/bin/sh") (which "sh")))
132 #t))
133 (add-after 'unpack 'patch-source-date
134 (lambda _
135 (substitute* "tools/build/gen-version.pl"
136 (("gmtime") "gmtime(0)"))
137 #t))
138 (add-after 'unpack 'remove-failing-test
139 ;; One subtest fails for unknown reasons
140 (lambda _
141 (delete-file "t/nqp/019-file-ops.t")
142 #t))
143 (replace 'configure
144 (lambda* (#:key inputs outputs #:allow-other-keys)
145 (let ((out (assoc-ref outputs "out"))
146 (moar (assoc-ref inputs "moarvm")))
147 (invoke "perl" "Configure.pl"
148 "--backends=moar"
149 "--with-moar" (string-append moar "/bin/moar")
150 "--prefix" out)))))))
151 (inputs
152 `(("moarvm" ,moarvm)))
153 (home-page "https://github.com/perl6/nqp")
154 (synopsis "Not Quite Perl")
155 (description "This is \"Not Quite Perl\" -- a lightweight Perl 6-like
156environment for virtual machines. The key feature of NQP is that it's designed
157to be a very small environment (as compared with, say, perl6 or Rakudo) and is
158focused on being a high-level way to create compilers and libraries for virtual
159machines like MoarVM, the JVM, and others.
160
161Unlike a full-fledged implementation of Perl 6, NQP strives to have as small a
162runtime footprint as it can, while still providing a Perl 6 object model and
163regular expression engine for the virtual machine.")
164 (license license:artistic2.0)))
f7f8e767
EF
165
166(define-public rakudo
167 (package
168 (name "rakudo")
169 (version "2019.03.1")
170 (source
171 (origin
172 (method url-fetch)
173 (uri (string-append "https://rakudo.perl6.org/downloads/rakudo/rakudo-"
174 version ".tar.gz"))
175 (sha256
176 (base32
177 "1nllf69v8xr6v3kkj7pmryg11n5m3ajfkr7j72pvhrgnjy8lv3r1"))))
178 (build-system perl-build-system)
179 (arguments
180 '(#:phases
181 (modify-phases %standard-phases
182 (add-after 'unpack 'patch-source-date
183 (lambda _
184 (substitute* "tools/build/gen-version.pl"
185 (("gmtime") "gmtime(0)"))
186 #t))
187 (add-after 'patch-source-shebangs 'patch-more-shebangs
188 (lambda _
189 (substitute* '("tools/build/create-js-runner.pl"
190 "tools/build/create-moar-runner.p6"
191 "tools/build/create-jvm-runner.pl"
192 "src/core/Proc.pm6")
193 (("/bin/sh") (which "sh")))
194 #t))
195 (replace 'configure
196 (lambda* (#:key inputs outputs #:allow-other-keys)
197 (let ((out (assoc-ref outputs "out"))
198 (nqp (assoc-ref inputs "nqp")))
199 (invoke "perl" "./Configure.pl"
200 "--backend=moar"
201 "--with-nqp" (string-append nqp "/bin/nqp")
202 "--prefix" out))))
203 ;; This is the recommended tool for distro maintainers to install perl6
204 ;; modules systemwide. See: https://github.com/ugexe/zef/issues/117
205 (add-after 'install 'install-dist-tool
206 (lambda* (#:key outputs #:allow-other-keys)
207 (let* ((out (assoc-ref outputs "out"))
208 (dest (string-append out "/share/perl6/tools")))
209 (install-file "tools/install-dist.p6" dest)
210 (substitute* (string-append dest "/install-dist.p6")
211 (("/usr/bin/env perl6")
212 (string-append out "/bin/perl6"))))
213 #t)))))
214 (inputs
215 `(("moarvm" ,moarvm)
216 ("nqp" ,nqp)
217 ("openssl" ,openssl)))
218 (home-page "https://rakudo.org/")
219 (native-search-paths
220 (list (search-path-specification
221 (variable "PERL6LIB")
222 (separator ",")
223 (files '("share/perl6/lib"
224 "share/perl6/site/lib"
225 "share/perl6/vendor/lib")))))
226 (synopsis "Perl 6 Compiler")
227 (description "Rakudo Perl is a compiler that implements the Perl 6
228specification and runs on top of several virtual machines.")
229 (license license:artistic2.0)))
d6170877 230
c2bc5b2b
EF
231(define-public perl6-grammar-debugger
232 ;; Last commit was September 2017
233 (let ((commit "0375008027c8caa216bd869476ce59ae09b2a702")
234 (revision "1"))
235 (package
236 (name "perl6-grammar-debugger")
237 (version (git-version "1.0.1" revision commit))
238 (source
239 (origin
240 (method git-fetch)
241 (uri (git-reference
242 (url "https://github.com/jnthn/grammar-debugger")
243 (commit commit)))
244 (file-name (git-file-name name version))
245 (sha256
246 (base32
247 "0y826z3m276n7ia810hgcb3div67nxmx125m2fzlc16994zd5vm5"))))
248 (build-system rakudo-build-system)
249 (propagated-inputs
250 `(("perl6-terminal-ansicolor" ,perl6-terminal-ansicolor)))
251 (home-page "https://github.com/jnthn/grammar-debugger")
252 (synopsis "Simple tracing and debugging support for Perl 6 grammars")
253 (description "This module provides a simple debugger for grammars. Just
254@code{use} it: use @code{Grammar::Debugger;} and any grammar in the lexical
255scope of the use statement will automatically have debugging enabled. The
256debugger will break execution when you first enter the grammar, and provide a
257prompt.")
258 (license license:artistic2.0))))
259
63b9f87a
EF
260(define-public perl6-grammar-profiler-simple
261 ;; Last commit was June 2017
262 (let ((commit "c0aca5fab323b2974821dabd6b89330c609e0b7d")
263 (revision "1"))
264 (package
265 (name "perl6-grammar-profiler-simple")
266 (version (git-version "0.02" revision commit))
267 (source
268 (origin
269 (method git-fetch)
270 (uri (git-reference
271 (url "https://github.com/perlpilot/Grammar-Profiler-Simple.git")
272 (commit commit)))
273 (file-name (git-file-name name version))
274 (sha256
275 (base32
276 "1qcsa4lmcilp3vp0jng0hrgzyzxin9ayg2wjvkcd0k6h7djx9dff"))))
277 (build-system rakudo-build-system)
278 (arguments '(#:with-zef? #f))
279 (home-page "https://github.com/perlpilot/Grammar-Profiler-Simple")
280 (synopsis "Simple rule profiling for Perl 6 grammars")
281 (description "This module provides a simple profiler for Perl 6 grammars.
282To enable profiling simply add use @code{Grammar::Profiler::Simple;} to your
283code. Any grammar in the lexical scope of the use statement will automatically
284have profiling information collected when the grammar is used.")
285 (license license:artistic2.0))))
286
ea856c08
EF
287(define-public perl6-json-class
288 (package
289 (name "perl6-json-class")
290 (version "0.0.12")
291 (source
292 (origin
293 (method git-fetch)
294 (uri (git-reference
295 (url "https://github.com/jonathanstowe/JSON-Class.git")
296 (commit (string-append "v" version))))
297 (file-name (git-file-name name version))
298 (sha256
299 (base32
300 "1zyzajc57j3m8q0nr72h9pw4w2nx92rafywlvysgphc5q9sb8np2"))))
301 (build-system rakudo-build-system)
302 (propagated-inputs
303 `(("perl6-json-marshal" ,perl6-json-marshal)
304 ("perl6-json-unmarshal" ,perl6-json-unmarshal)))
305 (native-inputs
306 `(("perl6-json-fast" ,perl6-json-fast)))
307 (home-page "https://github.com/jonathanstowe/JSON-Class")
308 (synopsis "Provide simple serialisation/deserialisation of objects to/from JSON")
309 (description "This is a simple role that provides methods to instantiate a
310class from a JSON string that (hopefully,) represents it, and to serialise an
311object of the class to a JSON string. The JSON created from an instance should
312round trip to a new instance with the same values for the @quot{public
313attributes}. @quot{Private} attributes (that is ones without accessors,) will
314be ignored for both serialisation and de-serialisation. The exact behaviour
315depends on that of @code{JSON::Marshal} and @code{JSON::Unmarshal} respectively.")
316 (license license:artistic2.0)))
317
61b43640
EF
318(define-public perl6-json-fast
319 (package
320 (name "perl6-json-fast")
321 (version "0.8")
322 (source
323 (origin
324 (method git-fetch)
325 (uri (git-reference
326 (url "https://github.com/timo/json_fast.git")
327 (commit version)))
328 (file-name (git-file-name name version))
329 (sha256
330 (base32
331 "1fif081gdxdnja14vkj523p9dyzdcdj81lmjv9fvfazvpagb6dg2"))))
332 (build-system rakudo-build-system)
333 (arguments '(#:with-zef? #f))
334 (home-page "https://github.com/timo/json_fast")
335 (synopsis "Perl6 json parser")
336 (description "A naive imperative json parser in pure perl6 (but with direct
337access to @code{nqp::} ops), to evaluate performance against @code{JSON::Tiny}.
338It is a drop-in replacement for @code{JSON::Tiny}'s from-json and to-json subs,
339but it offers a few extra features.")
340 (license license:artistic2.0)))
341
e1b3cf68
EF
342(define-public perl6-json-marshal
343 (package
344 (name "perl6-json-marshal")
345 (version "0.0.16")
346 (source
347 (origin
348 (method git-fetch)
349 (uri (git-reference
350 (url "https://github.com/jonathanstowe/JSON-Marshal.git")
351 (commit (string-append "v" version))))
352 (file-name (git-file-name name version))
353 (sha256
354 (base32
355 "0qy7j83h6gjzyyv74ncd92cd9h45rv8diaz3vldiv3b6fqwz4c6i"))))
356 (build-system rakudo-build-system)
357 (propagated-inputs
358 `(("perl6-json-fast" ,perl6-json-fast)
359 ("perl6-json-name" ,perl6-json-name)))
360 (native-inputs
361 `(("perl6-json-fast" ,perl6-json-fast)))
362 (home-page "https://github.com/jonathanstowe/JSON-Marshal")
363 (synopsis "Simple serialisation of objects to JSON")
364 (description "This library provides a single exported subroutine to create
365a JSON representation of an object. It should round trip back into an object
366of the same class using @code{JSON::Unmarshal}.")
367 (license license:artistic2.0)))
368
bc7c6efe
EF
369(define-public perl6-json-name
370 (package
371 (name "perl6-json-name")
372 (version "0.0.3")
373 (source
374 (origin
375 (method git-fetch)
376 (uri (git-reference
377 (url "https://github.com/jonathanstowe/JSON-Name.git")
378 (commit (string-append "v" version))))
379 (file-name (git-file-name name version))
380 (sha256
381 (base32
382 "130qwdpbj5qdlsdz05y0rksd79lzbq79scy47n6lnf21b0hz1qjc"))))
383 (build-system rakudo-build-system)
384 (arguments '(#:with-zef? #f))
385 (home-page "https://github.com/jonathanstowe/JSON-Name")
386 (synopsis "Provides a trait to store an alternative JSON Name")
387 (description "This is released as a dependency of @code{JSON::Marshal} and
388@code{JSON::Unmarshal} in order to save duplication, it is intended to store a
389separate JSON name for an attribute where the name of the JSON attribute might be
390changed, either for aesthetic reasons or the name is not a valid Perl identifier.
391It will of course also be needed in classes thar are going to use
392@code{JSON::Marshal} or @code{JSON::Unmarshal} for serialisation/de-serialisation.")
393 (license license:artistic2.0)))
394
56eea221
EF
395(define-public perl6-json-unmarshal
396 ;; Last commit was May 2017
397 (let ((commit "e1b6288c5f3165058f36c0f4e171cdf2dfd640da")
398 (revision "1"))
399 (package
400 (name "perl6-json-unmarshal")
401 (version (git-version "0.0.0" revision commit))
402 (source
403 (origin
404 (method git-fetch)
405 (uri (git-reference
406 (url "https://github.com/tadzik/JSON-Unmarshal.git")
407 (commit commit)))
408 (file-name (git-file-name name version))
409 (sha256
410 (base32
411 "14azsmzmwdn8k0gqcpvballharcvzylmlyrx2wmv4kpqfnz29fjc"))))
412 (build-system rakudo-build-system)
413 (propagated-inputs
414 `(("perl6-json-fast" ,perl6-json-fast)
415 ("perl6-json-name" ,perl6-json-name)))
416 (home-page "https://github.com/tadzik/JSON-Unmarshal")
417 (synopsis "Make JSON from an Object")
418 (description "This library provides a single exported subroutine to
419create an object from a JSON representation of an object.")
420 (license license:expat))))
421
489f4933
EF
422(define-public perl6-license-spdx
423 (package
424 (name "perl6-license-spdx")
425 (version "3.4.0")
426 (source
427 (origin
428 (method git-fetch)
429 (uri (git-reference
430 (url "https://github.com/jonathanstowe/License-SPDX")
431 (commit (string-append "v" version))))
432 (file-name (git-file-name name version))
433 (sha256
434 (base32
435 "0dl263c3fbxk001gm5fisrzqz1dx182ipaa0x2qva2gxvl075xm8"))))
436 (build-system rakudo-build-system)
437 (propagated-inputs
438 `(("perl6-json-class" ,perl6-json-class)))
439 (home-page "https://github.com/jonathanstowe/License-SPDX")
440 (synopsis "Abstraction over the SPDX License List")
441 (description "This provides an abstraction over the SPDX License List as
442provided in JSON format. Its primary raison d'être is to help the licence
443checking of @code{Test::META} and to allow for the warning about deprecated
444licences therein.")
445 (license license:artistic2.0)))
446
505b9792
EF
447(define-public perl6-meta6
448 (package
449 (name "perl6-meta6")
450 (version "0.0.23")
451 (source
452 (origin
453 (method git-fetch)
454 (uri (git-reference
455 (url "https://github.com/jonathanstowe/META6.git")
456 (commit (string-append "v" version))))
457 (file-name (git-file-name name version))
458 (sha256
459 (base32
460 "1xnlaamfbdlfb2zidim3bbc4mawsrg6qxhxi6gbld46z1cyry1cw"))))
461 (build-system rakudo-build-system)
462 (propagated-inputs
463 `(("perl6-json-class" ,perl6-json-class)))
464 (native-inputs
465 `(("perl6-json-fast" ,perl6-json-fast)))
466 (home-page "https://github.com/jonathanstowe/META6")
467 (synopsis "Do things with Perl 6 [META files]")
468 (description "This provides a representation of the Perl 6 META files
469specification - the META file data can be read, created, parsed and written in a
470manner that is conformant with the specification.
471
472Where they are known about it also makes allowance for @quot{customary} usage in
473existing software (such as installers and so forth.)
474
475The intent of this is allow the generation and testing of META files for module
476authors, so it can provide meta-information whether the attributes are mandatory
477as per the spec and where known the places that @quot{customary} attributes are
478used.")
479 (license license:artistic2.0)))
480
56930271
EF
481(define-public perl6-oo-monitors
482 (package
483 (name "perl6-oo-monitors")
484 (version "1.1")
485 (source
486 (origin
487 (method git-fetch)
488 (uri (git-reference
489 (url "https://github.com/jnthn/oo-monitors")
490 ;; The commit where 1.1 was "tagged"
491 (commit "494db3a3852854f30a80c9bd1489a7d5e429e7c5")))
492 (file-name (git-file-name name version))
493 (sha256
494 (base32
495 "1sbw2x54wwjjanghjnc7ipmplaw1srvbrphsdv4ym6cipnbmbj9x"))))
496 (build-system rakudo-build-system)
497 (arguments '(#:with-zef? #f))
498 (home-page "https://github.com/jnthn/oo-monitors")
499 (synopsis "Monitors with condition variables for Perl 6")
500 (description "A monitor provides per-instance mutual exclusion for objects.
501This means that for a given object instance, only one thread can ever be inside
502its methods at a time. This is achieved by a lock being associated with each
503object. The lock is acquired automatically at the entry to each method in the
504monitor. Condition variables are also supported.")
505 (license license:artistic2.0)))
506
2bd04f9f
EF
507(define-public perl6-svg
508 ;; Latest commit, basically unchanged since August 2015
509 (let ((commit "07190c0602aa276e5319f06aa0012452dbff3582")
510 (revision "1"))
511 (package
512 (name "perl6-svg")
513 (version (git-version "0.0.0" revision commit))
514 (source
515 (origin
516 (method git-fetch)
517 (uri (git-reference
518 (url "https://github.com/moritz/svg")
519 (commit commit)))
520 (file-name (git-file-name name version))
521 (sha256
522 (base32
523 "0mkjdhg7ajksdn61n8fqhyzfd7ly9myazsvpsm02a5c2q73hdygg"))))
524 (build-system rakudo-build-system)
525 (propagated-inputs
526 `(("perl6-xml-writer" ,perl6-xml-writer)))
527 (home-page "https://github.com/moritz/svg")
528 (synopsis "Perl 6 module to generate SVG")
529 (description "This is a Perl 6 module that makes it easy to write
530@dfn{Scalable Vector Graphic files} (SVG). Right now it is a shallow wrapper
531around @code{XML::Writer}, adding only the xmlns attributes that identifies an
532XML file as SVG.")
533 (license license:artistic2.0))))
534
d02a30bd
EF
535(define-public perl6-svg-plot
536 ;; Latest commit
537 (let ((commit "062570a78fd38c3c6baba29dfe2fbb8ca014f4de")
538 (revision "1"))
539 (package
540 (name "perl6-svg-plot")
541 (version (git-version "0.0.0" revision commit))
542 (source
543 (origin
544 (method git-fetch)
545 (uri (git-reference
546 (url "https://github.com/moritz/svg-plot")
547 (commit commit)))
548 (file-name (git-file-name name version))
549 (sha256
550 (base32
551 "095ga5hbg92jnmczxvhk1hjz14yr334zyf8cph4w5w5frcza44my"))))
552 (build-system rakudo-build-system)
553 (propagated-inputs
554 `(("perl6-svg" ,perl6-svg)))
555 (home-page "https://github.com/moritz/svg-plot")
556 (synopsis "Perl 6 charting and plotting library that produces SVG output")
557 (description "@code{SVG::Plot} is a simple 2D chart plotter for Perl 6.
558It currently supports bars, stacked bars, lines and points (both equally spaced
559with optional labels, or xy plots).")
560 (license license:artistic2.0))))
561
d6170877
EF
562(define-public perl6-tap-harness
563 (package
564 (name "perl6-tap-harness")
565 (version "0.0.7")
566 (source
567 (origin
568 (method git-fetch)
569 (uri (git-reference
570 (url "https://github.com/perl6/tap-harness6.git")
571 (commit (string-append "v" version))))
572 (file-name (git-file-name name version))
573 (sha256
574 (base32
575 "1lig8i0my3fgqvlay9532xslbf3iis2d7wz89gniwvwqffi2kh6r"))))
576 (build-system rakudo-build-system)
577 (arguments
578 '(#:with-zef? #f
579 #:with-prove6? #f
580 #:phases
581 (modify-phases %standard-phases
582 (replace 'check
583 (lambda _
584 (invoke "perl6" "-Ilib" "bin/prove6" "-l" "t"))))))
585 (home-page "https://github.com/perl6/tap-harness6/")
586 (synopsis "TAP harness for perl6")
587 (description "This module provides the @command{prove6} command which runs a
588TAP based test suite and prints a report. The @command{prove6} command is a
589minimal wrapper around an instance of this module.")
590 (license license:artistic2.0)))
74809e9e 591
4af10064
EF
592(define-public perl6-terminal-ansicolor
593 (package
594 (name "perl6-terminal-ansicolor")
595 (version "0.5")
596 (source
597 (origin
598 (method git-fetch)
599 (uri (git-reference
600 (url "https://github.com/tadzik/Terminal-ANSIColor.git")
601 ;; The commit where 0.5 was "tagged"
602 (commit "edded4a7116ce11cbc9fb5a83669c7ba119d0212")))
603 (file-name (git-file-name name version))
604 (sha256
605 (base32
606 "1apm999azkyg5s35gid12wq019aqnvzrkz7qjmipd74mdxgr00x7"))))
607 (build-system rakudo-build-system)
608 (arguments '(#:with-zef? #f))
609 (home-page "https://github.com/tadzik/Terminal-ANSIColor")
610 (synopsis "Colorize terminal output")
611 (description "This is a @code{Terminal::ANSIColor} module for Perl 6.")
612 (license license:expat)))
613
de032eed
EF
614(define-public perl6-test-meta
615 (package
616 (name "perl6-test-meta")
617 (version "0.0.14")
618 (source
619 (origin
620 (method git-fetch)
621 (uri (git-reference
622 (url "https://github.com/jonathanstowe/Test-META")
623 (commit (string-append "v" version))))
624 (file-name (git-file-name name version))
625 (sha256
626 (base32
627 "1mzrglb7lbiy5h9dlc7dyhvv9gppxmdmpmrv6nzbd695jzr38bri"))))
628 (build-system rakudo-build-system)
629 (propagated-inputs
630 `(("perl6-meta6" ,perl6-meta6)
631 ("perl6-uri" ,perl6-uri)))
632 (home-page "https://github.com/jonathanstowe/Test-META")
633 (synopsis "Test a distributions META file")
634 (description "This provides a simple mechanism for module authors to have
635some confidence that they have a working distribution META description file.")
636 (license license:artistic2.0)))
637
979df8c4
EF
638(define-public perl6-test-mock
639 (package
640 (name "perl6-test-mock")
641 (version "1.5")
642 (source
643 (origin
644 (method git-fetch)
645 (uri (git-reference
646 (url "https://github.com/jnthn/test-mock")
647 ;; The commit where 1.5 was "tagged"
648 (commit "6eddb42f73f40b9ac29c14badb41ce4a04d876f2")))
649 (file-name (git-file-name name version))
650 (sha256
651 (base32
652 "07yr3qimc8fl29p23562ayj2j9h53madcnf9sgqvgf2kcprh0zd2"))))
653 (build-system rakudo-build-system)
654 (propagated-inputs
655 `(("perl6-oo-monitors" ,perl6-oo-monitors)))
656 (home-page "https://github.com/jnthn/test-mock")
657 (synopsis "Module for simply generating and checking mock objects")
658 (description "@code{Test::Mock} is a module that works alongside the
659standard Test module to help you write tests when you want to verify what
660methods are called on an object, while still having calls to undefined methods
661die. You get started just as normal with the test file, but also add a use
662statement for @code{Test::Mock}.")
663 (license license:artistic2.0)))
664
60945c67
EF
665(define-public perl6-uri
666 (package
667 (name "perl6-uri")
668 (version "0.1.5")
669 (source
670 (origin
671 (method git-fetch)
672 (uri (git-reference
673 (url "https://github.com/perl6-community-modules/uri.git")
674 (commit version)))
675 (file-name (git-file-name name version))
676 (sha256
677 (base32
678 "0h318g75jqn2ckw051g35iqyfxz1mps0jyg5z6pd857y3kacbkpl"))))
679 (build-system rakudo-build-system)
680 (arguments '(#:with-zef? #f))
681 (home-page "https://github.com/perl6-community-modules/uri")
682 (synopsis "URI implementation using Perl 6")
683 (description "A URI implementation using Perl 6 grammars to implement RFC
6843986 BNF. Currently only implements parsing. Includes @code{URI::Escape} to
685(un?)escape characters that aren't otherwise allowed in a URI with % and a hex
686character numbering.")
687 (license license:artistic2.0)))
688
1af3f970
EF
689(define-public perl6-xml-writer
690 ;; Last commit was May 2017
691 (let ((commit "4d30a9d8e06033ca97387971b653817becd5a759")
692 (revision "1"))
693 (package
694 (name "perl6-xml-writer")
695 (version (git-version "0.0.0" revision commit))
696 (source
697 (origin
698 (method git-fetch)
699 (uri (git-reference
700 (url "https://github.com/masak/xml-writer")
701 (commit commit)))
702 (file-name (git-file-name name version))
703 (sha256
704 (base32
705 "1kwrf7akp70kyzw1b90khp71a6hpilihwndy2jsjpffcd4hd4m4z"))))
706 (build-system rakudo-build-system)
707 (arguments '(#:with-zef? #f))
708 (home-page "https://github.com/masak/xml-writer")
709 (synopsis "Perl 6 module to generate XML")
710 (description "@code{XML::Writer} is a module for creating XML in Perl 6.")
711 (license license:artistic2.0))))
712
74809e9e
EF
713(define-public perl6-zef
714 (package
715 (name "perl6-zef")
716 (version "0.6.7")
717 (source
718 (origin
719 (method git-fetch)
720 (uri (git-reference
721 (url "https://github.com/ugexe/zef.git")
722 (commit (string-append "v" version))))
723 (file-name (git-file-name name version))
724 (sha256
725 (base32
726 "07n7g1xw2c4g860rs890gx85vyhdq0ysgwbrnzw6q905jph2bkv7"))))
727 (build-system rakudo-build-system)
728 (arguments
729 '(#:with-zef? #f
730 #:phases
731 (modify-phases %standard-phases
732 (replace 'check
733 (lambda _
734 (setenv "HOME" "/tmp")
735 (invoke "perl6" "-I." "bin/zef" "--debug"
736 "--tap-harness" "test" "."))))))
737 (home-page "https://github.com/ugexe/zef")
738 (synopsis "Perl6 Module Management")
739 (description "Zef is a Perl 6 package (module) manager. It can be used to
740download and install Perl 6 modules in your home directory or as a system-wide
741module.")
742 (license license:artistic2.0)))