From a04d8578e36fdda4073eb947a37f251ed6d90a44 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sat, 3 Sep 2022 14:46:29 +0300 Subject: haskell-cabal.eclass: fix UnquotedVariable of EPREFIX Signed-off-by: Arthur Zamarin --- eclass/haskell-cabal.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index 732ea83e653c..0f7f67a244d7 100644 --- a/eclass/haskell-cabal.eclass +++ b/eclass/haskell-cabal.eclass @@ -390,9 +390,9 @@ cabal-configure() { # it generates for ghc's base and other packages. local p=${EPREFIX}/usr/bin/haddock-ghc-$(ghc-version) if [[ -f $p ]]; then - cabalconf+=(--with-haddock="${p}") + cabalconf+=( --with-haddock="${p}" ) else - cabalconf+=(--with-haddock=${EPREFIX}/usr/bin/haddock) + cabalconf+=( --with-haddock="${EPREFIX}"/usr/bin/haddock ) fi fi if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then @@ -702,7 +702,7 @@ cabal_src_install() { # if it does not exist (dummy libraries and binaries w/o libraries) local ghc_confdir_with_prefix="$(ghc-confdir)" # remove EPREFIX - dodir ${ghc_confdir_with_prefix#${EPREFIX}} + dodir "${ghc_confdir_with_prefix#${EPREFIX}}" local hint_db="${D}/$(ghc-confdir)" local hint_file="${hint_db}/gentoo-empty-${CATEGORY}-${PF}.conf" mkdir -p "${hint_db}" || die -- cgit v1.2.3-65-gdbad