Skip to content

Commit 77898e6

Browse files
committed
textproc/hs-typst: update to typst-0.8.0.1
## 0.8.0.1 * Fix subtracting units, e.g. `1mm-0mm` (#71, Luke Grehan). ## 0.8 * Allow `json`, `toml`, `xml` to take either file path or bytes. * Allow `read` to return bytes if encoding is 'none'. * `bibliography`, `image`: change parameter name to `source` and allow bytes. * Add 'bytes' as a type name and constructor. * Add VBytes constructor for Val and TBytes for ValType. [API change] * Allow values of arguments type to be added together. * Support `calc.norm`. * Math: add `lcm` operator. * Require typst-symbols >= 0.1.8.1 (#67), giving us typst 0.13 symbols. * Add "dictionary" as name of TDict type (#65). ## 0.7 * Fix problems with module loading paths (#62). * Skip whitespace before parsing key/value values in math (#64). * Parse the `delim` attribute (and any others) in `math.mat` (#64). * Methods: fix 'has' method so it works for sequences of elements. * Evaluate: run show rules after looking up an identifier. * Show rule changes: + ShowRule now has an extra parameter for a unique identifier. This allows us to prevent double application of show rules, while allowing distinct rules with the same selector. [API change] + In applying show rules, we no longer recurse into an element's fields, as this caused double application of show rules in nested contexts. (See #63.) However, this is not a complete fix because there are some tests that still fail. + Ensure that show rules are applied to text elements. * Reorganized tests. Now put the `.out` and `.typ` files in same directory, rather than having separate trees.
1 parent 94b5b62 commit 77898e6

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

textproc/hs-typst/DESCR

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
A library for parsing and evaluating typst syntax. Typst
2-
(https://typst.app) is a document layout and formatting language. This
3-
library targets typst 0.7 and currently offers only partial support.
1+
A library for parsing and evaluating typst syntax. Typst (https://typst.app) is
2+
a document layout and formatting language. This library targets typst 0.13 and
3+
currently offers only partial support.

textproc/hs-typst/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# $NetBSD: Makefile,v 1.8 2025/03/05 03:40:05 pho Exp $
1+
# $NetBSD: Makefile,v 1.9 2025/07/19 20:48:19 wiz Exp $
22

3-
DISTNAME= typst-0.6.2
4-
PKGREVISION= 1
3+
DISTNAME= typst-0.8.0.1
54
CATEGORIES= textproc
65
DIST_SUBDIR= hs-typst # So that it won't conflict with textproc/typst
76

textproc/hs-typst/buildlink3.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $NetBSD: buildlink3.mk,v 1.8 2025/03/05 03:40:05 pho Exp $
1+
# $NetBSD: buildlink3.mk,v 1.9 2025/07/19 20:48:19 wiz Exp $
22

33
BUILDLINK_TREE+= hs-typst
44

55
.if !defined(HS_TYPST_BUILDLINK3_MK)
66
HS_TYPST_BUILDLINK3_MK:=
77

8-
BUILDLINK_API_DEPENDS.hs-typst+= hs-typst>=0.6.2
9-
BUILDLINK_ABI_DEPENDS.hs-typst+= hs-typst>=0.6.2nb1
8+
BUILDLINK_API_DEPENDS.hs-typst+= hs-typst>=0.8.0
9+
BUILDLINK_ABI_DEPENDS.hs-typst+= hs-typst>=0.8.0.1
1010
BUILDLINK_PKGSRCDIR.hs-typst?= ../../textproc/hs-typst
1111

1212
.include "../../textproc/hs-typst-symbols/buildlink3.mk"

textproc/hs-typst/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.4 2025/02/23 22:03:42 wiz Exp $
1+
$NetBSD: distinfo,v 1.5 2025/07/19 20:48:19 wiz Exp $
22

3-
BLAKE2s (hs-typst/typst-0.6.2.tar.gz) = f2b0bb338dfa23775e757fcea2bc12b099327bde85975c20dbd06a8d4057fb3a
4-
SHA512 (hs-typst/typst-0.6.2.tar.gz) = 1bc8b2cb0bda4015703cda06e7e8d8bcf0bc866718e6654c66f674c4f29f24afe3e7c77aa9f7500c68310de149abf7a5e171cd89436262ad60306cc3b21e9d4f
5-
Size (hs-typst/typst-0.6.2.tar.gz) = 6437021 bytes
3+
BLAKE2s (hs-typst/typst-0.8.0.1.tar.gz) = 090ebeb3b3a5858b5c408e7146b08cbde6e187cf6fcc3131ed8955f6318552b6
4+
SHA512 (hs-typst/typst-0.8.0.1.tar.gz) = 0f2ebadcec766a60e20c5030435ab621f05034fe7f76e6b6477d857b830dd8a85f846a9f368db869b62d05e0ee8e01f8cffce79526ba6c7b2f68c72875a0f000
5+
Size (hs-typst/typst-0.8.0.1.tar.gz) = 6430160 bytes

0 commit comments

Comments
 (0)