head 1.23; access; symbols pkgsrc-2026Q1:1.23.0.2 pkgsrc-2026Q1-base:1.23 pkgsrc-2025Q4:1.18.0.6 pkgsrc-2025Q4-base:1.18 pkgsrc-2025Q3:1.18.0.4 pkgsrc-2025Q3-base:1.18 pkgsrc-2025Q2:1.18.0.2 pkgsrc-2025Q2-base:1.18 pkgsrc-2025Q1:1.17.0.12 pkgsrc-2025Q1-base:1.17 pkgsrc-2024Q4:1.17.0.10 pkgsrc-2024Q4-base:1.17 pkgsrc-2024Q3:1.17.0.8 pkgsrc-2024Q3-base:1.17 pkgsrc-2024Q2:1.17.0.6 pkgsrc-2024Q2-base:1.17 pkgsrc-2024Q1:1.17.0.4 pkgsrc-2024Q1-base:1.17 pkgsrc-2023Q4:1.17.0.2 pkgsrc-2023Q4-base:1.17 pkgsrc-2023Q3:1.14.0.8 pkgsrc-2023Q3-base:1.14 pkgsrc-2023Q2:1.14.0.6 pkgsrc-2023Q2-base:1.14 pkgsrc-2023Q1:1.14.0.4 pkgsrc-2023Q1-base:1.14 pkgsrc-2022Q4:1.14.0.2 pkgsrc-2022Q4-base:1.14 pkgsrc-2022Q3:1.13.0.2 pkgsrc-2022Q3-base:1.13 pkgsrc-2022Q2:1.12.0.2 pkgsrc-2022Q2-base:1.12 pkgsrc-2022Q1:1.11.0.14 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.11.0.12 pkgsrc-2021Q4-base:1.11 pkgsrc-2021Q3:1.11.0.10 pkgsrc-2021Q3-base:1.11 pkgsrc-2021Q2:1.11.0.8 pkgsrc-2021Q2-base:1.11 pkgsrc-2021Q1:1.11.0.6 pkgsrc-2021Q1-base:1.11 pkgsrc-2020Q4:1.11.0.4 pkgsrc-2020Q4-base:1.11 pkgsrc-2020Q3:1.11.0.2 pkgsrc-2020Q3-base:1.11 pkgsrc-2020Q2:1.10.0.10 pkgsrc-2020Q2-base:1.10 pkgsrc-2020Q1:1.10.0.6 pkgsrc-2020Q1-base:1.10 pkgsrc-2019Q4:1.10.0.8 pkgsrc-2019Q4-base:1.10 pkgsrc-2019Q3:1.10.0.4 pkgsrc-2019Q3-base:1.10 pkgsrc-2019Q2:1.10.0.2 pkgsrc-2019Q2-base:1.10 pkgsrc-2019Q1:1.8.0.6 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.4 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.2 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.6.0.4 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.2 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.2.0.20 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.18 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.14 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.12 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.10 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.8 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.6 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.4 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.1.0.20 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.18 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.16 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.14 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.12 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.10 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @# @; 1.23 date 2026.01.19.07.58.15; author wiz; state Exp; branches; next 1.22; commitid pLoP4LeUZfhoBYqG; 1.22 date 2026.01.05.08.42.29; author wiz; state Exp; branches; next 1.21; commitid zPVgseyHKIknibpG; 1.21 date 2026.01.04.21.56.31; author wiz; state Exp; branches; next 1.20; commitid 1fvg44a4IbNPI7pG; 1.20 date 2026.01.04.21.21.00; author wiz; state Exp; branches; next 1.19; commitid v5lHyiQL8CCww7pG; 1.19 date 2026.01.04.20.50.33; author wiz; state Exp; branches; next 1.18; commitid TQgCKWQQFWRfm7pG; 1.18 date 2025.05.05.22.11.17; author wiz; state Exp; branches; next 1.17; commitid cgcfOZJmSI4cELTF; 1.17 date 2023.10.13.15.50.20; author schmonz; state Exp; branches; next 1.16; commitid pHsHxKwgIeZlRtIE; 1.16 date 2023.10.07.19.50.53; author schmonz; state Exp; branches; next 1.15; commitid Ys2kj9j5nxTVnJHE; 1.15 date 2023.10.07.19.50.24; author schmonz; state Exp; branches; next 1.14; commitid 6O6jGUf3HikOnJHE; 1.14 date 2022.11.15.11.37.56; author schmonz; state Exp; branches; next 1.13; commitid Lo6TSOHAcIVx8N1E; 1.13 date 2022.07.25.11.12.29; author wiz; state Exp; branches; next 1.12; commitid 6RYOoAzN4cnKCgND; 1.12 date 2022.04.17.22.41.39; author wiz; state Exp; branches; next 1.11; commitid 4Ombg7FLaf1GCBAD; 1.11 date 2020.09.18.20.18.55; author schmonz; state Exp; branches; next 1.10; commitid gPWq6P5o5MbGlzoC; 1.10 date 2019.06.11.10.03.07; author leot; state Exp; branches; next 1.9; commitid Oy8sRwdxWLz3TKqB; 1.9 date 2019.06.10.13.32.56; author schmonz; state Exp; branches; next 1.8; commitid HYpJNDnUp4665EqB; 1.8 date 2018.08.27.20.46.18; author schmonz; state Exp; branches; next 1.7; commitid 5pGRlOuMYDQIHNPA; 1.7 date 2018.07.27.15.50.45; author schmonz; state Exp; branches; next 1.6; commitid TvEbQOivadkQ3NLA; 1.6 date 2018.03.17.20.54.06; author schmonz; state Exp; branches; next 1.5; commitid jtBpgjPQ7UgfZQuA; 1.5 date 2018.03.16.03.45.18; author schmonz; state Exp; branches; next 1.4; commitid qVJDVAUXF0NikDuA; 1.4 date 2018.03.10.05.37.44; author schmonz; state Exp; branches; next 1.3; commitid KUp2gSZq4rfK8StA; 1.3 date 2018.03.08.18.17.30; author schmonz; state Exp; branches; next 1.2; commitid UfU7bSoH6CospGtA; 1.2 date 2015.11.04.01.10.18; author leot; state Exp; branches; next 1.1; commitid xwWBrqcQlHSicIHy; 1.1 date 2013.04.04.09.40.23; author wiz; state Exp; branches; next ; desc @@ 1.23 log @discount: update to 2.2.7e includes NetBSD fix. @ text @# $NetBSD: Makefile,v 1.22 2026/01/05 08:42:29 wiz Exp $ DISTNAME= discount-2.2.7e CATEGORIES= textproc MASTER_SITES= https://www.pell.portland.or.us/~orc/Code/discount/ #MASTER_SITES= ${MASTER_SITE_GITHUB:=Orc/} #GITHUB_TAG= v${PKGVERSION_NOREV} EXTRACT_SUFX= .tar.bz2 MAINTAINER= schmonz@@NetBSD.org HOMEPAGE= http://www.pell.portland.or.us/~orc/Code/discount/ COMMENT= Markdown C implementation LICENSE= modified-bsd WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} CONFLICTS+= multimarkdown-[0-9]* HAS_CONFIGURE= YES CONFIGURE_SCRIPT= ./configure.sh CONFIGURE_ARGS= --prefix=${PREFIX} CONFIGURE_ARGS+= --execdir=${PREFIX}/bin CONFIGURE_ARGS+= --libdir=${PREFIX}/lib CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} CONFIGURE_ARGS+= --shared CONFIGURE_ARGS+= --enable-all-features USE_LIBTOOL= yes PKGCONFIG_OVERRIDE+= libmarkdown.pc.in INSTALL_TARGET= install.everything TEST_TARGET= test .include "../../mk/bsd.pkg.mk" @ 1.22 log @discount: force unsigned chars on NetBSD Fixes p5-Text-Markdown-Discount. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2026/01/04 21:56:31 wiz Exp $ d3 1 a3 2 DISTNAME= discount-2.2.7d PKGREVISION= 2 d5 4 a8 2 MASTER_SITES= ${MASTER_SITE_GITHUB:=Orc/} GITHUB_TAG= v${PKGVERSION_NOREV} a27 2 CFLAGS.NetBSD+= -funsigned-char @ 1.21 log @discount: revert update, breaks p5-Text-Markdown-Discount @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2025/05/05 22:11:17 wiz Exp $ d4 1 a4 1 PKGREVISION= 1 d27 2 @ 1.20 log @discount: update to 3.0.1.2. Changes not found. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2026/01/04 20:50:33 wiz Exp $ d3 2 a4 1 DISTNAME= discount-3.0.1.2 d10 1 a10 1 HOMEPAGE= https://www.pell.portland.or.us/~orc/Code/discount/ @ 1.19 log @discount: switch to https @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2025/05/05 22:11:17 wiz Exp $ d3 1 a3 2 DISTNAME= discount-2.2.7d PKGREVISION= 1 @ 1.18 log @discount: fix isspace() usage Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2023/10/13 15:50:20 schmonz Exp $ d10 1 a10 1 HOMEPAGE= http://www.pell.portland.or.us/~orc/Code/discount/ @ 1.17 log @discount: take MAINTAINER (email timeout after a week). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2023/10/07 19:50:53 schmonz Exp $ d4 1 @ 1.16 log @discount: indent Makefile, NFCI. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2023/10/07 19:50:24 schmonz Exp $ d8 1 a8 1 MAINTAINER= zecrazytux@@zecrazytux.net @ 1.15 log @discount: update to 2.2.7d. From the changelog: * port the m-e footnote bugfix to v2maint * trivialities; change the -fstrict option description * add a fistful of test cases for the new! improved! Markdown.pl compatible * rework the tag handler to more closely adhere to Markdown.pl's observed behavior; also treat incomplete tags as actual tags in compatability mode (-fstrict) * weird behavior on freebsd 4.8 w/ gcc 2.95.4; if a #ifdef ... #else ... #endif wraps the end of a if () it pukes up an error about a syntax error in a macro; pull those tests out and conditionally #define a macro instead * the behavior of tags-starting-with-alpha-/-! was not like that of the reference implementation; fixed (in a very script-kiddy leaky fashion which I can't resolve with a runtime flag thanks to the 32 bit flags field in the 2.x series :-( @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2022/11/15 11:37:56 schmonz Exp $ d3 9 a11 9 DISTNAME= discount-2.2.7d CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_GITHUB:=Orc/} GITHUB_TAG= v${PKGVERSION_NOREV} MAINTAINER= zecrazytux@@zecrazytux.net HOMEPAGE= http://www.pell.portland.or.us/~orc/Code/discount/ COMMENT= Markdown C implementation LICENSE= modified-bsd @ 1.14 log @Update to 2.2.7b. From the changelog: - Declare missing dependencies for pandoc_headers to fix parallel make @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2022/07/25 11:12:29 wiz Exp $ d3 1 a3 1 DISTNAME= discount-2.2.7b @ 1.13 log @*: remove pkg-config from tools where no buildlink3.mk file is included Bulk build on NetBSD of these packages had the same result as before (build succeeds, no PLIST change). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2022/04/17 22:41:39 wiz Exp $ d3 1 a3 1 DISTNAME= discount-2.2.7 @ 1.12 log @discount, multimarkdown: add CONFLICTS with each other due to bin/markdown @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2020/09/18 20:18:55 schmonz Exp $ a25 1 USE_TOOLS+= pkg-config @ 1.11 log @Update to 2.2.7. From the changelog: - fix a malloc overflow when doing mkd_anchor_format() @ text @d1 1 a1 2 # $NetBSD: Makefile,v 1.10 2019/06/11 10:03:07 leot Exp $ # d15 2 @ 1.10 log @discount: Simplify distfile handling @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2019/06/10 13:32:56 schmonz Exp $ d4 1 a4 1 DISTNAME= discount-2.2.6 @ 1.9 log @Update to 2.2.6. From the changelog: - make a test program to examine pandoc header elements - if __mkd_trim_line trims the entire line, manually set the string to \0 - add in a handful of test to verify that empty pandoc headers are not auto-populated with % - messed up the definition for missing attributes; should be /**/ instead of '', because AC_DEFINE will convert an empty string into a 1 - move flags.o down to the last line in OBJS= to work around a plan9 makefile bug - have peek() return an int instead of an unsigned int (netbsd 8; ctype functions explode with unsigned int arguments?) - fix all places where I pass flags to be DWORDs - include config.h before any other headers - make all instances of 'main()' be integer functions (sigh) - clean up all references to flags; define them EVERYWHERE as mkd_flag_t - shuffle around some of the definitions to make everything happily(?) compile with all instances of flags being mkd_flag_t - when checking that the C compiler works, compile the test program as two modules with a function declared with differing pointer types (char ptr vs void ptr) so if the C compiler generates type signatures and doesn't think a void pointer is the universal solvent it will fail right there - set the Plan9 CFLAGS to the two extensions (instead of having them be part of the CC macro) and wipe out any CFLAGS (like -T, which tells the Plan9 posix C compiler to be stupid) that already exists - tweak the Makefile macros a bit so people can wedge in their own compilers (BUILD) and linkers (LINK) during a build - add a list item for testing the build - patch the cmakefile so that has an option to only generate a library - push the fencedcode block handler up to the toplevel scanner so it will handle blank lines inside the fence - add a fenced code block with embedded html - don't give a code block class if it's just an empty string - add a test case for a piece of fenced code with trailing spaces after the opening ~~~ - deal with cached text before handling fenced code blocks - yank the repeated inline uncaches out and stuff them into a local function - add two more tests (unfinished fenced code block, paragraph then fenced code block) to codeblock.t - don't publish mkd_string_to_anchor - add an anchor format callback, plus add the -x option to the markdown program to squash toc anchors to (close to) github compatability - add some dle sanity checking into onlyifset() - when dumping the parse tree, say which header is being dumped -- h1..h6 vs just header - tweak configure to (a) use the modern standard uintXX_t types for DWORD, WORD, BYTE if possible and (b) if a program is defined via an environment variable (like CC) try to use that variable instead of doing a path search in AC_PROG - tweak how scalar headers are include in .in files - support external code formatters - add an external code block formatter to the markdown program - mkd2html wasn't passing pgm to hoptusage() - mkd2html wasn't properly handling two arguments for input & output files. While I was at it, add the -G option to use gfm_in() to read the input file in (and preserve newlines) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2018/08/27 20:46:18 schmonz Exp $ d4 1 a4 3 GITHUB_PROJECT= discount DISTNAME= v2.2.6 PKGNAME= ${GITHUB_PROJECT}-${DISTNAME:S/^v//} d7 1 a7 1 DIST_SUBDIR= ${GITHUB_PROJECT} @ 1.8 log @Update to 2.2.4. From the changelog: 1. (bugfix) when splitting a line, null terminate the new line; also don’t inherit the dle from the previous line 2. (bugfix) fix the broken footnote code; allow multi-paragraph footnotes, not just one line of footnote. 3. (feature) support github checkbox list items (static configuration option) a. --github-checkbox does the checkbox with html check entities b. --github-checkbox=input does them with html elements (set to disabled so that people can’t check and uncheck willy-nilly) 4. (feature) on systems that support it, use the ‘destructor’ attribute on mkd_shlib_destructor() so it will run automatically when the library unloads. 5. (feature) add --cxx-binding option to configure.sh to generate a mkdio.h that’s got an extern "C" wrapper around it. 6. (tweak)delete HGROUP from the list of html5 elements, because the w3c working group decided to punt it The bugfix for not null-terminating a split line was reported by Github user fCorleone, who was running a input mangler program (afl) to stress discount by feeding random garbage to it. It saw that the splitline() function (used when breaking out embedded chunks of html) was not null-terminating the split line chunks, and was throwing errors on that. (this is something that clang on modern macos catches if you use the -fsanitize=address option.) I never actually use footnotes, so I’d been running for about a decade assuming that footnotes were one or maybe two lines, but github user somasis pointed out that this was wrong wrong wrong! Ooops; at least it was fixable w/o much pain and suffering. HGROUP was caught by github user Crypto-Anarchist in their own branch of discount, so I cherry-picked that changeset and pulled it back into the mainline discount. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2018/07/27 15:50:45 schmonz Exp $ d4 3 a6 1 DISTNAME= discount-2.2.4 d8 2 a9 2 MASTER_SITES= ${HOMEPAGE} EXTRACT_SUFX= .tar.bz2 d16 2 d27 1 d30 2 @ 1.7 log @Cast another unsigned char to fix self-tests on NetBSD 8. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2018/03/17 20:54:06 schmonz Exp $ d4 1 a4 2 DISTNAME= discount-2.2.3a PKGREVISION= 4 @ 1.6 log @Cast tolower/isspace/isalpha args to unsigned char to fix self-tests on NetBSD. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2018/03/16 03:45:18 schmonz Exp $ d5 1 a5 1 PKGREVISION= 3 @ 1.5 log @Libtoolize for portability across pkgsrc platforms. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2018/03/10 05:37:44 schmonz Exp $ d5 1 a5 1 PKGREVISION= 2 @ 1.4 log @Build and install shared library. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2018/03/08 18:17:30 schmonz Exp $ d5 1 a5 1 PKGREVISION= 1 d24 2 @ 1.3 log @Update to 2.2.3a. From the changelog: 2.2.3a: 2.2.3 has a configuration glitch (not properly testing for the existance of S_ISSOCK, et seq) which 2.2.3a corrects. I also pulled the plug on the single use of `alloca()` in `theme.c` (Windows MinGW doesn't support it properly(?) and in this one case I'm better off just `malloc()`ing the offending thing and letting it be garbage collected when the program finishes.) 2.2.3: I turn around and blink, and suddenly 13 months have done by while I slowly tested various beta versions of 2.2.3, and now it's 2018 and a small collection of cosmetic, portability, and build tweaks, plus some and actually bad bugs have been cleaned up: 1. Have `tools/branch` be a no-op if there's no git that I can use to check for my SCCS status. 2. Add user-contributed cmake support 3. check for non-null T(link) in the safelink function; rename paranoia.t to safelink.t, add a couple more tests for safelinks 4. tweak the safelink detection code to allow more types of url fragments 5. when finding the installer, check that -s works (doesn't work on Minix 3?) 6. Correct makepage & theme to use the new set_flag() return scheme (0==success, !0==pointer to bogus flag) 7. if an unknown flag was in the middle of a comma-delimited flag string (like -flatex,bogus,footnote), the markdown program would incorrectly report the first flag as unknown (because set_flag returned 0 on error, 1 on success and the strtok() of the flag string had already replaced the commas up to that point with nulls.) Change it so that set_flag returns null on successful processing and a pointer to the offending flag on an unknown one. 8. Tweak the install rule to install a GNU-style .pc file iff @@MK_PKGCONFIG@@ is not defined as # 9. Hand-resolve a conflict in the msvc Makefile 10. Add in paranoid list splitting [EXPLICITLIST] (the default behavior many many versions ago before I realized it wasn't the standard) (and take the last of the 32-bit flag mask for it) between adjacent ordered and unordered lists. 11. Create a utility function [`notspecial()`] for theme & mkd2html -- check a filename to see if it's a special file that doesn't need to be deleted or to have a .html suffix added to it. It only works on machines that have a stat() system call + the S_ISFIFO, S_ISCHR, and S_ISSOCK macros, otherwise it thinks that nothing is special. 12. Add a README for the utilities in the tools subdirectory 13. Add the git branch name into the version string if we're not on the master branch. 14. Add support for NMAKE and Visual C++ toolset. (courtesy of Martin Hofmann (tin-pot) fork of Discount). 15. Add a 'dirty' flag to the Document structure & set it whenever a callback changes (github issue #136) so that the next mkd_compile will regenerate the document. 16. Tweak superscript handling to be able to superscript something wrapped in html 17. Tweak the `show_flags()` function so that if it's called verbosely it will show synonyms for named flags. (Calling it verbosely is done by the `V` option, which is overloaded for verbosity when listing flags.) 18. Process html blocks in compile (as well as in compile_document(); `compile_document()` needs to handle `