devel/hs-cabal-install: Fix producing foreign-libraries on FreeBSD

This commit is contained in:
Gleb Popov 2025-04-06 10:50:12 +03:00
parent 58c10a22d0
commit 2c0ada23f8
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= cabal-install
PORTVERSION= 3.12.1.0
DISTVERSIONPREFIX= ${PORTNAME}-v
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel haskell
EXTRACT_ONLY= ${DISTNAME_DEFAULT}${_GITHUB_EXTRACT_SUFX}

View File

@ -0,0 +1,10 @@
--- Cabal/src/Distribution/Simple/Configure.hs.orig 2024-06-24 23:58:58 UTC
+++ Cabal/src/Distribution/Simple/Configure.hs
@@ -2631,6 +2631,7 @@ checkForeignLibSupported comp platform flib = go (comp
goGhcPlatform :: Platform -> Maybe String
goGhcPlatform (Platform _ OSX) = goGhcOsx (foreignLibType flib)
goGhcPlatform (Platform _ Linux) = goGhcLinux (foreignLibType flib)
+ goGhcPlatform (Platform _ FreeBSD) = goGhcLinux (foreignLibType flib)
goGhcPlatform (Platform I386 Windows) = goGhcWindows (foreignLibType flib)
goGhcPlatform (Platform X86_64 Windows) = goGhcWindows (foreignLibType flib)
goGhcPlatform _ =