pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/lowdown



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Mar  9 17:32:36 UTC 2026

Modified Files:
        pkgsrc/textproc/lowdown: Makefile PLIST buildlink3.mk distinfo
        pkgsrc/textproc/lowdown/patches: patch-Makefile

Log Message:
lowdown: update to 3.0.0.

Added initial support for outputting modern Unix manpages with
-tmdoc. This is intended as a replacement for the legacy -tman.
Supplement this with --roff-manpage, which accepts a markdown file
that looks like a Unix manpage and attempts to convert it into a
well-formed mdoc or man. Most of this is purely syntactic, but
several sections in Unix manpages (e.g., the NAME and SYNOPSIS)
have a rigorous syntax that this mode attempts to output.

Several minor (but breaking) changes to the API to take up fewer
bits in the oflags field of struct lowdown_opts: consolidate all
XXX_NOLINK, XXX_RELLINK, and XXX_SHORTLINK as LOWDOWN_NOLINK,
LOWDOWN_RELLINK, and LOWDOWN_SHORTLINK. This only applies to the
LOWDOWN_MAN, LOWDOWN_MS, and LOWDOWN_TERM output modes. The earlier
LOWDOWN_NROFF output mode is deprecated and is now an alias for
LOWDOWN_MS, which should be used moving forward.

Do the same with the various XXX_SKIP_HTML bits.

Deprecate the lowdown_nroff_xxx in favour of lowdown_roff_xxx. The
functions remain as deprecated and passing through to the new
equivalents.

Deprecate the macro variables LOWDOWN_NROFF_GROFF LOWDOWN_NROFF_NUMBERED
LOWDOWN_NROFF_MANPAGE LOWDOWN_NROFF_ENDNOTES in favour of their
ROFF names. The old macros are aliased for compatibility.

Library bumped from version 2 to 3 for those reasons.

Tweak the behaviour of -tterm and --term-no-links (or --term-no-rellinks)
with respect to embedded images and no text so that there's always
a clickable link and image component, if possible.

Add --roff-no-rellinks, similar to --term-no-rellinks. Respect
--roff-short-links in more cases as well.

Change the behaviour of -tms and -tman where --roff-no-links (or
the new --roff-no-rellinks) will have consistent behaviour even if
--roff-traditional is not specified.

Fix that, when using lowdown-diff for the terminal, resetting the
colour after an insertion or delete would trigger the black colour,
which obviously doesn't work with a black background. Instead, use
the default colour.

When generating header identifiers in -thtml, incorporate codespan
text as well. This is the same as pandoc's default behaviour as
well.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/textproc/lowdown/Makefile \
    pkgsrc/textproc/lowdown/distinfo
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/lowdown/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/lowdown/buildlink3.mk
cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/lowdown/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/lowdown/Makefile
diff -u pkgsrc/textproc/lowdown/Makefile:1.38 pkgsrc/textproc/lowdown/Makefile:1.39
--- pkgsrc/textproc/lowdown/Makefile:1.38       Wed Nov 19 15:54:26 2025
+++ pkgsrc/textproc/lowdown/Makefile    Mon Mar  9 17:32:36 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2025/11/19 15:54:26 gutteridge Exp $
+# $NetBSD: Makefile,v 1.39 2026/03/09 17:32:36 wiz Exp $
 
-DISTNAME=              lowdown-2.0.4
-PKGREVISION=           2
+DISTNAME=              lowdown-3.0.0
 CATEGORIES=            textproc
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=kristapsdz/}
 GITHUB_TAG=            refs/tags/VERSION_${PKGVERSION_NOREV:S/./_/g}
Index: pkgsrc/textproc/lowdown/distinfo
diff -u pkgsrc/textproc/lowdown/distinfo:1.38 pkgsrc/textproc/lowdown/distinfo:1.39
--- pkgsrc/textproc/lowdown/distinfo:1.38       Wed Nov 19 15:54:26 2025
+++ pkgsrc/textproc/lowdown/distinfo    Mon Mar  9 17:32:36 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.38 2025/11/19 15:54:26 gutteridge Exp $
+$NetBSD: distinfo,v 1.39 2026/03/09 17:32:36 wiz Exp $
 
