summaryrefslogtreecommitdiff
path: root/community/haddock/haddock.install
blob: 24e27a074dbbe7136c238eac5cf296efbca68746 (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
  post_remove
}

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: