Moving around the alex- and happy-generated files is now done by
the haddock port.
This commit is contained in:
parent
fbb4e44932
commit
806bf57ddd
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.52 2011/04/11 14:30:32 kili Exp $
|
# $OpenBSD: Makefile,v 1.53 2011/04/23 12:52:36 kili Exp $
|
||||||
|
|
||||||
COMMENT-main = compiler for the functional language Haskell
|
COMMENT-main = compiler for the functional language Haskell
|
||||||
COMMENT-doc = documentation for GHC
|
COMMENT-doc = documentation for GHC
|
||||||
@ -98,18 +98,12 @@ post-extract:
|
|||||||
./configure --prefix=${WRKDIR} && \
|
./configure --prefix=${WRKDIR} && \
|
||||||
${MAKE_PROGRAM} install
|
${MAKE_PROGRAM} install
|
||||||
rm -rf ${WRKDIR}/ghc-${BIN_VER}
|
rm -rf ${WRKDIR}/ghc-${BIN_VER}
|
||||||
# - Replace utils/haddock by the version from the ports tree, move
|
# - Replace utils/haddock by the version from the ports tree.
|
||||||
# the alex- and happy-generated files into the src dir and rename the
|
|
||||||
# corresponding sources so cabal won't try to re-run alex or happy.
|
|
||||||
mv ${WRKSRC}/utils/haddock{,-ghcdist}
|
mv ${WRKSRC}/utils/haddock{,-ghcdist}
|
||||||
mv ${WRKDIR}/devel/haddock/haddock-* ${WRKSRC}/utils/haddock
|
mv ${WRKDIR}/devel/haddock/haddock-* ${WRKSRC}/utils/haddock
|
||||||
. for f in ghc.mk doc/ghc.mk haddock.wrapper
|
. for f in ghc.mk doc/ghc.mk haddock.wrapper
|
||||||
cp -p ${WRKSRC}/utils/haddock{-ghcdist,}/$f
|
cp -p ${WRKSRC}/utils/haddock{-ghcdist,}/$f
|
||||||
. endfor
|
. endfor
|
||||||
cd ${WRKSRC}/utils/haddock/src && \
|
|
||||||
find . -name \*.[xy] -print | \
|
|
||||||
sed 's@\(.*\)\.[xy]@mv & &.source \&\& mv ../dist/build/haddock/haddock-tmp/\1.hs \1.hs@' | \
|
|
||||||
sh
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${SUBST_CMD} ${WRKSRC}/docs/index.html
|
${SUBST_CMD} ${WRKSRC}/docs/index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user