Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New Formula: Libsigrokdecode #16147

Closed
wants to merge 10 commits into from

2 participants

@utzig

The sigrok project aims at creating a portable, cross-platform, Free/Libre/Open-Source signal analysis software suite that supports various logic analyzers, oscilloscopes, multimeters, data loggers, and more.

This library adds protocol decoding support for Sigrok clients.

@adamv
Owner

This needs to be squashed to a single commit for review.

@adamv
Owner

Will review an updated request.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 12, 2011
  1. Updated libev to version 4.03

    Fabio Utzig authored
Commits on Jan 14, 2011
  1. fixed url

    Fabio Utzig authored
Commits on Jan 24, 2011
  1. Merge remote branch 'upstream/master'

    Fabio Utzig authored
Commits on Jan 30, 2011
  1. Merge remote branch 'upstream/master'

    Fabio Utzig authored
Commits on Jan 31, 2011
  1. Merge remote branch 'upstream/master'

    Fabio Utzig authored
Commits on Jan 12, 2012
  1. Merge remote-tracking branch 'upstream/master'

    Fabio Utzig authored
Commits on May 31, 2012
  1. Merge remote-tracking branch 'upstream/master'

    Fabio Utzig authored
Commits on Aug 30, 2012
  1. Merge remote-tracking branch 'origin/master'

    Fabio Utzig authored
Commits on Nov 19, 2012
  1. Merge remote-tracking branch 'upstream/master'

    Fabio Utzig authored
  2. Added libsigrokdecode formula

    Fabio Utzig authored
This page is out of date. Refresh to see the latest.
Showing with 41 additions and 0 deletions.
  1. +41 −0 Library/Formula/libsigrokdecode.rb
View
41 Library/Formula/libsigrokdecode.rb
@@ -0,0 +1,41 @@
+require 'formula'
+
+class NeedsPython3 < Requirement
+
+ # looks for python3-config and sets ENV variable used
+ # by configure script
+ def satisfied?
+ ENV['PYTHON3_CONFIG'] = which 'python3-config'
+ return true if ENV['PYTHON3_CONFIG']
+ return false
+ end
+
+ def fatal?
+ true
+ end
+
+ def message; <<-EOS.undent
+ This library depends on Python version 3 but python3-config
+ was not found on your PATH.
+ You can install a python3 distribution using:
+ brew install python3
+ EOS
+ end
+end
+
+class Libsigrokdecode < Formula
+ homepage 'http://sigrok.org'
+ url 'http://downloads.sourceforge.net/project/sigrok/source/libsigrokdecode/libsigrokdecode-0.1.0.tar.gz'
+ md5 '9bc237972f6176ba9dcff057b4e85fd6'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'glib'
+
+ # libsigrokdecode needs python3!
+ depends_on NeedsPython3.new
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make install"
+ end
+end
Something went wrong with that request. Please try again.