From 89f8048059c0ceb81d2a0ef54c6c4e7776ac6c6f Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Fri, 17 Apr 2015 11:49:08 +0200 Subject: libsigc++ 2.4.1 version bump test block added Closes #38744. Signed-off-by: Jack Nagel --- Library/Formula/libsigc++.rb | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Formula/libsigc++.rb b/Library/Formula/libsigc++.rb index ccfdd5c54..70f40d684 100644 --- a/Library/Formula/libsigc++.rb +++ b/Library/Formula/libsigc++.rb @@ -1,9 +1,7 @@ -require "formula" - class Libsigcxx < Formula homepage "http://libsigc.sourceforge.net" - url "http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.4/libsigc++-2.4.0.tar.xz" - sha256 "7593d5fa9187bbad7c6868dce375ce3079a805f3f1e74236143bceb15a37cd30" + url "http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.4/libsigc++-2.4.1.tar.xz" + sha256 "540443492a68e77e30db8d425f3c0b1299c825bf974d9bfc31ae7efafedc19ec" bottle do revision 1 @@ -21,4 +19,20 @@ class Libsigcxx < Formula system "make", "check" system "make", "install" end + test do + (testpath/"test.cpp").write <<-EOS.undent + #include + + void somefunction(int arg) {} + + int main(int argc, char *argv[]) + { + sigc::slot sl = sigc::ptr_fun(&somefunction); + return 0; + } + EOS + system ENV.cxx, "test.cpp", + "-L#{lib}", "-lsigc-2.0", "-I#{include}/sigc++-2.0", "-I#{lib}/sigc++-2.0/include", "-o", "test" + system "./test" + end end -- cgit v1.2.3