2015-03-21 18:04:01 +00:00
|
|
|
class Gexiv2 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GObject wrapper around the Exiv2 photo metadata library"
|
2015-03-21 18:04:01 +00:00
|
|
|
homepage "https://wiki.gnome.org/Projects/gexiv2"
|
2015-04-08 00:13:50 +00:00
|
|
|
url "https://download.gnome.org/sources/gexiv2/0.10/gexiv2-0.10.3.tar.xz"
|
|
|
|
sha256 "390cfb966197fa9f3f32200bc578d7c7f3560358c235e6419657206a362d3988"
|
2015-06-27 22:07:05 +00:00
|
|
|
revision 1
|
2015-03-21 18:04:01 +00:00
|
|
|
|
2015-03-21 20:34:55 +00:00
|
|
|
bottle do
|
2015-06-29 21:52:25 +00:00
|
|
|
sha256 "270b4350e13add5b48f08a9fa739b59a39efe29dac5ccc06fb2b063f8845787c" => :yosemite
|
|
|
|
sha256 "dd5152129614cb1654578833d768b4bc39c24a55a49e3e528d1c32af30add549" => :mavericks
|
|
|
|
sha256 "7faf7188a9bbbae5258108f6ed767fa9e32a183ba4c76aab596a90e428742192" => :mountain_lion
|
2015-03-21 20:34:55 +00:00
|
|
|
end
|
|
|
|
|
2015-03-21 18:04:01 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2015-04-08 00:13:50 +00:00
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "gobject-introspection" => :build
|
2015-03-21 18:04:01 +00:00
|
|
|
depends_on "glib"
|
|
|
|
depends_on "exiv2"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
2015-04-08 00:13:50 +00:00
|
|
|
"--enable-introspection",
|
2015-03-21 18:04:01 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
#include <gexiv2/gexiv2.h>
|
|
|
|
int main() {
|
|
|
|
GExiv2Metadata *metadata = gexiv2_metadata_new();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
|
|
|
|
flags = [
|
|
|
|
"-I#{HOMEBREW_PREFIX}/include/glib-2.0",
|
|
|
|
"-I#{HOMEBREW_PREFIX}/lib/glib-2.0/include",
|
|
|
|
"-L#{lib}",
|
2015-08-03 12:55:31 +00:00
|
|
|
"-lgexiv2"
|
2015-03-21 18:04:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
system ENV.cc, "test.c", "-o", "test", *flags
|
|
|
|
system "./test"
|
|
|
|
end
|
|
|
|
end
|