libcdr 0.1.1 (new formula)
Closes Homebrew/homebrew#39142. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
36b500b544
commit
c530781d6d
1 changed files with 33 additions and 0 deletions
33
Formula/libcdr.rb
Normal file
33
Formula/libcdr.rb
Normal 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
|
Loading…
Reference in a new issue