27 lines
968 B
Ruby
27 lines
968 B
Ruby
class Libmtp < Formula
|
|
desc "Implementation of Microsoft's Media Transfer Protocol (MTP)"
|
|
homepage "http://libmtp.sourceforge.net/"
|
|
url "https://downloads.sourceforge.net/project/libmtp/libmtp/1.1.11/libmtp-1.1.11.tar.gz"
|
|
sha256 "15d96dff79a4f7ad14338894a4096d4ac584c6ad25fdcca955bc4726303287e9"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e4a3cdc99e98442b56cb2b7ffc5eb73d5846b55381b6606c0e5960da16bf5c0d" => :el_capitan
|
|
sha256 "6ba664bf6548074b9ae973b534e6ab61a07f4e83f4a6e5de68b0658eefb69411" => :yosemite
|
|
sha256 "9c61ba0beccdce922eea28c04d20e7d4c025bc2bd6d5716e6ee9fe447eedeec3" => :mavericks
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libusb-compat"
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-mtpz"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/mtp-getfile")
|
|
end
|
|
end
|