Skip to content

Commit

Permalink
Workaround default agda css file path issue. Fix tested with ghc 7.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markwright committed Oct 12, 2012
1 parent a987c8e commit 6d4bf78
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sci-mathematics/agda-stdlib/agda-stdlib-9999.ebuild
Expand Up @@ -38,7 +38,14 @@ src_compile() {
use profile && prof="--ghc-flag=-prof"
agda +RTS -K1G -RTS ${prof} \
-i "${S}" -i "${S}"/src "${S}"/Everything.agda || die
agda --html -i "${S}" -i "${S}"/src "${S}"/README.agda || die
# Although my agda-9999 build has
# /var/tmp/portage/sci-mathematics/agda-9999/work/agda-9999/dist/build/autogen/Paths_Agda.hs
# containing:
# datadir = "/usr/share/agda-9999/ghc-7.6.1"
# it fails without the --css option like:
# /usr/share/agda-9999/ghc-7.4.1/Agda.css: copyFile: does not exist
local cssdir=$(egrep 'datadir *=' "${S}/dist/build/autogen/Paths_lib.hs" | sed -e 's@datadir = \(.*\)@\1@')
agda --html -i "${S}" -i "${S}"/src --css="${cssdir}/Agda.css" "${S}"/README.agda || die
}

src_test() {
Expand Down

0 comments on commit 6d4bf78

Please sign in to comment.