mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Remove ghc's package.conf.old.
Pointed out by: kris, bento
This commit is contained in:
parent
acf1b7ba86
commit
6bdc24f959
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82612
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user