2010-03-12 18:05:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Liblunar < Formula
|
2010-03-12 18:05:26 +00:00
|
|
|
homepage 'http://code.google.com/p/liblunar/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://liblunar.googlecode.com/files/liblunar-2.2.5.tar.gz'
|
2012-09-05 04:43:18 +00:00
|
|
|
sha1 'c149dc32776667ed8d53124eec414ab15ace0981'
|
2010-03-12 18:05:26 +00:00
|
|
|
|
2014-07-03 19:34:34 +00:00
|
|
|
bottle do
|
2014-10-21 13:18:17 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "8113fe85f888c12a9841aa6281016406ec7b9799" => :yosemite
|
|
|
|
sha1 "b92965d3651332b69eb42a1f6341b5daf12b9632" => :mavericks
|
|
|
|
sha1 "69b6824161e90b0578e314efcae5db056930ed2e" => :mountain_lion
|
2014-07-03 19:34:34 +00:00
|
|
|
end
|
|
|
|
|
2012-09-05 04:43:18 +00:00
|
|
|
option 'python', 'Build python bindings using pygobject'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:40:11 +00:00
|
|
|
depends_on 'intltool' => :build
|
2012-09-05 04:43:18 +00:00
|
|
|
depends_on 'glib'
|
2010-03-12 18:05:26 +00:00
|
|
|
depends_on 'gettext'
|
2012-09-05 04:43:18 +00:00
|
|
|
depends_on 'vala' => :optional
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
|
|
|
depends_on 'pygobject' if build.with? 'python'
|
2010-03-12 18:05:26 +00:00
|
|
|
|
|
|
|
def install
|
2012-09-05 04:43:18 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2014-03-06 20:40:26 +00:00
|
|
|
args << '--disable-python' if build.without? 'python'
|
2012-09-05 04:43:18 +00:00
|
|
|
system './configure', *args
|
|
|
|
system 'make install'
|
2010-03-12 18:05:26 +00:00
|
|
|
end
|
|
|
|
end
|