libcdr 0.1.1 (new formula)

Closes Homebrew/homebrew#39142.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
luzpaz 2015-04-28 07:46:32 -05:00 committed by Mike McQuaid
parent 36b500b544
commit c530781d6d

33
Formula/libcdr.rb Normal file
View file

@ -0,0 +1,33 @@
class Libcdr < Formula
homepage "https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
url "http://dev-www.libreoffice.org/src/libcdr/libcdr-0.1.1.tar.bz2"
sha256 "72fe7bbbf2275242acdf67ad2f9b6c71ac9146a56c409def360dabcac5695b49"
depends_on "pkg-config" => :build
depends_on "boost" => :build
depends_on "icu4c"
depends_on "librevenge"
depends_on "little-cms2"
def install
ENV.cxx11
system "./configure", "--disable-werror",
"--without-docs",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"test.cpp").write <<-EOS.undent
#include <libcdr/libcdr.h>
int main() {
libcdr::CDRDocument::isSupported(0);
}
EOS
system ENV.cxx, "test.cpp", "-o", "test",
"-I#{Formula["librevenge"].include}/librevenge-0.0",
"-I#{include}/libcdr-0.1",
"-lcdr-0.1"
system "./test"
end
end