Skip to content

Instantly share code, notes, and snippets.

@citruz
Forked from zlandau/libdwarf.rb
Created March 7, 2018 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citruz/87f7c3f1708e3dbc8335323dec64a152 to your computer and use it in GitHub Desktop.
Save citruz/87f7c3f1708e3dbc8335323dec64a152 to your computer and use it in GitHub Desktop.
Libdwarf Homebrew Formula
require 'formula'
class Libdwarf < Formula
homepage 'http://libdwarf.sourceforge.net/'
url 'git://git.code.sf.net/p/libdwarf/code', :tag => '20180129'
depends_on 'libelf'
def install
chdir 'libdwarf' do
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
lib.install 'libdwarf.a'
include.install ['dwarf.h', 'libdwarf.h']
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment