Sun May 5 09:27:05 2024 UTC (22d)
converters/pandoc-cli: import pandoc-cli-3.1.13

Pandoc-cli provides a command-line executable that uses the pandoc library
to convert between markup formats.


(pho)
diff -r0 -r1.1 pkgsrc/converters/pandoc-cli/DESCR
diff -r0 -r1.1 pkgsrc/converters/pandoc-cli/Makefile
diff -r0 -r1.1 pkgsrc/converters/pandoc-cli/PLIST
diff -r0 -r1.1 pkgsrc/converters/pandoc-cli/distinfo
diff -r0 -r1.1 pkgsrc/converters/pandoc-cli/options.mk

File Added: pkgsrc/converters/pandoc-cli/DESCR
Pandoc-cli provides a command-line executable that uses the pandoc library
to convert between markup formats.

File Added: pkgsrc/converters/pandoc-cli/Makefile
# $NetBSD: Makefile,v 1.1 2024/05/05 09:27:05 pho Exp $

DISTNAME=	pandoc-cli-3.1.13
PKGNAME=	${DISTNAME}
CATEGORIES=	converters

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Conversion between documentation formats
LICENSE=	gnu-gpl-v2

# If pandoc is to be linked dynamically, it will depend on more than 180
# shared objects and the dynamic linker will spend several seconds to
# resolve symbols on startup. This is unacceptable because pandoc tends to
# be launched very frequently by build systems and editors. This wastes
# storage, but time is more expensive than disks.
HASKELL_ENABLE_DYNAMIC_EXECUTABLE=	no

.include "options.mk"

.include "../../converters/hs-pandoc/buildlink3.mk"
.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/converters/pandoc-cli/PLIST
@comment $NetBSD: PLIST,v 1.1 2024/05/05 09:27:05 pho Exp $
bin/pandoc
share/doc/${HS_PLATFORM}/${PKGNAME}/COPYING.md

File Added: pkgsrc/converters/pandoc-cli/distinfo
$NetBSD: distinfo,v 1.1 2024/05/05 09:27:05 pho Exp $

BLAKE2s (pandoc-cli-3.1.13.tar.gz) = 2cc09e7a5c920a1604bd1d2f6384e8bbf49756c24b3f119e7789ebcd9909adb6
SHA512 (pandoc-cli-3.1.13.tar.gz) = 3536accceb38db443e16d2f9f4827d5ecf123e39d3e684ad08324152149baa16d299484e5782bfa2cec1f41ba88c6bb7c62914a6e495e24e71126e79f1f5ff30
Size (pandoc-cli-3.1.13.tar.gz) = 94034 bytes

File Added: pkgsrc/converters/pandoc-cli/options.mk
# $NetBSD: options.mk,v 1.1 2024/05/05 09:27:05 pho Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.pandoc
PKG_SUPPORTED_OPTIONS=	lua server
PKG_SUGGESTED_OPTIONS=	lua

.include "../../mk/bsd.options.mk"

###
### Lua scripting engine, used for running filters, custom readers, and
### custom writers written in Lua.
###
.if !empty(PKG_OPTIONS:Mlua)
CONFIGURE_ARGS+=	-f lua
.include "../../lang/hs-hslua-cli/buildlink3.mk"
.include "../../converters/hs-pandoc-lua-engine/buildlink3.mk"
.include "../../sysutils/hs-temporary/buildlink3.mk"
.else
CONFIGURE_ARGS+=	-f-lua
.endif

###
### Pandoc as an HTTP server providing a REST API to perform format
### conversions.
###
.if !empty(PKG_OPTIONS:Mserver)
CONFIGURE_ARGS+=	-f server
.include "../../converters/hs-pandoc-server/buildlink3.mk"
.include "../../devel/hs-safe/buildlink3.mk"
.include "../../www/hs-wai-extra/buildlink3.mk"
.include "../../www/hs-warp/buildlink3.mk"
.else
CONFIGURE_ARGS+=	-f-server
.endif