summaryrefslogtreecommitdiff
path: root/devel/hs-c2hs
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-06-09 18:39:28 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-06-09 18:39:28 +0000
commit6bdc24f959a72b4f81927db33068923fbf1d19da (patch)
tree096a6e3db00b2831d9a4ee64447a654a4e232c66 /devel/hs-c2hs
parentFix build in 5.x branch: configure is not detecting streampos (diff)
Remove ghc's package.conf.old.
Pointed out by: kris, bento
Notes
Notes: svn path=/head/; revision=82612
Diffstat (limited to 'devel/hs-c2hs')
-rw-r--r--devel/hs-c2hs/Makefile5
-rw-r--r--devel/hs-c2hs/pkg-plist2
2 files changed, 6 insertions, 1 deletions
diff --git a/devel/hs-c2hs/Makefile b/devel/hs-c2hs/Makefile
index 9f3c2ea8c69c..0b1166415f1a 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>
diff --git a/devel/hs-c2hs/pkg-plist b/devel/hs-c2hs/pkg-plist
index a3e152b539d3..c9536ba77d2f 100644
--- a/devel/hs-c2hs/pkg-plist
+++ b/devel/hs-c2hs/pkg-plist
@@ -13,4 +13,6 @@ lib/c2hs-%%C2HS_VERSION%%/ghc5/c2hs.o
@dirrm lib/c2hs-%%C2HS_VERSION%%/ghc5
@dirrm lib/c2hs-%%C2HS_VERSION%%
@exec %D/bin/c2hs-config --package-conf | %D/bin/ghc-pkg -u -g
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
@unexec %D/bin/ghc-pkg -r c2hs
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old