Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

haskell-cabal.eclass: add QA warning for libraries without 'ghc' in R…

…DEPEND

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
commit 154d0b059e490c8e70736d77a065982833ce2dae 1 parent 9177be4
@trofi trofi authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  eclass/haskell-cabal.eclass
View
3  eclass/haskell-cabal.eclass
@@ -412,6 +412,9 @@ cabal-is-dummy-lib() {
# exported function: check if cabal is correctly installed for
# the currently active ghc (we cannot guarantee this with portage)
haskell-cabal_pkg_setup() {
+ if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then
+ [[ ${RDEPEND} == *dev-lang/ghc* ]] || eqawarn "QA Notice: A library does not have runtime dependency on dev-lang/ghc."
+ fi
if [[ -z "${CABAL_HAS_BINARIES}" ]] && [[ -z "${CABAL_HAS_LIBRARIES}" ]]; then
eqawarn "QA Notice: Neither bin nor lib are in CABAL_FEATURES."
fi
Please sign in to comment.
Something went wrong with that request. Please try again.