summaryrefslogtreecommitdiff
path: root/community-staging/haddock/haddock.install
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging/haddock/haddock.install')
-rw-r--r--community-staging/haddock/haddock.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/community-staging/haddock/haddock.install b/community-staging/haddock/haddock.install
new file mode 100644
index 000000000..24e27a074
--- /dev/null
+++ b/community-staging/haddock/haddock.install
@@ -0,0 +1,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: