Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: kosmikus <kosmikus@g.o>
Subject: eclass for Haskell GHC packages
Date: Fri, 29 Oct 2004 11:57:28 +0200
I have written a new eclass, to be called ghc-package.eclass,
and submitted it as bug #69270 for everyone to see.

Explanation for non-Haskellers:

The Glasgow Haskell Compiler (GHC) is available in Gentoo
as an ebuild (dev-lang/ghc).

There are also a couple of Haskell libraries in the distribution,
and there are going to be more in the future ... For a library
to be available for other Haskell programs to use, it has to be
registered with GHC's package tool, called ghc-pkg, which is
shipped with the compiler.

This package tool writes a system-wide package configuration file,
and can therefore only be executed during post-installation.

Currently, the Haskell libraries that have ebuilds use slightly
varying hacks to prevent the makefiles from calling ghc-pkg
directly and to register the packages during post-installation
(and to unregister packages during removal).

This is the main purpose that the eclass fulfills: it specifies
clearly what the package maintainer has to do, and it leaves
all the dirty work to the eclass methods.

I have adapted a few ebuilds to use the eclass -- they are
also included in the bug. It seems to work fine.

I am away for the weekend, which gives you time to send comments
and flames. If I don't hear anything negative, I would commit
the eclass next week, and start to convert ebuilds to use it
afterwards ...

Cheers,
  ks

--
gentoo-dev@g.o mailing list

Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
a few more -major- glibc changes worth noting
Next by thread:
kernel-mod.eclass addition + clean up
Previous by date:
Re: Hello
Next by date:
kernel-mod.eclass addition + clean up


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.