diff options
author | kiwamu <kiwamu@debian.or.jp> | 2012-09-09 14:31:07 +0400 |
---|---|---|
committer | kiwamu <kiwamu@debian.or.jp> | 2012-09-09 14:31:07 +0400 |
commit | afa47cee9f0313bffd1bebdf7f06887166e02636 (patch) | |
tree | e4981ad75965a789194b59ce3f026e5f86a6d81a | |
parent | ffe14daf4413922a8338d0936a7997fec7bc4d28 (diff) | |
download | DHG_packages-afa47cee9f0313bffd1bebdf7f06887166e02636.tar.gz |
haskell-hoogle: Datadir has no version number
-rw-r--r-- | p/haskell-hoogle/debian/hoogle.install | 2 | ||||
-rw-r--r-- | p/haskell-hoogle/debian/hoogle.links | 1 | ||||
-rwxr-xr-x | p/haskell-hoogle/debian/rules | 9 |
3 files changed, 7 insertions, 5 deletions
diff --git a/p/haskell-hoogle/debian/hoogle.install b/p/haskell-hoogle/debian/hoogle.install index a30861c25..4b795e898 100644 --- a/p/haskell-hoogle/debian/hoogle.install +++ b/p/haskell-hoogle/debian/hoogle.install @@ -1,3 +1,3 @@ debian/tmp-inst-*/usr/bin/* /usr/bin/ -debian/tmp-inst-*/usr/share/hoogle-* /usr/share/ +debian/tmp-inst-*/usr/share/hoogle /usr/share/ debian/apache.conf /etc/apache2/conf.d/hoogle diff --git a/p/haskell-hoogle/debian/hoogle.links b/p/haskell-hoogle/debian/hoogle.links index 0eb23821b..39389dc7f 100644 --- a/p/haskell-hoogle/debian/hoogle.links +++ b/p/haskell-hoogle/debian/hoogle.links @@ -1 +1,2 @@ usr/bin/hoogle usr/lib/cgi-bin/hoogle +var/lib/hoogle/databases usr/share/hoogle/databases diff --git a/p/haskell-hoogle/debian/rules b/p/haskell-hoogle/debian/rules index e9cc87df2..1a5f0644a 100755 --- a/p/haskell-hoogle/debian/rules +++ b/p/haskell-hoogle/debian/rules @@ -2,9 +2,10 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk +DEB_SETUP_GHC_CONFIGURE_ARGS := --datasubdir=/usr/share/hoogle +HOOGLE_RESDIR := debian/hoogle/usr/share/hoogle/resources + build/hoogle:: build-ghc-stamp binary-fixup/hoogle:: - cd debian/hoogle/usr/share/hoogle-$(CABAL_VERSION)/ && ln -s /var/lib/hoogle/databases ./ - cd debian/hoogle/usr/share/ && ln -s hoogle-$(CABAL_VERSION) hoogle - sed -i -e "s/res\//\/hoogle\//g" debian/hoogle/usr/share/hoogle-$(CABAL_VERSION)/resources/template.html - sed -i -e "s/action=\"\.\"/action=\"\.\/hoogle\"/g" debian/hoogle/usr/share/hoogle-$(CABAL_VERSION)/resources/template.html + sed -i -e "s/res\//\/hoogle\//g" $(HOOGLE_RESDIR)/template.html + sed -i -e "s/action=\"\.\"/action=\"\.\/hoogle\"/g" $(HOOGLE_RESDIR)/template.html |