forked from rene-dev/homebrew-sigrok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libsigrok.rb
32 lines (28 loc) · 1014 Bytes
/
libsigrok.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'
class Libsigrok < Formula
url 'http://sigrok.org/download/source/libsigrok/libsigrok-0.4.0.tar.gz'
homepage 'http://sigrok.org/'
head 'git://github.com/mwm/libsigrok', :branch => 'dso112a', :using => Class.new(GitDownloadStrategy) { def support_depth?; false; end }
sha256 '5f291f3fee36e6dab1336f1c78596e50588831bc5ebd7cddc2a95fe8c71d669e'
depends_on 'libzip'
depends_on 'glib'
depends_on 'libserialport' => :optional
depends_on 'libftdi' => :optional
depends_on 'libusb'
depends_on 'libtool'
depends_on 'glibmm'
depends_on 'doxygen'
depends_on 'pkg-config' => :build
depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "automake" => :build
def install
ENV.delete "PYTHONPATH"
if build.head?
system "./autogen.sh"
end
system "./configure", "--prefix=#{prefix}", "--disable-java", "--disable-sysclk-lwla"
system "make", "install"
system "ln", "-s", "/usr/local/share/", "#{prefix}/share"
end
end