add libmspub 0.1.0
parent
3709c55607
commit
1c1bde9587
|
@ -0,0 +1,43 @@
|
|||
require "formula"
|
||||
|
||||
class Libmspub < Formula
|
||||
homepage "http://www.freedesktop.org/wiki/Software/libmspub/"
|
||||
url "http://dev-www.libreoffice.org/src/libmspub-0.1.0.tar.bz2"
|
||||
sha1 "4dc9b9c85cb1c30dde071a88edf40a629b6de666"
|
||||
|
||||
bottle do
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "boost" => :build
|
||||
depends_on "libwpg" => :build
|
||||
depends_on "libwpd"
|
||||
depends_on "icu4c"
|
||||
depends_on "librevenge"
|
||||
|
||||
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-stream/librevenge-stream.h>
|
||||
#include <libmspub/MSPUBDocument.h>
|
||||
int main() {
|
||||
librevenge::RVNGStringStream docStream(0, 0);
|
||||
libmspub::MSPUBDocument::isSupported(&docStream);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cxx, "test.cpp", "-o", "test", "-lrevenge-stream-0.0",
|
||||
"-I#{Formula["librevenge"].include}/librevenge-0.0",
|
||||
"-lmspub-0.1", "-I#{include}/libmspub-0.1"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue