homebrew-core/Formula/libetonyek.rb

45 lines
1.5 KiB
Ruby
Raw Normal View History

2014-06-11 04:43:59 +00:00
class Libetonyek < Formula
homepage "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
url "http://dev-www.libreoffice.org/src/libetonyek/libetonyek-0.1.2.tar.xz"
sha256 "58d078a76c3fd839c282244a1a7dabca81cef64be086a5c7d8470bb64208da39"
2014-06-11 04:43:59 +00:00
bottle do
cellar :any
2015-05-24 20:08:14 +00:00
sha256 "626991163cce2d71306b8cc2182f0881006d23402b6bd6d970c610d386b02c4a" => :yosemite
sha256 "6f3d2a303b340f3e1a89f4d0d07a25609a8888c3cbabecb90abdc7b18a622687" => :mavericks
sha256 "a3df704492a824517d62d3ca29f0b916b8a52486a9745f300090d2c9dec2f038" => :mountain_lion
end
2014-06-11 04:43:59 +00:00
depends_on "pkg-config" => :build
depends_on "boost" => :build
depends_on "librevenge"
depends_on "glm"
2014-06-11 04:43:59 +00:00
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 <libetonyek/EtonyekDocument.h>
int main() {
return libetonyek::EtonyekDocument::RESULT_OK;
}
EOS
system ENV.cxx, "test.cpp", "-o", "test",
"-I#{Formula["librevenge"].include}/librevenge-0.0",
"-I#{include}/libetonyek-0.1",
"-L#{Formula["librevenge"].lib}",
"-L#{lib}",
"-lrevenge-0.0",
"-letonyek-0.1"
2014-06-11 04:43:59 +00:00
system "./test"
end
end