44 lines
1.2 KiB
Ruby
44 lines
1.2 KiB
Ruby
class Libgpod < Formula
|
|
desc "Library to access the contents of classic iPods"
|
|
homepage "https://gtkpod.org/libgpod/"
|
|
url "https://github.com/neuschaefer/libgpod/archive/0dda196286f5e42be89f0b870abd9278213989a5.tar.gz"
|
|
sha256 "a9809f85b2b763196ac7c94903211a927efd37a24ef39c355c21b4a1bed28e52"
|
|
license "LGPL-2.0-only"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
depends_on "gdk-pixbuf"
|
|
depends_on "libplist"
|
|
depends_on "libxml2"
|
|
depends_on "sqlite"
|
|
|
|
def install
|
|
ENV["NOCONFIGURE"] = "1"
|
|
system "./autogen.sh"
|
|
|
|
system "./configure", *std_configure_args,
|
|
"--disable-dependency-tracking",
|
|
"--with-hal=no",
|
|
"--disable-udev",
|
|
"--without-libimobiledevice",
|
|
"--with-python=no",
|
|
"--with-mono=no",
|
|
"--disable-gtk-doc",
|
|
"--disable-gtk-doc-html",
|
|
"--disable-gtk-doc-pdf",
|
|
"--enable-more-warnings=no"
|
|
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
# Ensure pkg-config can find the expected module name used by Strawberry.
|
|
assert_match "libgpod", shell_output("pkg-config --libs libgpod-1.0")
|
|
end
|
|
end
|
|
|