diff options
| author | Andrew Childs | 2013-07-08 22:35:06 +1200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-12 09:19:33 -0700 |
| commit | 415f7034f5ed1c322758bdad3bd54c283e9742c7 (patch) | |
| tree | 3846ad1d8fd06cd7d28936a1238aaba87aed35cd /Library/Formula | |
| parent | 5c8b087950f9974b14f8d72be243c04f0140407b (diff) | |
| download | homebrew-415f7034f5ed1c322758bdad3bd54c283e9742c7.tar.bz2 | |
cardpeek 0.7.2
Closes #21073.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cardpeek.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/cardpeek.rb b/Library/Formula/cardpeek.rb new file mode 100644 index 000000000..9324b3271 --- /dev/null +++ b/Library/Formula/cardpeek.rb @@ -0,0 +1,34 @@ +require 'formula' + +class Cardpeek < Formula + homepage 'https://cardpeek.googlecode.com' + url 'https://cardpeek.googlecode.com/files/cardpeek-0.7.2.tar.gz' + sha1 '9f774140bbfea2ebdd25f38146d7ebe3b1c0d871' + + head 'http://cardpeek.googlecode.com/svn/trunk/' + + depends_on 'pkg-config' => :build + depends_on :automake + depends_on :x11 + depends_on 'gtk+' + depends_on 'lua' + + def patches + # Required for 0.7.2, fixed in HEAD. See: + # https://code.google.com/p/cardpeek/issues/detail?id=24 + {:p0 => [ + "https://cardpeek.googlecode.com/issues/attachment?aid=240000000&name=cardpeek-svn-osx.diff&token=JGVrSd-7Wcyfo98Lny3Y4NVUBcU%3A1373645845242", + "https://cardpeek.googlecode.com/issues/attachment?aid=240001000&name=extra_patch.diff&token=mQZWOOGcuPxufd414OgwQjJ505I%3A1373645845242" + ]} unless build.head? + end + + def install + # always run autoreconf, neeeded to generate configure for --HEAD, + # and otherwise needed to reflect changes to configure.ac + system "autoreconf -i" + + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end +end |
