Skip to content

Commit

Permalink
New formula: libpointing 0.92
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#34505.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
Izzat Mukhanov authored and jacknagel committed Dec 7, 2014
1 parent 02ee142 commit 0613197
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Formula/libpointing.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0613197

Please sign in to comment.