Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2002 08:00:11 -0700 (PDT)
From:      Oliver Braun <obraun@informatik.unibw-muenchen.de>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/41051: Update port: lang/ghc - avoid problems with textproc/haxml, fix package
Message-ID:  <200207271500.g6RF0BBB065309@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/41051; it has been noted by GNATS.

From: Oliver Braun <obraun@informatik.unibw-muenchen.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/41051: Update port: lang/ghc - avoid problems with textproc/haxml, fix package
Date: Sat, 27 Jul 2002 16:53:51 +0200

 forgot to add a pkg-message (Committer: pkg-message is a new file!).
 
 New patch supersedes the former one.
 
 Simon, please take a look at pkg-message, since for users it looks like
 you have written these words.
 
 Regards,
          Olli
 
 diff -ruN /usr/ports/lang/ghc/Makefile ghc/Makefile
 --- /usr/ports/lang/ghc/Makefile	Tue Jul 23 07:48:19 2002
 +++ ghc/Makefile	Sat Jul 27 16:44:31 2002
 @@ -6,7 +6,7 @@
  
  PORTNAME=	ghc
  PORTVERSION=	5.04
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	lang
  MASTER_SITES=	http://www.haskell.org/ghc/dist/${PORTVERSION}/
  
 @@ -49,11 +49,23 @@
  TMPDIR = ${WRKSRC}/tmp
  MAKE_ENV += TMPDIR=${TMPDIR}
  
 +post-patch:
 +	@${PERL} -pi -e 's/DrIFT/DrIFT-ghc/g; \
 +		s/DtdToHaskell/DtdToHaskell-ghc/g; \
 +		s/Xtract/Xtract-ghc/g' \
 +			${WRKSRC}/ghc/mk/config.mk \
 +			${WRKSRC}/hslibs/tools/DrIFT/Makefile \
 +			${WRKSRC}/hslibs/tools/DtdToHaskell/Makefile \
 +			${WRKSRC}/hslibs/tools/Xtract/Makefile
 +
  pre-configure:
  	@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
  	@(cd ${BOOT_DIR} && ${MAKE} in-place)
  
  pre-build:
  	@${MKDIR} ${TMPDIR}
 +
 +post-install:
 +	@${CAT} ${PKGMESSAGE}
  
  .include <bsd.port.post.mk>
 diff -ruN /usr/ports/lang/ghc/pkg-message ghc/pkg-message
 --- /usr/ports/lang/ghc/pkg-message	Thu Jan  1 01:00:00 1970
 +++ ghc/pkg-message	Sat Jul 27 16:41:03 2002
 @@ -0,0 +1,9 @@
 +********************************************************
 +In order to avoid problems with the textproc/haxml port,
 +
 +      DrIFT,     DtdToHaskell,     and Xtract
 +
 +were installed as
 +
 +      DrIFT-ghc, DtdToHaskell-ghc, and Xtract-ghc
 +********************************************************
 diff -ruN /usr/ports/lang/ghc/pkg-plist ghc/pkg-plist
 --- /usr/ports/lang/ghc/pkg-plist	Sun Jul 21 17:15:33 2002
 +++ ghc/pkg-plist	Sat Jul 27 15:27:44 2002
 @@ -9,9 +9,9 @@
  bin/hp2ps
  bin/ghcprof
  bin/stat2resid
 -bin/DrIFT
 -bin/DtdToHaskell
 -bin/Xtract
 +bin/DrIFT-ghc
 +bin/DtdToHaskell-ghc
 +bin/Xtract-ghc
  lib/ghc-%%GHC_VERSION%%/HSbase.o
  lib/ghc-%%GHC_VERSION%%/HSbase_cbits.o
  lib/ghc-%%GHC_VERSION%%/HSconcurrent.o
 @@ -825,6 +825,12 @@
  lib/ghc-%%GHC_VERSION%%/process-gcstats.prl
  lib/ghc-%%GHC_VERSION%%/template-hsc.h
  lib/ghc-%%GHC_VERSION%%/unlit
 +@exec /bin/mkdir -p %D/lib/ghc-%%GHC_VERSION%%/imports/base/Database
 +@exec /bin/mkdir -p %D/lib/ghc-%%GHC_VERSION%%/imports/base/FileFormat
 +@exec /bin/mkdir -p %D/lib/ghc-%%GHC_VERSION%%/imports/base/Hugs
 +@exec /bin/mkdir -p %D/lib/ghc-%%GHC_VERSION%%/imports/base/Language
 +@exec /bin/mkdir -p %D/lib/ghc-%%GHC_VERSION%%/imports/base/NHC
 +@exec /bin/mkdir -p %D/lib/ghc-%%GHC_VERSION%%/imports/base/Network
  @dirrm lib/ghc-%%GHC_VERSION%%/include
  @dirrm lib/ghc-%%GHC_VERSION%%/imports/util
  @dirrm lib/ghc-%%GHC_VERSION%%/imports/text

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207271500.g6RF0BBB065309>