git: 0a9279c8430b - main - textproc/hs-pandoc: Install man pages

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 31 Aug 2024 09:41:31 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a9279c8430bdb87ff1a7d9f07c58b8eddcf3b4f

commit 0a9279c8430bdb87ff1a7d9f07c58b8eddcf3b4f
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-08-31 08:36:08 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-08-31 09:41:15 +0000

    textproc/hs-pandoc: Install man pages
    
    PR:             281076
---
 textproc/hs-pandoc/Makefile  | 7 ++++++-
 textproc/hs-pandoc/pkg-plist | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/textproc/hs-pandoc/Makefile b/textproc/hs-pandoc/Makefile
index 34636eae19de..6c80b33286ea 100644
--- a/textproc/hs-pandoc/Makefile
+++ b/textproc/hs-pandoc/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pandoc
 DISTVERSION=	3.3
+PORTREVISION=	1
 CATEGORIES=	textproc haskell
 
 MAINTAINER=	haskell@FreeBSD.org
@@ -197,7 +198,6 @@ USE_CABAL=	Glob-0.10.2_3 \
 		zip-archive-0.4.3.2_1 \
 		zlib-0.7.1.0_1
 
-CABAL_FLAGS=	lua
 CABAL_WRAPPER_SCRIPTS=	${CABAL_EXECUTABLES}
 
 OPTIONS_DEFINE=		EMBED_DATA
@@ -222,6 +222,11 @@ HACKAGE_DISTNAME=	pandoc-cli-${PORTVERSION}
 BUILD_ARGS+=	--disable-optimization
 .endif
 
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/man/pandoc.1 ${STAGEDIR}${PREFIX}/share/man/man1
+	${INSTALL_MAN} ${WRKSRC}/man/pandoc-lua.1 ${STAGEDIR}${PREFIX}/share/man/man1
+	${INSTALL_MAN} ${WRKSRC}/man/pandoc-server.1 ${STAGEDIR}${PREFIX}/share/man/man1
+
 post-install-EMBED_DATA-off:
 	cd ${CABAL_DEPSDIR}/${PORTNAME}-${PORTVERSION} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}
 
diff --git a/textproc/hs-pandoc/pkg-plist b/textproc/hs-pandoc/pkg-plist
index 686ffb6680d2..6d32d7239b4b 100644
--- a/textproc/hs-pandoc/pkg-plist
+++ b/textproc/hs-pandoc/pkg-plist
@@ -1,3 +1,6 @@
+share/man/man1/pandoc-lua.1.gz
+share/man/man1/pandoc-server.1.gz
+share/man/man1/pandoc.1.gz
 %%NO_EMBED_DATA%%%%DATADIR%%/data/abbreviations
 %%NO_EMBED_DATA%%%%DATADIR%%/data/bash_completion.tpl
 %%NO_EMBED_DATA%%%%DATADIR%%/data/creole.lua