Skip to content

Commit

Permalink
add perlbrew recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim V committed Jun 21, 2012
1 parent 662425d commit ce381e9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions recipes/perlbrew.sh
@@ -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.