diff options
| author | Julien Oster | 2012-10-28 00:18:47 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-31 06:56:08 -0700 |
| commit | d1fcec5f393146e10830bc6a86c88e6d81c996a8 (patch) | |
| tree | 7732c1c4c3497ec6b8367fb513e95a8e40e431ef /Library | |
| parent | be6f531cd71a2c3442c8f0b7a9711d761d7c1d23 (diff) | |
| download | homebrew-d1fcec5f393146e10830bc6a86c88e6d81c996a8.tar.bz2 | |
PCE 0.2.1
Closes #15704.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pce.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/pce.rb b/Library/Formula/pce.rb new file mode 100644 index 000000000..d41152933 --- /dev/null +++ b/Library/Formula/pce.rb @@ -0,0 +1,35 @@ +require 'formula' + +class Pce < Formula + homepage 'http://www.hampa.ch/pce/' + url 'http://www.hampa.ch/pub/pce/pce-0.2.1.tar.gz' + sha1 '72b9de82fc966a0ba037002605df7fbb7c7f5fb3' + + head 'git://git.hampa.ch/pce.git' + + devel do + url 'http://www.hampa.ch/pub/pce/pre/pce-20120904-92b57a0.tar.gz' + sha1 '577f5ad48e9b65ff01b8a6be655c83e3fda0a778' + end + + depends_on 'sdl' + depends_on 'readline' + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--without-x", + "--enable-readline" + system "make" + + # We need to run 'make install' without parallelization, because + # of a race that may cause the 'install' utility to fail when + # two instances concurrently create the same parent directories. + ENV.deparallelize + system "make install" + end + + def test + system "#{bin}/pce-ibmpc -V" + end +end |
