diff options
| author | Izzat Mukhanov | 2014-11-27 17:26:39 +0100 |
|---|---|---|
| committer | Jack Nagel | 2014-12-07 01:08:45 -0500 |
| commit | a8331d902648759c9c439dd4ab1ab3c166238da4 (patch) | |
| tree | 820ecb254529d53bd4d5b5decb19b743a57c00a8 /Library/Formula | |
| parent | 6e422c25de49279be8f6085e35644b40c40cb317 (diff) | |
| download | homebrew-a8331d902648759c9c439dd4ab1ab3c166238da4.tar.bz2 | |
New formula: libpointing 0.92
Closes #34505.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libpointing.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/libpointing.rb b/Library/Formula/libpointing.rb new file mode 100644 index 000000000..250e3764b --- /dev/null +++ b/Library/Formula/libpointing.rb @@ -0,0 +1,28 @@ +require "formula" + +class Libpointing < Formula + homepage "http://pointing.org" + url "http://libpointing.org/libpointing-0.92.tar.gz" + sha1 "f2206fe87c46d089b8e1db01382aed03080e3a64" + + depends_on "qt5" + + def install + system "qmake", "PREFIX=#{prefix}" + system "make" + system "make", "install" + end + + test do + (testpath/"test.cpp").write <<-EOS.undent + #include <pointing/input/PointingDevice.h> + int main() { + pointing::PointingDevice *device = pointing::PointingDevice::create("any:"); + delete device; + return 0; + } + EOS + system ENV.cxx, "test.cpp", "-lpointing", "-o", "test" + system "./test" + end +end |
