diff --git a/Formula/macvim.rb b/Formula/macvim.rb index 1d67cb2cd6..42ef959514 100644 --- a/Formula/macvim.rb +++ b/Formula/macvim.rb @@ -58,7 +58,9 @@ class Macvim < Formula end # Reference: https://github.com/b4winckler/macvim/wiki/building - system "cd src/MacVim/icons && make getenvy" + cd 'src/MacVim/icons' do + system "make getenvy" + end system "make" diff --git a/Formula/qi.rb b/Formula/qi.rb index 0a92a94c57..c0f1748787 100644 --- a/Formula/qi.rb +++ b/Formula/qi.rb @@ -17,11 +17,17 @@ class Qi < Formula def install if ARGV.include? '--SBCL' - system "cd Lisp; sbcl --load 'install.lsp'" + cd 'Lisp' do + system "sbcl", "--load", "install.lsp" + end + system "echo \"#!/bin/bash\nsbcl --core #{prefix}/Qi.core $*\" > qi" prefix.install ['Lisp/Qi.core'] else - system "cd Lisp; clisp install.lsp" + cd 'Lisp' do + system "clisp", "install.lsp" + end + system "echo \"#!/bin/bash\nclisp -M #{prefix}/Qi.mem $*\" > qi" prefix.install ['Lisp/Qi.mem'] end diff --git a/Formula/samtools.rb b/Formula/samtools.rb index 98f41f0c5c..a5231117dd 100644 --- a/Formula/samtools.rb +++ b/Formula/samtools.rb @@ -9,7 +9,9 @@ class Samtools < Formula def install system "make" system "make razip" - system "cd bcftools; make" + cd 'bcftools' do + system "make" + end bin.install %w{samtools razip bcftools/bcftools bcftools/vcfutils.pl} bin.install %w{misc/maq2sam-long misc/maq2sam-short misc/md5fa misc/md5sum-lite misc/seqtk misc/wgsim}