diff options
Diffstat (limited to 'Library/Formula/libquvi.rb')
| -rw-r--r-- | Library/Formula/libquvi.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/libquvi.rb b/Library/Formula/libquvi.rb new file mode 100644 index 000000000..18f70b90c --- /dev/null +++ b/Library/Formula/libquvi.rb @@ -0,0 +1,32 @@ +require 'formula' + +class LibquviScripts < Formula + homepage 'http://quvi.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/quvi/0.4/libquvi-scripts/libquvi-scripts-0.4.8.tar.bz2' + sha1 '097ca9da1efe17a9b94a58bbd3ec94e3a4101e54' +end + +class Libquvi < Formula + homepage 'http://quvi.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/quvi/0.4/libquvi/libquvi-0.4.1.tar.bz2' + sha1 'b7ac371185c35a1a9a2135ef4ee61c86c48f78f4' + + depends_on 'pkg-config' => :build + depends_on 'lua' + + def install + scripts = prefix/'libquvi-scripts' + LibquviScripts.new.brew do + system "./configure", "--prefix=#{scripts}", "--with-nsfw" + system "make install" + end + ENV.append 'PKG_CONFIG_PATH', "#{scripts}/lib/pkgconfig", ':' + + # Lua 5.2 does not have a proper lua.pc + ENV['liblua_CFLAGS'] = ' ' + ENV['liblua_LIBS'] = '-llua' + + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" + system "make install" + end +end |
