summaryrefslogtreecommitdiff
path: root/x11-toolkits/hs-gtk+hs
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-06-09 21:42:20 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-06-09 21:42:20 +0000
commitccd57bc622512f37d4c7c9eb5795a66ffc646746 (patch)
tree1c7d1d9231272d4840650285937f6d19b1011520 /x11-toolkits/hs-gtk+hs
parentUpdate to 0.52. (diff)
Remove ghc's package.conf.old.
Diffstat (limited to 'x11-toolkits/hs-gtk+hs')
-rw-r--r--x11-toolkits/hs-gtk+hs/Makefile4
-rw-r--r--x11-toolkits/hs-gtk+hs/pkg-plist2
2 files changed, 5 insertions, 1 deletions
diff --git a/x11-toolkits/hs-gtk+hs/Makefile b/x11-toolkits/hs-gtk+hs/Makefile
index 77889ad6af24..1b84ae810c37 100644
--- a/x11-toolkits/hs-gtk+hs/Makefile
+++ b/x11-toolkits/hs-gtk+hs/Makefile
@@ -33,7 +33,8 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-add-package
CONFIGURE_ARGS+= --with-ih
.endif
-PLIST_SUB+= PORTVERSION="${PORTVERSION}"
+GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
+PLIST_SUB+= PORTVERSION="${PORTVERSION}" GHC_VERSION="${GHC_VERSION}"
pre-everything::
.if !defined(WITHOUT_IHASKELL)
@@ -43,5 +44,6 @@ pre-everything::
post-patch:
@${REINPLACE_CMD} -e 's/gtk-config/gtk12-config/g ; \
s/glib-config/glib12-config/g' ${WRKSRC}/configure
+ @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-gtk+hs/pkg-plist b/x11-toolkits/hs-gtk+hs/pkg-plist
index 9e29fc6d1ade..cef21f3a87e6 100644
--- a/x11-toolkits/hs-gtk+hs/pkg-plist
+++ b/x11-toolkits/hs-gtk+hs/pkg-plist
@@ -236,4 +236,6 @@ lib/gtk+hs-%%PORTVERSION%%/ghc5/include/GtkWindow.h
@dirrm lib/gtk+hs-%%PORTVERSION%%/ghc5
@dirrm lib/gtk+hs-%%PORTVERSION%%
@exec %D/bin/gtkhs-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 gtkhs
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old