From 8c9e9b469f5e8f0473527b467f1dc98121d64dce Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sat, 28 Oct 2023 02:14:01 -0400 Subject: [PATCH] fix(pandoc) closes #3876 --- projects/pandoc.org/package.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/projects/pandoc.org/package.yml b/projects/pandoc.org/package.yml index 46d2e3c3..cfba91e9 100644 --- a/projects/pandoc.org/package.yml +++ b/projects/pandoc.org/package.yml @@ -25,15 +25,18 @@ build: haskell.org/cabal: ^3 crates.io/semverator: ^0 working-directory: pandoc-cli - script: |- - if semverator satisfies '^2' '{{ version }}'; then - # pandoc 2.x - no pandoc-cli subdirectory - cd .. - fi + script: + # pandoc 2.x - no pandoc-cli subdirectory + - run: cd .. + if: <3 - cabal update - mkdir -p {{prefix}}/bin - cabal install $ARGS + - cabal update + - mkdir -p {{prefix}}/bin + # 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: ARGS: - --install-method=copy @@ -52,6 +55,5 @@ test: fixture: | # tea brew2 for you - script: - pandoc -f markdown -t html5 $FIXTURE + script: pandoc -f markdown -t html5 $FIXTURE #TODO check output is HTML!