Gentoo Development Guide

GHC-PACKAGE.ECLASS

Section: portage (5)
Updated: Jul 2015
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-cabal-version
return version of the Cabal library bundled with ghc
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-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, we store here a hint for 'haskell-updater' about packages installed for old ghc versions and current ones.
ghc-package-db
returns the global package database directory
ghc-localpkgconfd
returns the name of the local (package-specific) package configuration file
ghc-package-exists
tests if a ghc package exists
check-for-collisions
have the same version as initial package setup
ghc-install-pkg
moves the local (package-specific) package configuration file to its final destination
ghc-recache-db
updates 'package.cache' binary cacne for registered '*.conf' packages
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
ghc-pkgdeps
exported function: loads a package dependency in a form cabal_package version
ghc-package_pkg_postinst
updates package.cache after package install
ghc-package_pkg_prerm
updates package.cache after package deinstall
ghc-package_pkg_postrm
updates package.cache after package deinstall
 

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:07 GMT, July 01, 2015