tgui 0.6.9 (new formula)

Closes Homebrew/homebrew#47264.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Colin Deasy 2015-11-14 12:57:29 +00:00 committed by Baptiste Fontaine
parent 04e1e4a3d5
commit 22fe610f6e

36
Formula/tgui.rb Normal file
View file

@ -0,0 +1,36 @@
class Tgui < Formula
desc "GUI library for use with sfml"
homepage "https://tgui.eu"
url "https://github.com/texus/TGUI/archive/v0.6.9.tar.gz"
sha256 "9bbde01e918e950e484d75b3eaeb0c77f38180865f3cfcb188a56e77a62db8bb"
devel do
url "https://github.com/texus/TGUI/archive/v0.7-alpha2.tar.gz"
sha256 "12da819d3e396a3d3369051e3b40eb1c8f660a13dd5648706235aa282f415e4a"
end
depends_on "cmake" => :build
depends_on "sfml"
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
(testpath/"test.cpp").write <<-EOS.undent
#include <TGUI/TGUI.hpp>
int main()
{
sf::Text text;
text.setString("Hello World");
return 0;
}
EOS
system ENV.cxx, "test.cpp", "-std=c++1y", "-I#{include}",
"-L#{lib}", "-L#{HOMEBREW_PREFIX}/lib",
"-ltgui", "-lsfml-graphics", "-lsfml-system", "-lsfml-window",
"-o", "test"
system "./test"
end
end