homebrew-core/Formula/shared-mime-info.rb
2015-05-20 13:54:38 +08:00

43 lines
1.2 KiB
Ruby

class SharedMimeInfo < Formula
homepage "https://wiki.freedesktop.org/www/Software/shared-mime-info"
url "http://freedesktop.org/~hadess/shared-mime-info-1.4.tar.xz"
sha256 "bbc0bd023f497dfd75e1ca73441cbbb5a63617d9e14f2790b868361cc055b5b1"
bottle do
cellar :any
sha256 "d9319f2574b82d7d17b413233307bfbd32691604194244d8ff529aae79db52c6" => :yosemite
sha256 "3931c3aa4e637cfb64617f8b0a9b7ceda2520a96c08fdb45235f138268d81064" => :mavericks
sha256 "0d66e477d10e982d33ad14c0824419738c5e465ae767f0fcda4e8f11dd82097b" => :mountain_lion
end
head do
url "http://anongit.freedesktop.org/git/xdg/shared-mime-info.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "intltool" => :build
end
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
depends_on "glib"
def install
# Disable the post-install update-mimedb due to crash
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--disable-update-mimedb
]
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end
system "make", "install"
end
test do
system bin/"update-mime-database", share/"mime"
end
end