commit:     a04d8578e36fdda4073eb947a37f251ed6d90a44
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  3 11:46:29 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 12 19:14:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a04d8578

haskell-cabal.eclass: fix UnquotedVariable of EPREFIX

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 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

Reply via email to