mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
7e3f73b7e3
closes #6061
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
distributable:
|
|
url: https://hackage.haskell.org/package/pandoc-crossref-{{ version.raw }}/pandoc-crossref-{{ version.raw }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: lierdakil/pandoc-crossref
|
|
ignore: /[a-z]$/
|
|
|
|
dependencies:
|
|
pandoc.org: ^2.18
|
|
zlib.net: 1
|
|
gnu.org/gmp: 6
|
|
|
|
build:
|
|
dependencies:
|
|
haskell.org: <9.6.4 # later versions pass invalid linker flags on darwin clang-14
|
|
haskell.org/cabal: ^3
|
|
openssl.org: ^1.1
|
|
script:
|
|
# FIXME: this isn't great, but it'll fix any ghc install at build time
|
|
# needs install-time customization for a true fix
|
|
- run: |
|
|
if ! grep -q 'rpath,{{pkgx.prefix}}' settings; then
|
|
sed -i \
|
|
-e 's|\(C compiler flags.*\)")|\1 -Wl,-rpath,{{pkgx.prefix}}")|' \
|
|
-e 's|\(C++ compiler flags.*\)")|\1 -Wl,-rpath,{{pkgx.prefix}}")|' \
|
|
-e 's|\(C compiler link flags.*\)")|\1 -Wl,-rpath,{{pkgx.prefix}}")|' \
|
|
settings
|
|
fi
|
|
if: darwin
|
|
working-directory: ${{deps.haskell.org.prefix}}/.ghcup/ghc/{{deps.haskell.org.version}}/lib/ghc-{{deps.haskell.org.version}}/lib
|
|
|
|
- cabal update
|
|
- mkdir -p "{{prefix}}/bin"
|
|
- cabal install --install-method=copy --installdir={{prefix}}/bin
|
|
|
|
test:
|
|
- 'true' #FIXME
|
|
|
|
provides:
|
|
- bin/pandoc-crossref
|