-BLAKE2s (lowdown-2.0.4.tar.gz) = 7d38d8b84eddc7587579c3a99880ac707c83fc067c1b2c16fa5afb95f4361da3
-SHA512 (lowdown-2.0.4.tar.gz) = db396f738c3effdd55f112f2f71183b32b45ae2f8ba999e03df5162612e26a313d7b3ca1c5840cb71805f4429a4a3b67fe61a731aadc5cc989b74ff2da2d5b7e
-Size (lowdown-2.0.4.tar.gz) = 697300 bytes
-SHA1 (patch-Makefile) = 2006a2e2f0aadff360dfa57cc5af2e2bbff4f3fb
+BLAKE2s (lowdown-3.0.0.tar.gz) = fa1a2222cd54ad069d563c080c475825139c2d90fb8c100d5a9bb83e76c77ccb
+SHA512 (lowdown-3.0.0.tar.gz) = 9d28166f86e1d3860b36b10bcf1c1b2bb4be2f0cecfbfc3ecf36fa12dbd04f52f7deb7d457c76bcddcbba72f5c355246fed02675b45c36a81f40a5c34f240567
+Size (lowdown-3.0.0.tar.gz) = 763938 bytes
+SHA1 (patch-Makefile) = 6cfb9a0585ece7b7a01446e170fb2a98b4bc9e0f

Index: pkgsrc/textproc/lowdown/PLIST
diff -u pkgsrc/textproc/lowdown/PLIST:1.13 pkgsrc/textproc/lowdown/PLIST:1.14
--- pkgsrc/textproc/lowdown/PLIST:1.13  Fri Jun  6 23:10:26 2025
+++ pkgsrc/textproc/lowdown/PLIST       Mon Mar  9 17:32:36 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2025/06/06 23:10:26 wiz Exp $
+@comment $NetBSD: PLIST,v 1.14 2026/03/09 17:32:36 wiz Exp $
 bin/lowdown
 bin/lowdown-diff
 include/lowdown.h
@@ -28,12 +28,12 @@ man/man3/lowdown_latex_new.3
 man/man3/lowdown_latex_rndr.3
 man/man3/lowdown_metaq_free.3
 man/man3/lowdown_node_free.3
-man/man3/lowdown_nroff_free.3
-man/man3/lowdown_nroff_new.3
-man/man3/lowdown_nroff_rndr.3
 man/man3/lowdown_odt_free.3
 man/man3/lowdown_odt_new.3
 man/man3/lowdown_odt_rndr.3
+man/man3/lowdown_roff_free.3
+man/man3/lowdown_roff_new.3
+man/man3/lowdown_roff_rndr.3
 man/man3/lowdown_term_free.3
 man/man3/lowdown_term_new.3
 man/man3/lowdown_term_rndr.3

Index: pkgsrc/textproc/lowdown/buildlink3.mk
diff -u pkgsrc/textproc/lowdown/buildlink3.mk:1.2 pkgsrc/textproc/lowdown/buildlink3.mk:1.3
--- pkgsrc/textproc/lowdown/buildlink3.mk:1.2   Fri May 26 20:38:47 2023
+++ pkgsrc/textproc/lowdown/buildlink3.mk       Mon Mar  9 17:32:36 2026
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2023/05/26 20:38:47 schmonz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2026/03/09 17:32:36 wiz Exp $
 
 BUILDLINK_TREE+=       lowdown
 
@@ -6,6 +6,7 @@ BUILDLINK_TREE+=        lowdown
 LOWDOWN_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.lowdown+=        lowdown>=1.0.2
+BUILDLINK_ABI_DEPENDS.lowdown+=        lowdown>=3.0.0
 BUILDLINK_PKGSRCDIR.lowdown?=  ../../textproc/lowdown
 .endif # LOWDOWN_BUILDLINK3_MK
 

Index: pkgsrc/textproc/lowdown/patches/patch-Makefile
diff -u pkgsrc/textproc/lowdown/patches/patch-Makefile:1.9 pkgsrc/textproc/lowdown/patches/patch-Makefile:1.10
--- pkgsrc/textproc/lowdown/patches/patch-Makefile:1.9  Wed Nov 19 15:54:26 2025
+++ pkgsrc/textproc/lowdown/patches/patch-Makefile      Mon Mar  9 17:32:36 2026
@@ -1,8 +1,8 @@
-$NetBSD: patch-Makefile,v 1.9 2025/11/19 15:54:26 gutteridge Exp $
+$NetBSD: patch-Makefile,v 1.10 2026/03/09 17:32:36 wiz Exp $
 
 Libtoolize for portable shared libraries.
 
---- Makefile.orig      2025-11-17 03:25:46.000000000 +0000
+--- Makefile.orig      2026-03-07 20:47:42.000000000 +0000
 +++ Makefile
 @@ -1,5 +1,6 @@
  .PHONY: regress regen_regress valgrind
