Permalink
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...
1 parent 9177be4 commit 154d0b059e490c8e70736d77a065982833ce2dae @trofi trofi committed Nov 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit 154d0b0

Please sign in to comment.