mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
39296731e7
* fix(haskell) vendor GHC * needs make * debugging * fix shims
76 lines
1.7 KiB
YAML
76 lines
1.7 KiB
YAML
distributable: ~
|
|
|
|
versions:
|
|
github: ghc/ghc/tags
|
|
strip:
|
|
- /^ghc-/
|
|
- /-release$/
|
|
|
|
provides:
|
|
- bin/ghc
|
|
- bin/ghc-{{version.marketing}}
|
|
- bin/ghc-{{version}}
|
|
- bin/ghc-pkg
|
|
- bin/ghc-pkg-{{version.marketing}}
|
|
- bin/ghc-pkg-{{version}}
|
|
- bin/ghci
|
|
- bin/ghci-{{version.marketing}}
|
|
- bin/ghci-{{version}}
|
|
- bin/ghcup
|
|
- bin/haddock
|
|
- bin/haddock-{{version.marketing}}
|
|
- bin/haddock-{{version}}
|
|
- bin/hp2ps
|
|
- bin/hp2ps-{{version.marketing}}
|
|
- bin/hp2ps-{{version}}
|
|
- bin/hpc
|
|
- bin/hpc-{{version.marketing}}
|
|
- bin/hpc-{{version}}
|
|
- bin/hsc2hs
|
|
- bin/hsc2hs-{{version.marketing}}
|
|
- bin/hsc2hs-{{version}}
|
|
- bin/runghc
|
|
- bin/runghc-{{version.marketing}}
|
|
- bin/runghc-{{version}}
|
|
- bin/runhaskell
|
|
- bin/runhaskell-{{version.marketing}}
|
|
- bin/runhaskell-{{version}}
|
|
|
|
|
|
dependencies:
|
|
gnu.org/gmp: 6
|
|
invisible-island.net/ncurses: 6
|
|
tea.xyz/gx/cc: 'c99' # ghc uses this during builds
|
|
sourceware.org/libffi: 3
|
|
|
|
warnings:
|
|
- vendored
|
|
|
|
build:
|
|
dependencies:
|
|
curl.se: '*'
|
|
tea.xyz/gx/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: |
|
|
sed -i.bak -e "s|$TEA_PREFIX|\$TEA_PREFIX|g" *-{{version}}
|
|
rm *.bak
|
|
working-directory: ${{prefix}}/ghc/{{version}}/bin
|
|
env:
|
|
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
|
BOOTSTRAP_HASKELL_NO_UPGRADE: 1
|
|
BOOTSTRAP_HASKELL_MINIMAL: 1
|
|
GHCUP_INSTALL_BASE_PREFIX: ${{prefix}}
|
|
GHCUP_SKIP_UPDATE_CHECK: 1
|
|
|
|
test:
|
|
script:
|
|
- test "$(runghc $FIXTURE)" = "Hello World"
|
|
fixture:
|
|
main = putStrLn "Hello World"
|