Gentoo Development Guide

GHC-PACKAGE.ECLASS

Section: portage (5)
Updated: Nov 2014
Index Return to Main Contents
 

NAME

ghc-package.eclass - This eclass helps with the Glasgow Haskell Compiler's package configuration utility.  

DESCRIPTION

Helper eclass to handle ghc installation/upgrade/deinstallation process.  

FUNCTIONS

ghc-getghc
returns the name of the ghc executable
ghc-getghcpkg
Internal function determines returns the name of the ghc-pkg executable
ghc-getghcpkgbin
returns the name of the ghc-pkg binary (ghc-pkg itself usually is a shell script, and we have to bypass the script under certain circumstances); for Cabal, we add an empty global package config file, because for some reason the global package file must be specified
ghc-version
returns the version of ghc
ghc-bestcabalversion
return the best version of the Cabal library that is available
ghc-sanecabal
check if a standalone Cabal version is available for the currently used ghc; takes minimal version of Cabal as an optional argument
ghc-supports-shared-libraries
checks if ghc is built with support for building shared libraries (aka '-dynamic' option)
ghc-supports-threaded-runtime
checks if ghc is built with support for threaded runtime (aka '-threaded' option)
ghc-supports-smp
checks if ghc is built with support for multiple cores runtime
ghc-supports-dynamic-by-default
checks if ghc links against shared haskell libraries by default
ghc-supports-interpreter
checks if ghc has interpreter mode (aka GHCi) It usually means that ghc supports for template haskell.
ghc-supports-parallel-make
checks if ghc has support for '--make -j' mode The option was introduced in ghc-7.8-rc1.
ghc-extractportageversion
extract the version of a portage-installed package
ghc-libdir
returns the library directory
ghc-confdir
returns the (Gentoo) library configuration directory
ghc-localpkgconf
returns the name of the local (package-specific) package configuration file
ghc-makeghcilib
make a ghci foo.o file from a libfoo.a file
ghc-package-exists
tests if a ghc package exists
ghc-setup-pkg
creates a local (package-specific) package configuration file; the arguments should be uninstalled package description files, each containing a single package description; if no arguments are given, the resulting file is empty
ghc-fixlibpath
fixes the library and import directories path of the package configuration file
ghc-install-pkg
moves the local (package-specific) package configuration file to its final destination
ghc-register-pkg
registers all packages in the local (package-specific) package configuration file
ghc-reregister
re-adds all available .conf files to the global package conf file, to be used on a ghc reinstallation
ghc-unregister-pkg
unregisters a package configuration file protected are all packages that are still contained in another package configuration file
ghc-reverse
help-function: reverse a list
ghc-elem
help-function: element-check
ghc-listpkg
show the packages in a package configuration file
ghc-package_pkg_postinst
exported function: registers the package-specific package configuration file
ghc-package_pkg_prerm
exported function: unregisters the package-specific package configuration file; a package contained therein is unregistered only if it the same package is not also contained in another package configuration file ...
 

AUTHORS

Original Author: Andres Loeh <kosmikus@gentoo.org>
 

MAINTAINERS

"Gentoo's Haskell Language team" <haskell@gentoo.org>
 

REPORTING BUGS

Please report bugs via http://bugs.gentoo.org/  

FILES

/usr/portage/eclass/ghc-package.eclass  

SEE ALSO

ebuild(5)
http://sources.gentoo.org/eclass/ghc-package.eclass?view=log


 

Index

NAME
DESCRIPTION
FUNCTIONS
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:13 GMT, November 24, 2014