Depend on devel/hs-mtl (mtl-2) so it doesn't pick up mtl-1

by accident (if ghc is installed but hs-mtl isn't).

Rule of thumb: if some hs-* port works with both mtl-1 and
mtl-2, let it depend on devel/hs-mtl. If it strictly requires
mtl-1, then don't let it depend on devel/hs-mtl (that part is
obvious). If it doesn't specify the mtl version i the .cabal
file and breaks with devel/hs-mtl installed, patch the .cabal
file.

I'll rebuild and check all the haskell junk on my machine and
will see what can be done to hs-* ports that don't build with
mtl-2 (devel/hs-mtl). If they can be fixed to work with mtl-2,
mtl-1 (in lang/ghc) will be removed.

What a mess!
This commit is contained in:
kili 2011-04-19 19:45:40 +00:00
parent d8562bdfa1
commit 71d50fcc5c

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.3 2011/04/12 10:42:07 jasper Exp $
# $OpenBSD: Makefile,v 1.4 2011/04/19 19:45:40 kili Exp $
COMMENT= ASN1 data reader and writer for various forms
DISTNAME= asn1-data-0.4.6
REVISION= 0
CATEGORIES= security converters
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
@ -19,6 +20,7 @@ MODGHC_BUILD = cabal hackage haddock register
RUN_DEPENDS = devel/hs-binary>=0.5 \
hs-enumerator->=0.4.5,<0.5:devel/hs-enumerator \
devel/hs-mtl \
textproc/hs-attoparsec-enumerator
BUILD_DEPENDS = ${RUN_DEPENDS}