[Pkg-haskell-commits] darcs: haskell-devscripts: Pass --with-haddock and --with-ghc to haddock, --package-db to cabal configure
David Fox
dsf at seereason.com
Tue Mar 31 17:25:43 UTC 2015
Tue Mar 31 17:16:54 UTC 2015 David Fox <dsf at seereason.com>
* Pass --with-haddock and --with-ghc to haddock, --package-db to cabal configure
M ./hlibrary.mk -2 +2
Tue Mar 31 17:16:54 UTC 2015 David Fox <dsf at seereason.com>
* Pass --with-haddock and --with-ghc to haddock, --package-db to cabal configure
diff -rN -u old-haskell-devscripts/hlibrary.mk new-haskell-devscripts/hlibrary.mk
--- old-haskell-devscripts/hlibrary.mk 2015-03-31 17:25:43.622417677 +0000
+++ new-haskell-devscripts/hlibrary.mk 2015-03-31 17:25:43.658417726 +0000
@@ -114,7 +114,7 @@
for setup in Setup.lhs Setup.hs; do if test -e $$setup; then ghc --make $$setup -o $(DEB_SETUP_BIN_NAME); exit 0; fi; done
configure-ghc-stamp: $(DEB_SETUP_BIN_NAME)
- $(DEB_SETUP_BIN_NAME) configure --ghc -v2 \
+ $(DEB_SETUP_BIN_NAME) configure --ghc -v2 --package-db=/var/lib/ghc/package.conf.d \
--prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib \
--builddir=dist-ghc \
--ghc-options="-optl$$(dpkg-buildflags --get LDFLAGS)" \
@@ -146,7 +146,7 @@
build/libghc-$(CABAL_PACKAGE)-prof build/libghc-$(CABAL_PACKAGE)-dev:: build-ghc-stamp check-ghc-stamp
build-haddock-stamp:
- [ ! -x /usr/bin/haddock ] || $(DEB_SETUP_BIN_NAME) haddock --builddir=dist-ghc $(DEB_HADDOCK_OPTS) || \
+ [ ! -x /usr/bin/haddock ] || $(DEB_SETUP_BIN_NAME) haddock --builddir=dist-ghc --with-haddock=/usr/bin/haddock --with-ghc=ghc $(DEB_HADDOCK_OPTS) || \
echo "Haddock failed (no modules?), creating empty documentation package."
touch build-haddock-stamp
More information about the Pkg-haskell-commits
mailing list