mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
d4e43030ed
updated instructions use v2-install (nix-style?) and --prefix to get all the files needed hm. what does prefix do?
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
distributable:
|
|
#FIXME: pandoc and pandoc-cli have been split :/
|
|
# url: https://hackage.haskell.org/package/pandoc-cli{{ version }}/pandoc-cli-{{ version }}.tar.gz
|
|
url: https://github.com/jgm/pandoc/archive/refs/tags/{{ version }}.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
|
|
sourceware.org/libffi: 3
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
haskell.org: ^9
|
|
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
|
|
|
|
cabal update
|
|
mkdir -p {{prefix}}/bin
|
|
cabal install $ARGS
|
|
env:
|
|
ARGS:
|
|
- --install-method=copy
|
|
- --installdir={{prefix}}/bin
|
|
- --jobs={{hw.concurrency}}
|
|
# https://pandoc.org/installing.html#creating-a-relocatable-binary
|
|
- -fembed_data_files
|
|
linux:
|
|
ARGS:
|
|
# else segfaults
|
|
- --enable-relocatable
|
|
|
|
test:
|
|
fixture: |
|
|
# tea
|
|
brew2 for you
|
|
script:
|
|
pandoc -f markdown -t html5 $FIXTURE
|
|
#TODO check output is HTML!
|