diff options
author | ashish <ashish@FreeBSD.org> | 2011-06-04 01:18:22 +0800 |
---|---|---|
committer | ashish <ashish@FreeBSD.org> | 2011-06-04 01:18:22 +0800 |
commit | a9d0a9d8877477da8128fa83fef2f1b2624333c0 (patch) | |
tree | 89538928800b62fb9c826efbc123ab728d8f44d8 | |
parent | 8cd1ceec65dcee442456657a0159d55afdce3735 (diff) | |
download | freebsd-ports-gnome-a9d0a9d8877477da8128fa83fef2f1b2624333c0.tar.gz freebsd-ports-gnome-a9d0a9d8877477da8128fa83fef2f1b2624333c0.tar.zst freebsd-ports-gnome-a9d0a9d8877477da8128fa83fef2f1b2624333c0.zip |
- Move post-install task to pkg-install to fix bug in port where binary package
is unusable.
Obtained from: FreeBSD Haskell
-rw-r--r-- | devel/hs-haddock/Makefile | 8 | ||||
-rw-r--r-- | devel/hs-haddock/files/pkg-install.in | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/devel/hs-haddock/Makefile b/devel/hs-haddock/Makefile index f62daa2db0e2..56635f161ab8 100644 --- a/devel/hs-haddock/Makefile +++ b/devel/hs-haddock/Makefile @@ -6,7 +6,7 @@ PORTNAME= haddock PORTVERSION= 2.9.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel haskell MAINTAINER= haskell@FreeBSD.org @@ -22,13 +22,13 @@ EXECUTABLE= haddock-${PORTVERSION} PORTDATA= * -SUB_FILES= pkg-deinstall -SUB_LIST= GHC_HADDOCK_CMD=${GHC_HADDOCK_CMD} HADDOCK=${PREFIX}/bin/haddock +SUB_FILES= pkg-deinstall pkg-install +SUB_LIST= GHC_HADDOCK_CMD=${GHC_HADDOCK_CMD} HADDOCK=${PREFIX}/bin/haddock EXECUTABLE=${PREFIX}/bin/${EXECUTABLE} CONFIGURE_ARGS= --program-suffix=-${PORTVERSION} post-install:: - @${LN} -sf ${PREFIX}/bin/${EXECUTABLE} ${PREFIX}/bin/haddock + @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include <bsd.port.mk> diff --git a/devel/hs-haddock/files/pkg-install.in b/devel/hs-haddock/files/pkg-install.in new file mode 100644 index 000000000000..422f7cee7570 --- /dev/null +++ b/devel/hs-haddock/files/pkg-install.in @@ -0,0 +1,6 @@ +#!/bin/sh +# $FreeBSD$ + +[ "$2" = "POST-INSTALL" ] && /bin/ln -sf %%EXECUTABLE%% %%HADDOCK%% + +exit 0 |