Skip to content

Instantly share code, notes, and snippets.

@jramnani
Created February 24, 2013 18:27
Show Gist options
  • Save jramnani/5024930 to your computer and use it in GitHub Desktop.
Save jramnani/5024930 to your computer and use it in GitHub Desktop.
Homebrew formula for plan9port
require 'formula'
class Plan9port < Formula
homepage 'http://swtch.com/plan9port/'
url 'https://bitbucket.org/rsc/plan9port', :using => :hg, :tag => '697c23cebcec'
version '20120603'
md5 '18993b6993950864f7fb95f73ac47168'
head 'https://bitbucket.org/rsc/plan9port', :using => :hg
keg_only "plan9port includes system programs like 'cat' and 'awk', and you may not want to override their OS X equivalents."
def install
ohai "Compiling plan9port ..."
system './INSTALL -b'
prefix.install Dir['*']
end
def test
# Finish the compilation / install process in the target directory.
# plan9port rewites shebang lines to point to the final install dir.
system "./INSTALL -c"
end
def caveats; <<-EOS.undent
Add these to your profile environment when you want to use plan9port programs.
PLAN9=#{prefix}; export PLAN9
PATH=$PATH:$PLAN9/bin; export PATH
EOS
end
end
@milkypostman
Copy link

why didn't this get submitted to the official repository?

@stroborobo
Copy link

If this works, please submit it, that'd be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment