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" bottle do cellar :any sha256 "626991163cce2d71306b8cc2182f0881006d23402b6bd6d970c610d386b02c4a" => :yosemite sha256 "6f3d2a303b340f3e1a89f4d0d07a25609a8888c3cbabecb90abdc7b18a622687" => :mavericks sha256 "a3df704492a824517d62d3ca29f0b916b8a52486a9745f300090d2c9dec2f038" => :mountain_lion end depends_on "pkg-config" => :build depends_on "boost" => :build depends_on "librevenge" depends_on "glm" 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 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" system "./test" end end