9 |
: ${HOMEPAGE="http://hackage.haskell.org/package/${PNAME/#haskell-/}"} |
: ${HOMEPAGE="http://hackage.haskell.org/package/${PNAME/#haskell-/}"} |
10 |
|
|
11 |
# some sane default dependencies |
# some sane default dependencies |
12 |
|
# all packages with haskell in the name needs ghc as runtime |
13 |
|
if [[ ${PNAME/#haskell-/} != ${PNAME} ]] |
14 |
|
then |
15 |
|
DEPEND="${DEPEND} |
16 |
|
>= dev-lang/ghc-6.12" |
17 |
|
fi |
18 |
|
# all other only as SDEPEND |
19 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
20 |
>= dev-lang/ghc-6.12" |
>= dev-lang/ghc-6.12" |
21 |
|
|
68 |
haskell_disable_feature() |
haskell_disable_feature() |
69 |
{ |
{ |
70 |
local feature="$1" |
local feature="$1" |
71 |
haskell_feature_is_supported || die "haskell feature '${feature}' not supported!" |
haskell_feature_is_supported "${feature}" || die "haskell feature '${feature}' not supported!" |
72 |
|
echo -e "${COLBLUE}--- ${COLRED}disabled haskell feature '${feature}'${COLDEFAULT}" |
73 |
export HASKELL_FEATURES="${HASKELL_FEATURES/${feature}/}" |
export HASKELL_FEATURES="${HASKELL_FEATURES/${feature}/}" |
74 |
} |
} |
75 |
|
|
76 |
haskell_enable_feature() |
haskell_enable_feature() |
77 |
{ |
{ |
78 |
local feature="$1" |
local feature="$1" |
79 |
haskell_feature_is_supported || die "haskell feature '${feature}' not supported!" |
haskell_feature_is_supported "${feature}" || die "haskell feature '${feature}' not supported!" |
80 |
|
echo -e "${COLBLUE}+++ ${COLGREEN}enabled haskell feature '${feature}'${COLDEFAULT}" |
81 |
export HASKELL_FEATURES+=" ${feature}" |
export HASKELL_FEATURES+=" ${feature}" |
82 |
} |
} |
83 |
|
|
155 |
runhaskell $(haskell_ghc_setup_script) copy --destdir=${BINDIR} || die |
runhaskell $(haskell_ghc_setup_script) copy --destdir=${BINDIR} || die |
156 |
|
|
157 |
# create register scripts |
# create register scripts |
158 |
haskell_feature register && haskell_install_register || die |
if haskell_feature register |
159 |
|
then |
160 |
|
haskell_install_register || die |
161 |
|
fi |
162 |
|
|
163 |
# install docs |
# install docs |
164 |
local i |
local i |