summaryrefslogtreecommitdiffstats
path: root/devel/hs-c2hs/Makefile
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2003-06-09 18:39:28 +0000
committerobraun <obraun@FreeBSD.org>2003-06-09 18:39:28 +0000
commit020484ea120904268c9e597d6074be555f44b62d (patch)
tree70d4e74db1b51dab591e3fbce4521d18f91d3977 /devel/hs-c2hs/Makefile
parent7a371b71971b67aff385b0396bb50cb7db418105 (diff)
downloadFreeBSD-ports-020484ea120904268c9e597d6074be555f44b62d.zip
FreeBSD-ports-020484ea120904268c9e597d6074be555f44b62d.tar.gz
Remove ghc's package.conf.old.
Pointed out by: kris, bento
Diffstat (limited to 'devel/hs-c2hs/Makefile')
-rw-r--r--devel/hs-c2hs/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/hs-c2hs/Makefile b/devel/hs-c2hs/Makefile
index 9f3c2ea..0b11664 100644
--- a/devel/hs-c2hs/Makefile
+++ b/devel/hs-c2hs/Makefile
@@ -20,7 +20,9 @@ RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
HAS_CONFIGURE= yes
USE_GMAKE= yes
-PLIST_SUB= C2HS_VERSION=${PORTVERSION}
+GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
+ ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+PLIST_SUB+= C2HS_VERSION="${PORTVERSION}" GHC_VERSION="${GHC_VERSION}"
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-add-package
@@ -42,5 +44,6 @@ post-build:
post-install:
@(cd ${WRKSRC}/doc/c2hs/man1 && \
${INSTALL_MAN} c2hs-config.1 c2hs.1 ${MANPREFIX}/man/man1)
+ @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
.include <bsd.port.mk>
OpenPOWER on IntegriCloud