pantry/projects/haskell.org/package.yml

88 lines
2.2 KiB
YAML
Raw Normal View History

distributable: ~
2022-08-23 00:33:05 +03:00
versions:
2023-04-10 18:43:01 +03:00
github: ghc/ghc/tags
strip:
- /^ghc-/
- /-release$/
2022-08-23 00:33:05 +03:00
provides:
- bin/ghc
- bin/ghc-{{version.marketing}}
- bin/ghc-{{version}}
2022-08-23 00:33:05 +03:00
- bin/ghc-pkg
- bin/ghc-pkg-{{version.marketing}}
- bin/ghc-pkg-{{version}}
2022-08-23 00:33:05 +03:00
- bin/ghci
- bin/ghci-{{version.marketing}}
- bin/ghci-{{version}}
- bin/ghcup
2022-08-23 00:33:05 +03:00
- bin/haddock
- bin/haddock-{{version.marketing}}
- bin/haddock-{{version}}
2022-08-23 00:33:05 +03:00
- bin/hp2ps
- bin/hp2ps-{{version.marketing}}
- bin/hp2ps-{{version}}
2022-08-23 00:33:05 +03:00
- bin/hpc
- bin/hpc-{{version.marketing}}
- bin/hpc-{{version}}
2022-08-23 00:33:05 +03:00
- bin/hsc2hs
- bin/hsc2hs-{{version.marketing}}
- bin/hsc2hs-{{version}}
2022-08-23 00:33:05 +03:00
- bin/runghc
- bin/runghc-{{version.marketing}}
- bin/runghc-{{version}}
2022-08-23 00:33:05 +03:00
- bin/runhaskell
- bin/runhaskell-{{version.marketing}}
- bin/runhaskell-{{version}}
2022-08-23 00:33:05 +03:00
dependencies:
gnu.org/gmp: 6
invisible-island.net/ncurses: 6
sourceware.org/libffi: 3
linux:
github.com/numactl/numactl: ^2
2023-10-28 07:49:32 +03:00
gnu.org/gcc: '*'
2022-08-23 00:33:05 +03:00
warnings:
- vendored
2022-08-23 00:33:05 +03:00
build:
dependencies:
curl.se: '*'
2023-10-28 07:49:32 +03:00
linux:
gnu.org/make: '*'
script:
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
- PATH={{prefix}}/.ghcup/bin:$PATH
- ghcup install ghc {{version}}
- ghcup set ghc {{version}}
- run: ln -s .ghcup/* .
working-directory: ${{prefix}}
- run: |
2023-10-28 07:49:32 +03:00
find . -type f -print0 | xargs -0 sed -i.bak -e "s|$PKGX_DIR|\${PKGX_DIR:-\$HOME/.pkgx}|g"
rm *.bak
working-directory: ${{prefix}}/ghc/{{version}}/bin
- run: |
2023-10-28 07:49:32 +03:00
sed -i.bak -e "s|$PKGX_DIR|\${PKGX_DIR:-\$HOME/.pkgx}|g" env
rm env.bak
working-directory: ${{prefix}}/.ghcup
- run: |
find . -type f -name \*.conf -print0 | xargs -0 sed -i.bak -e 's|{{prefix}}|${pkgroot}/../../../../..|g'
find . -type f -name \*.conf.bak -delete
working-directory: ${{prefix}}/ghc/{{version}}/lib/ghc-{{version}}/package.conf.d
if: <9.4
env:
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
BOOTSTRAP_HASKELL_NO_UPGRADE: 1
BOOTSTRAP_HASKELL_MINIMAL: 1
GHCUP_INSTALL_BASE_PREFIX: ${{prefix}}
GHCUP_SKIP_UPDATE_CHECK: 1
2022-08-23 00:33:05 +03:00
2022-09-02 18:00:17 +03:00
test:
script:
- ghc-pkg recache
- ghc-pkg check
- test "$(runghc $FIXTURE)" = "Hello World"
fixture: main = putStrLn "Hello World"