diff options
Diffstat (limited to 'x11-toolkits/hs-gtk2hs/files/pkg-install.in')
-rw-r--r-- | x11-toolkits/hs-gtk2hs/files/pkg-install.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/x11-toolkits/hs-gtk2hs/files/pkg-install.in b/x11-toolkits/hs-gtk2hs/files/pkg-install.in new file mode 100644 index 000000000..05bb2cf14 --- /dev/null +++ b/x11-toolkits/hs-gtk2hs/files/pkg-install.in @@ -0,0 +1,19 @@ +#!/bin/sh + +pkglibdir=$PKG_PREFIX/lib/gtk2hs +ghcpkg=%%LOCALBASE%%/bin/ghc-pkg + +case "$2" in +POST-INSTALL) + for p in %%PKGS%%; do + $ghcpkg --auto-ghci-libs update $pkglibdir/$p.package.conf ; + done + /bin/rm -f %%LOCALBASE%%/lib/ghc-%%GHC_VERSION%%/package.conf.old + ;; +DEINSTALL) + for p in %%PKGS%%; do + $ghcpkg unregister $p-%%PORTVERSION%% ; + done + /bin/rm -f %%LOCALBASE%%/lib/ghc-%%GHC_VERSION%%/package.conf.old + ;; +esac |