aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srcpkgs/guile-wisp/patches/escape.patch11
-rw-r--r--srcpkgs/guile-wisp/template16
2 files changed, 21 insertions, 6 deletions
diff --git a/srcpkgs/guile-wisp/patches/escape.patch b/srcpkgs/guile-wisp/patches/escape.patch
new file mode 100644
index 00000000000..b70da5f4e40
--- /dev/null
+++ b/srcpkgs/guile-wisp/patches/escape.patch
@@ -0,0 +1,11 @@
+--- a/wisp.py
++++ b/wisp.py
+@@ -101,7 +101,7 @@
+ line = (i)*" " + line[i:]
+ # \_ escapes the underscore at the beginning of a line, so you
+ # can use identifiers which only consist of underscores.
+- elif line.startswith("\_"):
++ elif line.startswith("\\_"):
+ line = "_" + line[2:]
+
+ #: prefix to go around the outer bracket: '(, ,( or `(
diff --git a/srcpkgs/guile-wisp/template b/srcpkgs/guile-wisp/template
index 6616a05384b..17fd9ef84de 100644
--- a/srcpkgs/guile-wisp/template
+++ b/srcpkgs/guile-wisp/template
@@ -1,15 +1,19 @@
# Template file for 'guile-wisp'
pkgname=guile-wisp
-version=1.0.2
+version=1.0.12
revision=1
build_style=gnu-configure
-configure_args="--datarootdir=/usr/share"
-hostmakedepends="guile pkg-config python3"
+configure_args="--datarootdir=/usr/share python3=python3"
+hostmakedepends="automake guile pkg-config python3"
makedepends="guile-devel"
-depends="guile>=2.0"
+depends="guile"
short_desc="SRFI-119 (WISP, Whitespace Lisp) implementation for guile"
maintainer="B. Wilson <x@wilsonb.com>"
license="GPL-3.0-or-later"
homepage="https://www.draketo.de/english/wisp"
-distfiles="https://bitbucket.org/ArneBab/wisp/downloads/wisp-${version}.tar.gz"
-checksum=c66d2bdf0ceffce7322783288ab40bb2a1aef0d1e55207ada7547999e43dff0e
+distfiles="https://hg.sr.ht/~arnebab/wisp/archive/v${version}.tar.gz"
+checksum=ad993295163ec64fef1a9ca69076caa4ecf338e7c90dd95d83c55e50d1984ac4
+
+pre_configure() {
+ autoreconf -fi
+}