95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
class Librevenge < Formula
|
|
desc "Base library for writing document import filters"
|
|
homepage "http://sourceforge.net/p/libwpd/wiki/librevenge/"
|
|
url "http://dev-www.libreoffice.org/src/librevenge-0.0.2.tar.bz2"
|
|
mirror "https://downloads.sourceforge.net/project/libwpd/librevenge/librevenge-0.0.2/librevenge-0.0.2.tar.bz2"
|
|
sha256 "dedd6fe1f643fc2f254f2ad3719547084bd86bcc482104b995caf3b828368b18"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "fc55b9d9f55ba18639c0ab7d58a28b459aa907c2" => :yosemite
|
|
sha1 "063b7acffa5c58bd4706e6f128352a8646b5d396" => :mavericks
|
|
sha1 "fb4060640938625a3a83c6a42dc479d5318140fd" => :mountain_lion
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "boost" => :build
|
|
|
|
def install
|
|
system "./configure", "--without-docs",
|
|
"--disable-dependency-tracking",
|
|
"--enable-static=no",
|
|
"--disable-werror",
|
|
"--disable-tests",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.cpp").write <<-EOS.undent
|
|
#include <librevenge/librevenge.h>
|
|
int main() {
|
|
librevenge::RVNGString str;
|
|
return 0;
|
|
}
|
|
EOS
|
|
system ENV.cc, "test.cpp", "-lrevenge-0.0",
|
|
"-I#{include}/librevenge-0.0", "-L#{lib}"
|
|
end
|
|
end
|