unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#48287] [PATCH] gnu: Add guile-raw-strings.
@ 2021-05-08 14:01 Xinglu Chen
  2021-05-08 21:18 ` Maxime Devos
  2021-05-09  8:18 ` [bug#48287] [PATCH v2] " Xinglu Chen
  0 siblings, 2 replies; 5+ messages in thread
From: Xinglu Chen @ 2021-05-08 14:01 UTC (permalink / raw)
  To: 48287

* gnu/packages/guile-xyz.scm (guile-raw-strings): New variable.
---
 gnu/packages/guile-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index f908fb8a3b..f596defe44 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -2106,6 +2106,37 @@ microAdapton.  Both miniAdapton and microAdapton are designed to be easy to
 understand, extend, and port to host languages other than Scheme.")
       (license license:expat))))
 
+(define-public guile-raw-strings
+  (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
+        (revision "0"))
+    (package
+      (name "guile-raw-strings")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/lloda/guile-raw-strings")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
+      (build-system guile-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'build 'check
+             (lambda _
+               (invoke "guile" "-L" "." "-s" "test.scm"))))))
+      (native-inputs
+       `(("guile" ,guile-3.0)))
+      (home-page "https://github.com/lloda/guile-raw-strings")
+      (synopsis "Guile reader extension for `raw strings'")
+      (description "This package provides A Guile reader extension for `raw
+strings', it lets you write verbatim strings without having to escape double
+quotes. ")
+      (license license:public-domain))))
+
 (define-public guile-reader
   (package
     (name "guile-reader")

base-commit: e5adaf6c2de917f33f90e24b551a8991e55b3eb6
-- 
2.31.1






^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#48287] [PATCH] gnu: Add guile-raw-strings.
  2021-05-08 14:01 [bug#48287] [PATCH] gnu: Add guile-raw-strings Xinglu Chen
@ 2021-05-08 21:18 ` Maxime Devos
  2021-05-09  8:12   ` Xinglu Chen
  2021-05-09  8:18 ` [bug#48287] [PATCH v2] " Xinglu Chen
  1 sibling, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2021-05-08 21:18 UTC (permalink / raw)
  To: Xinglu Chen, 48287

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

> +           (add-after 'build 'check
> +             (lambda _
> +               (invoke "guile" "-L" "." "-s" "test.scm"))))))

To support "guix build --without-tests", make this

> +           (add-after 'build 'check
> +             (lambda* (#:key tests? #:allow-other-keys)
> +               (when tests?
> +                 (invoke "guile" "-L" "." "-s" "test.scm")))))))

Greetings,Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#48287] [PATCH] gnu: Add guile-raw-strings.
  2021-05-08 21:18 ` Maxime Devos
@ 2021-05-09  8:12   ` Xinglu Chen
  0 siblings, 0 replies; 5+ messages in thread
From: Xinglu Chen @ 2021-05-09  8:12 UTC (permalink / raw)
  To: Maxime Devos, 48287

On Sat, May 08 2021, Maxime Devos wrote:

>> +           (add-after 'build 'check
>> +             (lambda _
>> +               (invoke "guile" "-L" "." "-s" "test.scm"))))))
>
> To support "guix build --without-tests", make this
>
>> +           (add-after 'build 'check
>> +             (lambda* (#:key tests? #:allow-other-keys)
>> +               (when tests?
>> +                 (invoke "guile" "-L" "." "-s" "test.scm")))))))

Thanks for taking a look. :)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#48287] [PATCH v2] gnu: Add guile-raw-strings.
  2021-05-08 14:01 [bug#48287] [PATCH] gnu: Add guile-raw-strings Xinglu Chen
  2021-05-08 21:18 ` Maxime Devos
@ 2021-05-09  8:18 ` Xinglu Chen
  2021-05-14 10:14   ` bug#48287: [PATCH] " Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Xinglu Chen @ 2021-05-09  8:18 UTC (permalink / raw)
  To: 48287

* gnu/packages/guile-xyz.scm (guile-raw-strings): New variable.
---
Changes since v1:
- Respect the ‘--without-tests’ package tranformation.

 gnu/packages/guile-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index f908fb8a3b..35e580a804 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -2106,6 +2106,38 @@ microAdapton.  Both miniAdapton and microAdapton are designed to be easy to
 understand, extend, and port to host languages other than Scheme.")
       (license license:expat))))
 
+(define-public guile-raw-strings
+  (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
+        (revision "0"))
+    (package
+      (name "guile-raw-strings")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/lloda/guile-raw-strings")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
+      (build-system guile-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'build 'check
+             (lambda* (#:key tests? #:allow-other-keys)
+               (when tests?
+                 (invoke "guile" "-L" "." "-s" "test.scm")))))))
+      (native-inputs
+       `(("guile" ,guile-3.0)))
+      (home-page "https://github.com/lloda/guile-raw-strings")
+      (synopsis "Guile reader extension for `raw strings'")
+      (description "This package provides A Guile reader extension for `raw
+strings', it lets you write verbatim strings without having to escape double
+quotes. ")
+      (license license:public-domain))))
+
 (define-public guile-reader
   (package
     (name "guile-reader")

base-commit: e5adaf6c2de917f33f90e24b551a8991e55b3eb6
-- 
2.31.1






^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#48287: [PATCH] gnu: Add guile-raw-strings.
  2021-05-09  8:18 ` [bug#48287] [PATCH v2] " Xinglu Chen
@ 2021-05-14 10:14   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2021-05-14 10:14 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 48287-done

Hi,

Xinglu Chen <public@yoctocell.xyz> skribis:

> * gnu/packages/guile-xyz.scm (guile-raw-strings): New variable.

Applied!  Thank you, and thanks, Maxime!

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-14 10:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 14:01 [bug#48287] [PATCH] gnu: Add guile-raw-strings Xinglu Chen
2021-05-08 21:18 ` Maxime Devos
2021-05-09  8:12   ` Xinglu Chen
2021-05-09  8:18 ` [bug#48287] [PATCH v2] " Xinglu Chen
2021-05-14 10:14   ` bug#48287: [PATCH] " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).