summaryrefslogtreecommitdiff
path: root/community/haskell-attoparsec/haskell-attoparsec.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-09-19 02:14:35 -0700
committerroot <root@rshg054.dnsready.net>2013-09-19 02:14:35 -0700
commitaa563cdeb6975b896ccf30d96943830c15becde0 (patch)
treed0638199c86e6331f0935043e76d0f7579a34a06 /community/haskell-attoparsec/haskell-attoparsec.install
parentd21b8cdc0567fba4d6e74284363fedb98f2f7d07 (diff)
Thu Sep 19 02:13:45 PDT 2013
Diffstat (limited to 'community/haskell-attoparsec/haskell-attoparsec.install')
-rw-r--r--community/haskell-attoparsec/haskell-attoparsec.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/haskell-attoparsec/haskell-attoparsec.install b/community/haskell-attoparsec/haskell-attoparsec.install
new file mode 100644
index 000000000..1bfe3c452
--- /dev/null
+++ b/community/haskell-attoparsec/haskell-attoparsec.install
@@ -0,0 +1,23 @@
+HS_DIR=usr/share/haskell/haskell-attoparsec
+
+post_install() {
+ $HS_DIR/register.sh
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+
+pre_upgrade() {
+ $HS_DIR/unregister.sh
+}
+
+post_upgrade() {
+ $HS_DIR/register.sh
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+
+pre_remove() {
+ $HS_DIR/unregister.sh
+}
+
+post_remove() {
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}