Magellan Linux

Diff of /trunk/include/haskell.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5542 by niro, Thu Jul 1 15:34:06 2010 UTC revision 5571 by niro, Fri Jul 2 08:18:49 2010 UTC
# Line 9  sminclude mtools Line 9  sminclude mtools
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    
# Line 62  haskell_disable_feature() Line 69  haskell_disable_feature()
69  {  {
70   local feature="$1"   local feature="$1"
71   haskell_feature_is_supported "${feature}" || die "haskell feature '${feature}' not supported!"   haskell_feature_is_supported "${feature}" || die "haskell feature '${feature}' not supported!"
72   echo -e "${COLBLUE}--- ${COLGRED}  disabled haskell feature '${feature}'${COLDEFAULT}"   echo -e "${COLBLUE}--- ${COLRED}disabled haskell feature '${feature}'${COLDEFAULT}"
73   export HASKELL_FEATURES="${HASKELL_FEATURES/${feature}/}"   export HASKELL_FEATURES="${HASKELL_FEATURES/${feature}/}"
74  }  }
75    
# Line 70  haskell_enable_feature() Line 77  haskell_enable_feature()
77  {  {
78   local feature="$1"   local feature="$1"
79   haskell_feature_is_supported "${feature}" || 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}"   echo -e "${COLBLUE}+++ ${COLGREEN}enabled haskell feature '${feature}'${COLDEFAULT}"
81   export HASKELL_FEATURES+=" ${feature}"   export HASKELL_FEATURES+=" ${feature}"
82  }  }
83    
# Line 148  haskell_src_install() Line 155  haskell_src_install()
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

Legend:
Removed from v.5542  
changed lines
  Added in v.5571