2022-08-23 04:45:08 +03:00
|
|
|
distributable:
|
|
|
|
#FIXME
|
|
|
|
url: https://hackage.haskell.org/package/pandoc-2.18/pandoc-2.18.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
#FIXME pandoc has 4 digit versions : /
|
|
|
|
# so we miss a whole bunch
|
|
|
|
versions:
|
|
|
|
github: jgm/pandoc
|
|
|
|
strip: /^pandoc /
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/pandoc
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnu.org/gmp: 6
|
|
|
|
zlib.net: 1
|
2022-12-02 02:19:23 +03:00
|
|
|
sourceware.org/libffi: 3
|
2022-08-23 04:45:08 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
haskell.org: ^9
|
|
|
|
haskell.org/cabal: ^3
|
|
|
|
script: |-
|
|
|
|
cabal update
|
2023-02-14 06:08:18 +03:00
|
|
|
mkdir -p {{prefix}}/bin
|
2022-08-23 04:45:08 +03:00
|
|
|
cabal install $ARGS
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --install-method=copy
|
|
|
|
- --installdir={{prefix}}/bin
|
2023-02-14 06:08:18 +03:00
|
|
|
- --jobs={{hw.concurrency}}
|
|
|
|
linux:
|
|
|
|
ARGS:
|
|
|
|
# else segfaults
|
|
|
|
- --enable-relocatable
|
2022-08-23 04:45:08 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
fixture: |
|
|
|
|
# tea
|
|
|
|
brew2 for you
|
|
|
|
script:
|
|
|
|
pandoc -f markdown -t html5 $FIXTURE
|
|
|
|
#TODO check output is HTML!
|