[Pkg-haskell-commits] darcs: ghc: ghc-doc package includes /usr/lib/ghc-doc/hoogle/*.txt files.
kiwamu at debian.or.jp
kiwamu at debian.or.jp
Sat Oct 6 23:32:07 UTC 2012
Sat Oct 6 23:29:01 UTC 2012 kiwamu at debian.or.jp
* ghc-doc package includes /usr/lib/ghc-doc/hoogle/*.txt files.
Ignore-this: 40dd81c2f04e6a0c36872a88f283036f
M ./rules +5
Sat Oct 6 23:29:01 UTC 2012 kiwamu at debian.or.jp
* ghc-doc package includes /usr/lib/ghc-doc/hoogle/*.txt files.
Ignore-this: 40dd81c2f04e6a0c36872a88f283036f
diff -rN -u old-ghc//rules new-ghc//rules
--- old-ghc//rules 2012-10-06 23:32:07.319718666 +0000
+++ new-ghc//rules 2012-10-06 23:32:07.363718799 +0000
@@ -30,6 +30,7 @@
GHC=$(firstword $(shell bash -c "type -p ghc"))
EXTRA_CONFIGURE_FLAGS=--with-ghc="$(GHC)"
BUILD_HADDOCK_DOCS=YES
+DEB_HOOGLE_TXT_DIR = /usr/lib/ghc-doc/hoogle/
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
@@ -236,6 +237,10 @@
find debian/tmp/usr/share/haddock-* $(FILES) >> debian/ghc-haddock.install
# ghc-doc
ifeq (YES,$(BUILD_HADDOCK_DOCS))
+ mkdir -p debian/tmp/$(DEB_HOOGLE_TXT_DIR)
+ find debian/tmp/usr/share/doc/ghc-doc/html/libraries/*/ -name "*.txt" | \
+ runghc debian/haddock-collect \
+ debian/tmp debian/tmp/$(DEB_HOOGLE_TXT_DIR)
find debian/tmp/usr/share/doc/ghc-doc $(FILES) > debian/ghc-doc.install
find debian/tmp/usr/lib/ghc-doc $(FILES) >> debian/ghc-doc.install
endif
More information about the Pkg-haskell-commits
mailing list