1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

Remove ghc's package.conf.old.

Pointed out by:	kris, bento
This commit is contained in:
Oliver Braun 2003-06-09 18:54:49 +00:00
parent b20a05a47c
commit 9cefd6fa47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82614
2 changed files with 8 additions and 1 deletions

View File

@ -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}

View File

@ -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