pantry/projects/pandoc.org/crossref/package.yml

42 lines
1.3 KiB
YAML
Raw Normal View History

2022-08-23 10:32:24 +03:00
distributable:
2023-04-15 06:42:13 +03:00
url: https://hackage.haskell.org/package/pandoc-crossref-{{ version.raw }}/pandoc-crossref-{{ version.raw }}.tar.gz
2022-08-23 10:32:24 +03:00
strip-components: 1
versions:
2023-04-15 06:42:13 +03:00
github: lierdakil/pandoc-crossref
ignore: /[a-z]$/
2022-08-23 10:32:24 +03:00
dependencies:
pandoc.org: ^2.18
zlib.net: 1
gnu.org/gmp: 6
build:
dependencies:
2024-05-05 04:50:57 +03:00
haskell.org: <9.6.4 # later versions pass invalid linker flags on darwin clang-14
2022-08-23 10:32:24 +03:00
haskell.org/cabal: ^3
2023-04-15 06:42:13 +03:00
openssl.org: ^1.1
2024-05-05 04:50:57 +03:00
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
2022-08-23 10:32:24 +03:00
2024-05-05 04:50:57 +03:00
- cabal update
- mkdir -p "{{prefix}}/bin"
- cabal install --install-method=copy --installdir={{prefix}}/bin
test:
- 'true' #FIXME
2022-12-05 22:10:34 +03:00
provides:
2024-05-05 04:50:57 +03:00
- bin/pandoc-crossref