@@ -11,9 +11,9 @@ Libtoolize for portable shared libraries
  
  include Makefile.configure
  WWWDIR                 = /var/www/vhosts/kristaps.bsd.lv/htdocs/lowdown
-@@ -189,7 +190,12 @@ REGRESS_ARGS      += "--parse-no-deflists"
+@@ -200,7 +201,12 @@ REGRESS_ENV        = LC_ALL=C.UTF-8
  
- REGRESS_ENV    = LC_ALL=en_US.UTF-8
+ REGRESS_ENV    = LC_ALL=C.UTF-8
  
 -all: bins lowdown.pc $(LIB_SO)
 +LIBTOOL                 = libtool --tag=CC
@@ -24,8 +24,8 @@ Libtoolize for portable shared libraries
 +
  bins: lowdown lowdown-diff
  
- www: all $(HTMLS) $(PDFS) $(THUMBS) lowdown.tar.gz lowdown.tar.gz.sha512
-@@ -202,15 +208,20 @@ installwww: www
+ www: all $(HTMLS) $(PDFS) $(THUMBS) $(TEXTS) lowdown.tar.gz lowdown.tar.gz.sha512
+@@ -213,15 +219,20 @@ installwww: www
        $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots
        $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots
  
@@ -49,7 +49,7 @@ Libtoolize for portable shared libraries
  $(LIB_SO): $(OBJS) $(COMPAT_OBJS)
        $(CC) $(LINKER_SOFLAG) -o $(LIB_SOVER) $(OBJS) $(COMPAT_OBJS) \
                $(LDFLAGS) $(LDADD_MD5) -lm \
-@@ -240,8 +251,8 @@ install: bins
+@@ -251,8 +262,8 @@ install: bins
        $(INSTALL_DATA) share/man/* $(DESTDIR)$(SHAREDIR)/lowdown/man
        $(INSTALL_DATA) share/ms/* $(DESTDIR)$(SHAREDIR)/lowdown/ms
        $(INSTALL_DATA) share/odt/* $(DESTDIR)$(SHAREDIR)/lowdown/odt
@@ -60,7 +60,7 @@ Libtoolize for portable shared libraries
        for f in $(MAN1S) $(MAN5S) ; do \
                name=`basename $$f .html` ; \
                section=$${name##*.} ; \
-@@ -272,6 +283,9 @@ install_lib_common: lowdown.pc
+@@ -283,6 +294,9 @@ uninstall_shared: uninstall_lib_common
  uninstall_shared: uninstall_lib_common
        rm -f $(LIBDIR)/$(LIB_SOVER) $(LIBDIR)/$(LIB_SO)
  
@@ -70,9 +70,9 @@ Libtoolize for portable shared libraries
  install_shared: $(LIB_SO) install_lib_common
        $(INSTALL_LIB) $(LIB_SOVER) $(DESTDIR)$(LIBDIR)
        ( cd $(DESTDIR)$(LIBDIR) && ln -sf $(LIB_SOVER) $(LIB_SO) )
-@@ -344,6 +358,9 @@ diff.diff.pdf: diff.md diff.old.md lowdo
- 
- $(HTMLS): versions.xml lowdown
+@@ -370,6 +384,9 @@ $(HTMLS): versions.xml lowdown
+ .xml.html:
+       sblg -t template.xml -s date -o $@ -C $< $< versions.xml
  
 +.c.lo:
 +      $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $<
@@ -80,12 +80,12 @@ Libtoolize for portable shared libraries
  .md.xml: lowdown
        ( echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" ; \
          echo "<article data-sblg-article=\"1\">" ; \
-@@ -396,13 +413,13 @@ lowdown.tar.gz:
+@@ -424,15 +441,15 @@ lowdown.tar.gz:
        ( cd .dist/ && tar zcf ../$@ lowdown-$(VERSION) )
        rm -rf .dist/
  
 -$(OBJS) $(COMPAT_OBJS) main.o: config.h
-+$(LT_OBJS) $(LT_COMPAT_OBJS) main.lo: config.h
++$(LT_OBJS) $(COMPAT_OBJS) main.o: config.h
  
 -$(OBJS): extern.h lowdown.h
 +$(LT_OBJS): extern.h lowdown.h
@@ -93,6 +93,9 @@ Libtoolize for portable shared libraries
 -term.o: term.h
 +term.lo: term.h
  
+-roff.o roff_manpage.o: roff.h
++roff.lo roff_manpage.lo: roff.h
+ 
 -main.o: lowdown.h
 +main.lo: lowdown.h
  



Home | Main Index | Thread Index | Old Index