diff options
| author | luzpaz | 2014-07-27 13:20:24 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-31 11:18:13 +0200 |
| commit | a77baa992c7c50c3ae31a2ec10f47fff690841ee (patch) | |
| tree | 90025297b0841b38a54cc38ace1aff9fc85d2208 /Library/Formula | |
| parent | 348ea31db8effe491ea8bc4de1e8ebf8f18a59af (diff) | |
| download | homebrew-a77baa992c7c50c3ae31a2ec10f47fff690841ee.tar.bz2 | |
libcdr 0.1.0
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libcdr.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/libcdr.rb b/Library/Formula/libcdr.rb new file mode 100644 index 000000000..a68c3f7d8 --- /dev/null +++ b/Library/Formula/libcdr.rb @@ -0,0 +1,34 @@ +require "formula" + +class Libcdr < Formula + homepage "https://wiki.documentfoundation.org/DLP/Libraries/libcdr" + url "http://dev-www.libreoffice.org/src/libcdr/libcdr-0.1.0.tar.bz2" + sha1 "fea63690acea2b9eac5dc6f51232154b7bb41a9e" + + + depends_on "pkg-config" => :build + depends_on "boost" => :build + depends_on "icu4c" + depends_on "librevenge" + depends_on "little-cms2" + + needs :cxx11 + + def install + ENV.libcxx + ENV.cxx11 + system "./configure", "--disable-werror", + "--without-docs" + 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", "-I#{Formula["librevenge"].include}/librevenge-0.0", "-I#{HOMEBREW_PREFIX}/include/libcdr-0.1", "-lcdr-0.1" + end +end |
