2012-08-30 00:10:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
2012-10-21 13:35:51 +00:00
|
|
|
depends_on 'xz' => :build
|
2012-08-30 00:10:41 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'lua'
|
|
|
|
|
2013-08-07 04:17:13 +00:00
|
|
|
resource 'scripts' do
|
|
|
|
url 'http://downloads.sourceforge.net/project/quvi/0.4/libquvi-scripts/libquvi-scripts-0.4.14.tar.xz'
|
|
|
|
sha1 'fe721c8d882c5c4a826f1339c79179c56bb0fe41'
|
|
|
|
end
|
|
|
|
|
2012-08-30 00:10:41 +00:00
|
|
|
def install
|
|
|
|
scripts = prefix/'libquvi-scripts'
|
2013-08-07 04:17:13 +00:00
|
|
|
resource('scripts').stage do
|
2012-08-30 00:10:41 +00:00
|
|
|
system "./configure", "--prefix=#{scripts}", "--with-nsfw"
|
|
|
|
system "make install"
|
|
|
|
end
|
2013-08-19 22:21:14 +00:00
|
|
|
ENV.append_path 'PKG_CONFIG_PATH', "#{scripts}/lib/pkgconfig"
|
2012-08-30 00:10:41 +00:00
|
|
|
|
|
|
|
# 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
|