Fill in the `pkgpath' field of the libraries contained in ghc.

You'll now get sane output for all Haskell libraries. For example:

$ ghc-pkg field mtl pkgpath
pkgpath: lang/ghc
This commit is contained in:
kili 2010-11-06 19:11:43 +00:00
parent b09bd417a5
commit 54d54ba1f1

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.47 2010/11/06 10:18:38 espie Exp $
# $OpenBSD: Makefile,v 1.48 2010/11/06 19:11:43 kili Exp $
COMMENT-main = compiler for the functional language Haskell
COMMENT-doc = documentation for GHC
@ -36,7 +36,7 @@ LIB_DEPENDS-main = ${LIB_DEPENDS} ::devel/gmp
RUN_DEPENDS-doc =
RUN_DEPENDS-main =
REVISION-main = 6
REVISION-main = 7
WANTLIB-main = ${WANTLIB} c gmp m ncursesw pthread util
REVISION-doc = 2
@ -122,7 +122,7 @@ post-install:
echo 'p="$${0%/*}/ghc-pkg --global-conf $${0%/*}/package.conf.d"' && \
for p in $$($$GHC_PKG list --simple); do \
echo \$$p register --force - \<\< \'EOF\' && \
$$GHC_PKG describe $$p && \
$$GHC_PKG describe $$p | sed '/^pkgpath:$$/s@$$@ ${PKGPATH}@' && \
echo EOF; \
done && \
${INSTALL_SCRIPT} /dev/null unregister.sh && \