aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-haddock
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2011-06-03 17:18:22 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2011-06-03 17:18:22 +0000
commit571a2a4c0f2b88914dec8b6538c13f6769044b6f (patch)
tree2e8e718e7a41bcf79c38f40fa223c652aef79b1f /devel/hs-haddock
parent5bbc9dea6862955fdde9790e3a35f09054f826fc (diff)
downloadports-571a2a4c0f2b88914dec8b6538c13f6769044b6f.tar.gz
ports-571a2a4c0f2b88914dec8b6538c13f6769044b6f.zip
Notes
Diffstat (limited to 'devel/hs-haddock')
-rw-r--r--devel/hs-haddock/Makefile8
-rw-r--r--devel/hs-haddock/files/pkg-install.in6
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