#!/bin/sh # exit on errors, use a sane path and install prefix # (stolen from x11/xplore) set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin: PREFIX=${PREFIX:-${PKG_PREFIX:-/usr/local}} case $2 in PRE-INSTALL) : nothing to pre-install for this port ;; POST-INSTALL) # inlined copy of WRKSRC/generic-haskell.pkg below: libdir=${PREFIX}/gh-1.42/lib ${PREFIX}/bin/ghc-pkg -a <&2 exit 1 ;; esac exit 0