diff options
| author | kkung | 2013-03-29 00:23:31 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2013-03-29 09:03:26 -0700 |
| commit | c2116d7184aa4b9784f794461ce1b156e31087d2 (patch) | |
| tree | 8981c3cdf4e3f688d6f11349f62e7d4834ba5fe8 /Library | |
| parent | c3b40ab5603f088a58fc015a48cafcf29334a62a (diff) | |
| download | homebrew-c2116d7184aa4b9784f794461ce1b156e31087d2.tar.bz2 | |
pev 0.60
Closes #18795.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pev.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/pev.rb b/Library/Formula/pev.rb new file mode 100644 index 000000000..288fa546b --- /dev/null +++ b/Library/Formula/pev.rb @@ -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 |
