summaryrefslogtreecommitdiff
path: root/community/haddock/haddock.install
blob: 97cdaefdc9218084ea908722da703ccdd10bded4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pkgname=haddock
HS_DIR=usr/share/haskell/haddock

post_upgrade() {
  ${HS_DIR}/register.sh &> /dev/null
  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
}

post_remove() {
  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
}

pre_remove() {
  ${HS_DIR}/unregister.sh &> /dev/null
}

post_install() {
	post_upgrade
}

pre_upgrade() {
	pre_remove
}

# vim:set ts=2 sw=2 et: