aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorIzzat Mukhanov2014-12-15 17:54:41 +0100
committerJack Nagel2014-12-16 01:43:06 -0500
commit1df2cb19410bac54bf16b1f6eb29a8ca35c0287e (patch)
treeaa9ba6bc5d54687dcf6a53edc442737c9af6cfb2 /Library
parentb06c36448ff03b7ce316629ef754cc831540ee5b (diff)
downloadhomebrew-1df2cb19410bac54bf16b1f6eb29a8ca35c0287e.tar.bz2
libpointing: remove Qt dependency
Closes #34938. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libpointing.rb29
1 files changed, 12 insertions, 17 deletions
diff --git a/Library/Formula/libpointing.rb b/Library/Formula/libpointing.rb
index fa3e07544..06864baa6 100644
--- a/Library/Formula/libpointing.rb
+++ b/Library/Formula/libpointing.rb
@@ -1,31 +1,26 @@
require "formula"
class Libpointing < Formula
- homepage "http://libpointing.org/libpointing/index.html"
- url "http://libpointing.org/libpointing-0.92.tar.gz"
- sha1 "f2206fe87c46d089b8e1db01382aed03080e3a64"
-
- bottle do
- cellar :any
- sha1 "4eff97b179e5f76dd07e5d2bb17f121580fbdab8" => :yosemite
- sha1 "34a320fcd4ed6a23994e369f28f202b6db9d236a" => :mavericks
- sha1 "5e432b13bba40d68e602da4900bceb7656b23cfa" => :mountain_lion
- end
-
- depends_on "qt5"
+ homepage "http://pointing.org"
+ url "http://libpointing.org/homebrew/libpointing-0.92.tar.gz"
+ sha1 "a7f20c405e87a4b6fae369f977c0615a621ab143"
def install
- system "qmake", "PREFIX=#{prefix}"
system "make"
- system "make", "install"
+ system "make", "install", "PREFIX=#{prefix}"
end
test do
(testpath/"test.cpp").write <<-EOS.undent
- #include <pointing/input/PointingDevice.h>
+ #include <pointing/pointing.h>
+ #include <iostream>
int main() {
- pointing::PointingDevice *device = pointing::PointingDevice::create("any:");
- delete device;
+ std::cout << LIBPOINTING_VER_STRING << " |" ;
+ std::list<std::string> schemes = pointing::TransferFunction::schemes() ;
+ for (std::list<std::string>::iterator i=schemes.begin(); i!=schemes.end(); ++i) {
+ std::cout << " " << (*i) ;
+ }
+ std::cout << std::endl ;
return 0;
}
EOS