Closes Homebrew/homebrew#18795.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
kkung 2013-03-29 00:23:31 +09:00 committed by Adam Vandenberg
parent d856a77749
commit 9e8069496f
1 changed files with 30 additions and 0 deletions

30
Formula/pev.rb Normal file
View File

@ -0,0 +1,30 @@
require 'formula'
class Pev < Formula
homepage 'http://pev.sf.net/'
url 'http://downloads.sourceforge.net/project/pev/pev-0.60/pev-0.60.tar.gz'
sha1 '8d5e0bafb6dd4da0dcda6837928ad4babb6c8a94'
head 'https://github.com/merces/pev.git'
depends_on 'pcre'
def install
inreplace 'src/Makefile' do |s|
s.change_make_var! "PREFIX", prefix
s.change_make_var! "SHAREDIR", share
s.change_make_var! "MANDIR", man
end
inreplace 'lib/libpe/Makefile' do |s|
s.change_make_var! "PREFIX", prefix
end
system "make", "CC=#{ENV.cc}"
system "make install"
end
test do
system "#{bin}/pedis", "--version"
end
end