1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

textproc/hs-pandoc-crossref: Build and install manpage

PR:		281077
This commit is contained in:
Gleb Popov 2024-09-08 11:39:35 +03:00
parent 8dfc5b3f0c
commit 169433d89d
2 changed files with 23 additions and 4 deletions

View File

@ -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>

View File

@ -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