From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev-return-2093-arch-gentoo-dev=gentoo.org@gentoo.org>
Received: (qmail 13245 invoked by uid 1002); 3 Apr 2003 21:34:52 -0000
Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm
Precedence: bulk
List-Post: <mailto:gentoo-dev@gentoo.org>
List-Help: <mailto:gentoo-dev-help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev-unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev-subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Received: (qmail 2974 invoked from network); 3 Apr 2003 21:34:52 -0000
From: Oliver Burnett-Hall <olly-bh@blueyonder.co.uk>
To: gentoo-dev@gentoo.org
In-Reply-To: <87he9hqhh5.fsf@peti.cryp.to>
References: <87he9hqhh5.fsf@peti.cryp.to>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1049323795.3143.12.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.3.1 (Preview Release)
Date: 02 Apr 2003 23:49:55 +0100
Subject: Re: [gentoo-dev] Haskell support in Gentoo
X-Archives-Salt: a59a4deb-62ab-4308-ad53-2cee18bd4323
X-Archives-Hash: 726ca95e9a93d8acdda18f0a1597f5ff

On Wed, 2003-04-02 at 12:14, Peter Simons wrote:
> Now we wonder how to organize this in the ebuild. A virtual
> "haskell-compiler" target won't do us any good, because -- as I said
> -- many packages require ghc. Hard-coding the ebuilds to depend on ghc
> only is not the right thing to do either, because some packages _can_
> be build with either ghc or nhc, and ideally, the user would be able
> to choose which compiler should be used.

You could create virtual/haskellc (or virtual/hc or whatever) and
packages could then depend on any of:
  o virtual/haskellc
  o dev-lang/ghc
  o dev-lang/nhc98
according to their compiler requirements.

If you want to give the user the choice of which compiler to use (for
packages that could be built with either compiler) then provide a tool,
along the lines of gcc-config, which either creates symlinks or plays
around with the path to select one of these compilers.

HTH,

- olly


--
gentoo-dev@gentoo.org mailing list