summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/hs-frantk
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2003-06-09 18:54:49 +0000
committerobraun <obraun@FreeBSD.org>2003-06-09 18:54:49 +0000
commit9e0c4824c2fc71f9ccfc5226489560e78e2764d3 (patch)
tree8ea154c554aa68e1e08a5ebaabcefa16d69aab7d /x11-toolkits/hs-frantk
parentc2afeec2e9346c6cca988de462c555a4beed37c7 (diff)
downloadFreeBSD-ports-9e0c4824c2fc71f9ccfc5226489560e78e2764d3.zip
FreeBSD-ports-9e0c4824c2fc71f9ccfc5226489560e78e2764d3.tar.gz
Remove ghc's package.conf.old.
Pointed out by: kris, bento
Diffstat (limited to 'x11-toolkits/hs-frantk')
-rw-r--r--x11-toolkits/hs-frantk/Makefile7
-rw-r--r--x11-toolkits/hs-frantk/pkg-plist2
2 files changed, 8 insertions, 1 deletions
diff --git a/x11-toolkits/hs-frantk/Makefile b/x11-toolkits/hs-frantk/Makefile
index 9d43d21..195b95a 100644
--- a/x11-toolkits/hs-frantk/Makefile
+++ b/x11-toolkits/hs-frantk/Makefile
@@ -37,7 +37,9 @@ PLIST_SUB+= HUGS="@comment "
.if !defined(WITHOUT_GHC)
ALL_TARGET+= all
INSTALL_TARGET+=install_ghc pkg
-PLIST_SUB+= GHC=""
+GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
+ ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+PLIST_SUB+= GHC="" GHC_VERSION="${GHC_VERSION}"
.else
PLIST_SUB+= GHC="@comment "
.endif
@@ -67,6 +69,9 @@ post-patch:
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/frantk.conf
post-install:
+.if !defined(WITHOUT_GHC)
+ @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${CP} ${WRKDIR}/FranTk1.1/doc/frantk.pdf ${DOCSDIR}
diff --git a/x11-toolkits/hs-frantk/pkg-plist b/x11-toolkits/hs-frantk/pkg-plist
index c338602..935892b 100644
--- a/x11-toolkits/hs-frantk/pkg-plist
+++ b/x11-toolkits/hs-frantk/pkg-plist
@@ -168,4 +168,6 @@
%%GHC%%@dirrm lib/frantk/imports
%%GHC%%@dirrm lib/frantk
%%HUGS%%@unexec rmdir %D/lib/frantk || true
+%%GHC%%@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
%%GHC%%@unexec ghc-pkg -r FranTk
+%%GHC%%@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
OpenPOWER on IntegriCloud