2012-10-27 22:18:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pce < Formula
|
|
|
|
homepage 'http://www.hampa.ch/pce/'
|
2013-07-26 03:17:24 +00:00
|
|
|
url 'http://www.hampa.ch/pub/pce/pce-0.2.2.tar.gz'
|
|
|
|
sha1 'b12dffbacaad44532b5c576bcffae5d11f17cc56'
|
2012-10-27 22:18:47 +00:00
|
|
|
|
|
|
|
head 'git://git.hampa.ch/pce.git'
|
|
|
|
|
|
|
|
devel do
|
2013-07-26 03:17:24 +00:00
|
|
|
url 'http://www.hampa.ch/pub/pce/pre/pce-20130508-37e6b78.tar.gz'
|
|
|
|
sha1 '029c099a1cb57f3e5b1afb087d44680efe94a42e'
|
2012-10-27 22:18:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on 'sdl'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2012-10-27 22:18:47 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-03-25 18:35:20 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/pce-ibmpc", "-V"
|
2012-10-27 22:18:47 +00:00
|
|
|
end
|
|
|
|
end
|