aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTom Schoonjans2015-04-17 11:49:08 +0200
committerJack Nagel2015-04-17 21:24:52 -0400
commit89f8048059c0ceb81d2a0ef54c6c4e7776ac6c6f (patch)
tree5d5b7708fe0b69cbc44002b72729177c9823a596 /Library
parent5fe510774b75eca52a24c9715f5c1c1873c508cf (diff)
downloadhomebrew-89f8048059c0ceb81d2a0ef54c6c4e7776ac6c6f.tar.bz2
libsigc++ 2.4.1
version bump test block added Closes #38744. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libsigc++.rb22
1 files changed, 18 insertions, 4 deletions
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 <sigc++/sigc++.h>
+
+ void somefunction(int arg) {}
+
+ int main(int argc, char *argv[])
+ {
+ sigc::slot<void, int> 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