Permalink
Browse files

add perlbrew recipe

  • Loading branch information...
Jim V
Jim V committed Jun 21, 2012
1 parent 662425d commit ce381e9210133ed14cc14e10f7ccfc5abfba0ca3
Showing with 32 additions and 0 deletions.
  1. +32 −0 recipes/perlbrew.sh
View
@@ -0,0 +1,32 @@
+local version="0.43"
+local URL="http://xrl.us/perlbrewinstall"
+local seed_name="perlbrew-${version}"
+
+do_install()
+{
+ cd $STAGE_DIR
+ mkdir $seed_name
+ export PERLBREW_ROOT=$STAGE_DIR/$seed_name
+ curl -Lk http://xrl.us/perlbrewinstall | bash
+}
+
+do_activate()
+{
+ for_env "export PERLBREW_ROOT='$STAGE_DIR/$seed_name'"
+ # for_env "export PATH=\\"\\$PERLBREW_ROOT/bin:\\$PATH\\""
+ for_env "source $STAGE_DIR/$seed_name/etc/bashrc"
+}
+
+do_test()
+{
+ log "test"
+}
+
+
+do_remove()
+{
+ remove_recipe $seed_name
+ remove_from_stage $seed_name ${install_files[@]}
+}
+
+source "$MAIN_DIR/lib/case.sh"

0 comments on commit ce381e9

Please sign in to comment.