Files
haikuports/dev-haskell/cabal/cabal-3.2.1.0.recipe
PulkoMandy c6648029f7 Work in progress recipe for Haskell Cabal
This is better stored on the main git repo than just on my laptop. It
isn't working, and at the moment the lack of a GHC package for x86_64
makes it harder to work on for me.
2023-06-04 12:45:25 +02:00

60 lines
1.5 KiB
Bash

SUMMARY="Package manager for Haskell"
DESCRIPTION="Cabal is a system for building and packaging Haskell libraries \
and programs. It defines a common interface for package authors and \
distributors to easily build their applications in a portable way. Cabal is \
part of a larger infrastructure for distributing, organizing, and cataloging \
Haskell libraries and programs."
HOMEPAGE="https://www.haskell.org/cabal/"
COPYRIGHT="2003-2020, Cabal Development Team."
LICENSE="BSD (3-clause)"
SOURCE_URI="https://github.com/haskell/cabal/archive/Cabal-v3.2.1.0.tar.gz"
CHECKSUM_SHA256="e4792b80d1d191a43ac0c2ffde68f93483e757aa491595df3814b9a0e2cb3212"
SOURCE_DIR="cabal-Cabal-v$portVersion"
REVISION="1"
# This recipe is unfinished and more work is needed on the ghc recipes first
ARCHITECTURES="!x86_gcc2 !all"
SECONDARY_ARCHITECTURES="!x86"
ghcversion=8.6.5
PROVIDES="
cabal$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcharset$secondaryArchSuffix
devel:libgmp$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
transformers$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:sh
cmd:ghc_$ghcversion
cmd:gcc$secondaryArchSuffix
cmd:wget
cmd:which
"
BUILD()
{
# Workaround for haikuporter bug #207
mkdir -p /system/settings/ghc
cp -r /system/lib/x86/ghc-*/package.conf.d /system/settings/ghc/
export HOME=/boot/home
mkdir -p /boot/home/config/data/
ghc-pkg list
cd cabal-install
./bootstrap.sh
}
INSTALL()
{
true
}