mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
textproc/quarto: Fix HTML support
Thanks to Rainer Hurling <rhurlin@gwdg.de> for his suggestion to use the sass executable provided by textproc/rubygem-dartsass.
This commit is contained in:
parent
8328ce9a12
commit
21c5f19e81
3 changed files with 19 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= quarto # html output is broken due to a missing dependency
|
||||
PORTNAME= quarto
|
||||
DISTVERSION= 1.6.9
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= https://github.com/quarto-dev/quarto-cli/releases/download/v${DISTVERSION}/
|
||||
DISTFILES= quarto-${DISTVERSION}-linux-amd64.tar.gz # same for all architectures
|
||||
|
@ -19,6 +19,7 @@ RUN_DEPENDS= bash:shells/bash \
|
|||
typst:textproc/typst \
|
||||
deno-dom>0:www/deno-dom \
|
||||
tex-xetex>0:print/tex-xetex \
|
||||
${LOCALBASE}/lib/ruby/gems/3.2/gems/dartsass-1.49.8/exe/linux/sass:textproc/rubygem-dartsass \
|
||||
${PYTHON_PKGNAMEPREFIX}jupyter>0:devel/py-jupyter@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
|
@ -67,7 +68,11 @@ do-install:
|
|||
${STAGEDIR}${DATADIR}/bin/quarto
|
||||
# make quarto an executable
|
||||
${CHMOD} +x ${STAGEDIR}${DATADIR}/bin/quarto
|
||||
# remove Linux binaries for dart-sass since FreeBSD binaries aren't available
|
||||
# replace Linux binary for dart-sass with the binary provided by the rubygem-dartsass package
|
||||
${RM} -r ${STAGEDIR}${DATADIR}/bin/tools/${XARCH}/dart-sass
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/bin/tools/${XARCH}/dart-sass
|
||||
${LN} -s \
|
||||
${LOCALBASE}/lib/ruby/gems/3.2/gems/dartsass-1.49.8/exe/linux/sass \
|
||||
${STAGEDIR}${DATADIR}/bin/tools/${XARCH}/dart-sass/sass
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
10
textproc/quarto/pkg-message
Normal file
10
textproc/quarto/pkg-message
Normal file
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
You installed Quarto: the scientific and technical publishing system.
|
||||
|
||||
Please note that you need to have the Linux compatibility enabled
|
||||
on your system in order for html rendering to work.
|
||||
EOM
|
||||
}
|
||||
]
|
|
@ -1,6 +1,7 @@
|
|||
bin/quarto
|
||||
%%DATADIR%%/bin/quarto
|
||||
%%DATADIR%%/bin/quarto.js
|
||||
%%DATADIR%%/bin/tools/%%XARCH%%/dart-sass/sass
|
||||
%%DATADIR%%/bin/tools/%%XARCH%%/deno
|
||||
%%DATADIR%%/bin/tools/%%XARCH%%/esbuild
|
||||
%%DATADIR%%/bin/tools/%%XARCH%%/pandoc
|
||||
|
|
Loading…
Add table
Reference in a new issue