Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2024 08:40:19 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 169433d89d1c - main - textproc/hs-pandoc-crossref: Build and install manpage
Message-ID:  <202409080840.4888eJBd001814@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=169433d89d1c95d21696da686d691e6966441383

commit 169433d89d1c95d21696da686d691e6966441383
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-09-08 08:39:35 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-09-08 08:39:58 +0000

    textproc/hs-pandoc-crossref: Build and install manpage
    
    PR:             281077
---
 textproc/hs-pandoc-crossref/Makefile | 23 ++++++++++++++++++++---
 textproc/hs-pandoc-crossref/distinfo |  4 +++-
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/textproc/hs-pandoc-crossref/Makefile b/textproc/hs-pandoc-crossref/Makefile
index 213d6bafbec1..a9b08b34f2e8 100644
--- a/textproc/hs-pandoc-crossref/Makefile
+++ b/textproc/hs-pandoc-crossref/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pandoc-crossref
 PORTVERSION=	0.3.17.1
+PORTREVISION=	1
 CATEGORIES=	textproc haskell
 
 MAINTAINER=	haskell@FreeBSD.org
@@ -11,7 +12,11 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		cabal
 
-USE_CABAL=	Glob-0.10.2_3 \
+PLIST_FILES=	bin/pandoc-crossref \
+		share/man/man1/pandoc-crossref.1.gz
+
+USE_CABAL=	pandoc-cli-${PANDOC_VER}
+USE_CABAL+=	Glob-0.10.2_3 \
 		JuicyPixels-3.3.9 \
 		OneTuple-0.4.2 \
 		Only-0.1_2 \
@@ -116,7 +121,7 @@ USE_CABAL=	Glob-0.10.2_3 \
 		optparse-applicative-0.18.1.0 \
 		ordered-containers-0.2.4 \
 		os-string-2.0.6 \
-		pandoc-3.3 \
+		pandoc-${PANDOC_VER} \
 		pandoc-types-1.23.1_2 \
 		pem-0.2.4 \
 		pretty-show-1.10 \
@@ -184,6 +189,18 @@ USE_CABAL=	Glob-0.10.2_3 \
 		zip-archive-0.4.3.2_1 \
 		zlib-0.7.1.0_1
 
-CABAL_REVISION=	2
+CABAL_EXECUTABLES=	pandoc-crossref pandoc
+CABAL_REVISION=		2
+SKIP_CABAL_PLIST=	yes
+
+PANDOC_VER=		3.3
+
+post-build:
+	${SETENV} pandoc_datadir=${WRKSRC}/_cabal_deps/pandoc-${PANDOC_VER} \
+		$$(${FIND} ${WRKSRC}/dist-newstyle -name pandoc -type f -perm +111) -s -t man ${WRKSRC}/docs/index.md -o ${WRKSRC}/docs/pandoc-crossref.1
+
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/bin/pandoc
+	${INSTALL_MAN} ${WRKSRC}/docs/pandoc-crossref.1 ${STAGEDIR}${PREFIX}/share/man/man1
 
 .include <bsd.port.mk>
diff --git a/textproc/hs-pandoc-crossref/distinfo b/textproc/hs-pandoc-crossref/distinfo
index 4598dbc92851..f2c31f67687e 100644
--- a/textproc/hs-pandoc-crossref/distinfo
+++ b/textproc/hs-pandoc-crossref/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1722944315
+TIMESTAMP = 1725712695
 SHA256 (cabal/pandoc-crossref-0.3.17.1/pandoc-crossref-0.3.17.1.tar.gz) = cb156ceb73269b949add64a877abbb602a4b448890d743a907f66d9b4989a755
 SIZE (cabal/pandoc-crossref-0.3.17.1/pandoc-crossref-0.3.17.1.tar.gz) = 73699
 SHA256 (cabal/pandoc-crossref-0.3.17.1/revision/2.cabal) = e814171ee529406137b18062a19719d24532769c5029aa04e6e2a09b29b6a303
@@ -271,6 +271,8 @@ SHA256 (cabal/os-string-2.0.6/os-string-2.0.6.tar.gz) = 22fcc7d5fc66676b5dfc57b7
 SIZE (cabal/os-string-2.0.6/os-string-2.0.6.tar.gz) = 44363
 SHA256 (cabal/pandoc-3.3/pandoc-3.3.tar.gz) = 62bae181ee0bef36dfad3da746220789368e8bf1d9a2555ee44dc672b8d7c6ed
 SIZE (cabal/pandoc-3.3/pandoc-3.3.tar.gz) = 7462867
+SHA256 (cabal/pandoc-cli-3.3/pandoc-cli-3.3.tar.gz) = 2a665b885ffb9259a29423d9021c7ce59878eca000515c0b58ea19795cd554d9
+SIZE (cabal/pandoc-cli-3.3/pandoc-cli-3.3.tar.gz) = 94839
 SHA256 (cabal/pandoc-types-1.23.1/pandoc-types-1.23.1.tar.gz) = ad0fa083d28d452b7d37a1c67a2c140137a5f29a2f52fd88e807fac20245a1c1
 SIZE (cabal/pandoc-types-1.23.1/pandoc-types-1.23.1.tar.gz) = 36480
 SHA256 (cabal/pandoc-types-1.23.1/revision/2.cabal) = 2cb4836905406ccbc4c18699b8b551ed33aa15b23309f46ca108fcc209ae1ef2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409080840.4888eJBd001814>