fix(pandoc)

closes #3876
This commit is contained in:
Jacob Heider 2023-10-28 02:14:01 -04:00 committed by Jacob Heider
parent 1e1786b18a
commit 8c9e9b469f

View file

@ -25,15 +25,18 @@ build:
haskell.org/cabal: ^3 haskell.org/cabal: ^3
crates.io/semverator: ^0 crates.io/semverator: ^0
working-directory: pandoc-cli working-directory: pandoc-cli
script: |- script:
if semverator satisfies '^2' '{{ version }}'; then # pandoc 2.x - no pandoc-cli subdirectory
# pandoc 2.x - no pandoc-cli subdirectory - run: cd ..
cd .. if: <3
fi
cabal update - cabal update
mkdir -p {{prefix}}/bin - mkdir -p {{prefix}}/bin
cabal install $ARGS # digest versions above 0.0.1.4 have RPATH issues for us.
- run: |
sed -i.bak -e's/text$/text, digest <0.0.1.4/' pandoc-cli.cabal
rm pandoc-cli.cabal.bak
- cabal v2-install $ARGS
env: env:
ARGS: ARGS:
- --install-method=copy - --install-method=copy
@ -52,6 +55,5 @@ test:
fixture: | fixture: |
# tea # tea
brew2 for you brew2 for you
script: script: pandoc -f markdown -t html5 $FIXTURE
pandoc -f markdown -t html5 $FIXTURE
#TODO check output is HTML! #TODO check output is HTML!