mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-18 17:35:59 +01:00
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.
This commit is contained in:
59
dev-haskell/cabal/cabal-3.2.1.0.recipe
Normal file
59
dev-haskell/cabal/cabal-3.2.1.0.recipe
Normal file
@@ -0,0 +1,59 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user