require 'formula'
class Asciidoc < Formula
homepage 'http://www.methods.co.nz/asciidoc'
url 'https://downloads.sourceforge.net/project/asciidoc/asciidoc/8.6.9/asciidoc-8.6.9.tar.gz'
sha1 '82e574dd061640561fa0560644bc74df71fb7305'
head do
url 'https://code.google.com/p/asciidoc/', :using => :hg
depends_on :autoconf
end
depends_on 'docbook'
def install
system "autoconf" if build.head?
system "./configure", "--prefix=#{prefix}"
# otherwise OS X's xmllint bails out
inreplace 'Makefile', '-f manpage', '-f manpage -L'
system "make install"
end
def caveats; <<-EOS.undent
If you intend to process AsciiDoc files through an XML stage
(such as a2x for manpage generation) you need to add something
like:
export XML_CATALOG_FILES=#{HOMEBREW_PREFIX}/etc/xml/catalog
to your shell rc file so that xmllint can find AsciiDoc's
catalog files.
See `man 1 xmllint' for more.
EOS
end
end
7.0'>ranger-1.7.0
require'formula'classWireshark<Formulahomepage'http://www.wireshark.org'url'http://www.wireshark.org/download/src/wireshark-1.8.6.tar.bz2'sha1'0f51ed901b5e07cceb1373f3368f739be8f1e827'option'with-x','Include X11 support'option'with-python','Enable experimental Python bindings'depends_on'pkg-config'=>:builddepends_on'gnutls2'=>:optionaldepends_on'libgcrypt'=>:optionaldepends_on'c-ares'=>:optionaldepends_on'pcre'=>:optionaldepends_on'glib'ifbuild.with?'x'depends_on:x11depends_on'gtk+'enddefinstallargs=["--disable-dependency-tracking","--prefix=#{prefix}"]# Optionally enable experimental python bindings; is known to cause# some runtime issues, e.g.# "dlsym(0x8fe467fc, py_create_dissector_handle): symbol not found"args<<'--without-python'unlessbuild.with?'python'# actually just disables the GTK GUIargs<<'--disable-wireshark'unlessbuild.with?'x'system"./configure",*argssystem"make"ENV.deparallelize# parallel install failssystem"make install"enddefcaveats;<<-EOS.undent
Ifyourlistofavailablecaptureinterfacesisempty(defaultOSXbehavior),trythefollowingcommands:curlhttps://bugs.wireshark.org/bugzilla/attachment.cgi?id=3373-oChmodBPF.tar.gztarzxvfChmodBPF.tar.gzopenChmodBPF/Install\\ChmodBPF.appThisaddsalaunchdaemonthatchangesthepermissionsofyourBPFdevicessothatallusersinthe'admin'group-alluserswith'Allow user to administer this computer'turnedon-havebothreadandwriteaccesstothosedevices.Seebugreport:https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3760EOSendend