Magellan Linux

Diff of /trunk/include/haskell.sminc

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

revision 5537 by niro, Thu Jul 1 15:22: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 61  haskell_feature_is_supported() Line 68  haskell_feature_is_supported()
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    
# Line 128  haskell_src_configure() Line 137  haskell_src_configure()
137   || die   || die
138  }  }
139    
140    haskell_src_build()
141    {
142     runhaskell $(haskell_ghc_setup_script) build || die
143    }
144    
145  haskell_src_compile()  haskell_src_compile()
146  {  {
147   cd ${SRCDIR}   cd ${SRCDIR}
148   haskell_src_configure || die   haskell_src_configure || die
149   runhaskell $(haskell_ghc_setup_script) build || die   haskell_src_build || die
150  }  }
151    
152  haskell_src_install()  haskell_src_install()
# Line 141  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.5537  
changed lines
  Added in v.5571