use opt shortcuts

This commit is contained in:
Adam Vandenberg 2014-03-05 21:28:31 -08:00
parent c950421139
commit f7c8f449ac
96 changed files with 123 additions and 123 deletions

View file

@ -27,7 +27,7 @@ class Aiccu < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/aiccu</string>
<string>#{opt_sbin}/aiccu</string>
<string>start</string>
<string>#{etc}/aiccu.conf</string>
</array>

View file

@ -44,7 +44,7 @@ class AptCacherNg < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/apt-cacher-ng</string>
<string>#{opt_sbin}/apt-cacher-ng</string>
<string>-c</string>
<string>#{etc}/apt-cacher-ng</string>
<string>foreground=1</string>

View file

@ -75,7 +75,7 @@ class Arangodb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/arangod</string>
<string>#{opt_sbin}/arangod</string>
<string>-c</string>
<string>#{etc}/arangodb/arangod.conf</string>
</array>

View file

@ -53,7 +53,7 @@ class Avidemux < Formula
mkdir 'buildCore' do
args = std_cmake_args
args << "-DAVIDEMUX_SOURCE_DIR=#{buildpath}"
args << "-DGETTEXT_INCLUDE_DIR=#{Formula['gettext'].opt_prefix}/include"
args << "-DGETTEXT_INCLUDE_DIR=#{Formula["gettext"].opt_include}"
# Todo: We could depend on SDL and then remove the `-DSDL=OFF` arguments
# but I got build errors about NSview.
args << "-DSDL=OFF"

View file

@ -34,7 +34,7 @@ class AwsIamTools < AmazonWebServicesFormula
* On Zsh, add them to `~/.zprofile` instead.
export JAVA_HOME="$(/usr/libexec/java_home)"
export AWS_IAM_HOME="#{opt_prefix}/libexec"
export AWS_IAM_HOME="#{opt_libexec}"
export AWS_CREDENTIAL_FILE=$HOME/.aws-credentials-master
EOS
end

View file

@ -35,7 +35,7 @@ class Beansdb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/beansdb</string>
<string>#{opt_bin}/beansdb</string>
<string>-p</string>
<string>7900</string>
<string>-H</string>

View file

@ -22,7 +22,7 @@ class Beanstalk < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/beanstalkd</string>
<string>#{opt_bin}/beanstalkd</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -255,7 +255,7 @@ class Bind < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/named</string>
<string>#{opt_sbin}/named</string>
<string>-f</string>
<string>-c</string>
<string>#{etc}/named.conf</string>

View file

@ -41,7 +41,7 @@ class Burp < Formula
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/burp</string>
<string>#{opt_bin}/burp</string>
<string>-a</string>
<string>t</string>
</array>

View file

@ -58,7 +58,7 @@ class Cassandra < Formula
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/cassandra</string>
<string>#{opt_bin}/cassandra</string>
<string>-f</string>
</array>

View file

@ -36,7 +36,7 @@ class Ccache < Formula
def caveats; <<-EOS.undent
To install symlinks for compilers that will automatically use
ccache, prepend this directory to your PATH:
#{opt_prefix}/libexec
#{opt_libexec}
If this is an upgrade and you have previously added the symlinks to
your PATH, you may need to modify it to the path specified above so

View file

@ -14,7 +14,7 @@ class Chruby < Formula
def caveats; <<-EOS.undent
Add the following to the ~/.bashrc or ~/.zshrc file:
source #{opt_prefix}/share/chruby/chruby.sh
source #{opt_share}/chruby/chruby.sh
By default chruby will search for Rubies installed into /opt/rubies/ or
~/.rubies/. For non-standard installation locations, simply set the RUBIES
@ -34,7 +34,7 @@ class Chruby < Formula
To enable auto-switching of Rubies specified by .ruby-version files,
add the following to ~/.bashrc or ~/.zshrc:
source #{opt_prefix}/share/chruby/auto.sh
source #{opt_share}/chruby/auto.sh
EOS
end
end

View file

@ -30,7 +30,7 @@ class Clipper < Formula
<string>#{HOMEBREW_PREFIX}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/clipper</string>
<string>#{opt_bin}/clipper</string>
<string>--address</string>
<string>127.0.0.1</string>
<string>--port</string>

View file

@ -33,12 +33,12 @@ class Coreutils < Formula
If you really need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
PATH="#{opt_prefix}/libexec/gnubin:$PATH"
PATH="#{opt_libexec}/gnubin:$PATH"
Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:
MANPATH="#{opt_prefix}/libexec/gnuman:$MANPATH"
MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

View file

@ -44,7 +44,7 @@ class CouchdbLucene < Formula
</dict>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/run</string>
<string>#{opt_bin}/run</string>
</array>
<key>StandardOutPath</key>
<string>/dev/null</string>

View file

@ -67,7 +67,7 @@ class Couchdb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/couchdb</string>
<string>#{opt_bin}/couchdb</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -22,7 +22,7 @@ class Couchpotatoserver < Formula
<key>Label</key>
<string>#{plist_name}</string>
<key>Program</key>
<string>#{opt_prefix}/bin/couchpotatoserver</string>
<string>#{opt_bin}/couchpotatoserver</string>
<key>ProgramArguments</key>
<array>
<string>--quiet</string>

View file

@ -12,7 +12,7 @@ class CurlCaBundle < Formula
def caveats; <<-EOS.undent
To use these certificates with OpenSSL:
export SSL_CERT_FILE=#{opt_prefix}/share/ca-bundle.crt
export SSL_CERT_FILE=#{opt_share}/ca-bundle.crt
EOS
end
end

View file

@ -21,7 +21,7 @@ class Dart < Formula
def caveats; <<-EOS.undent
To use with IntelliJ, set the Dart home to:
#{opt_prefix}/libexec
#{opt_libexec}
EOS
end

View file

@ -38,7 +38,7 @@ class Ddclient < Formula
def caveats; <<-EOS.undent
For ddclient to work, you will need to create a configuration file
in #{etc}/ddclient, a sample configuration can be found in
#{opt_prefix}/share/doc/ddclient.
#{opt_share}/doc/ddclient.
Note: don't enable daemon mode in the configuration file; see
additional information below.
@ -62,7 +62,7 @@ class Ddclient < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/ddclient</string>
<string>#{opt_sbin}/ddclient</string>
<string>-file</string>
<string>#{etc}/ddclient/ddclient.conf</string>
</array>

View file

@ -66,7 +66,7 @@ class DnscryptProxy < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/dnscrypt-proxy</string>
<string>#{opt_sbin}/dnscrypt-proxy</string>
<string>--local-address=127.0.0.1:53</string>
<string>--user=nobody</string>
</array>

View file

@ -57,7 +57,7 @@ class Dnsmasq < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/dnsmasq</string>
<string>#{opt_sbin}/dnsmasq</string>
<string>--keep-in-foreground</string>
</array>
<key>KeepAlive</key>

View file

@ -97,7 +97,7 @@ class Erlang < Formula
def caveats; <<-EOS.undent
Man pages can be found in:
#{opt_prefix}/lib/erlang/man
#{opt_lib}/erlang/man
Access them with `erl -man`, or add this directory to MANPATH.
EOS

View file

@ -19,12 +19,12 @@ class Ettercap < Formula
end
def install
libnet = Formula['libnet']
libnet = Formula['libnet'].opt_lib
args = ['..'] + std_cmake_args + [
"-DINSTALL_SYSCONFDIR=#{etc}",
'-DENABLE_GTK=OFF',
"-DHAVE_LIBNET:FILEPATH=#{libnet.opt_prefix}/lib/libnet.dylib"
"-DHAVE_LIBNET:FILEPATH=#{libnet}/libnet.dylib"
]
mkdir "build" do

View file

@ -39,7 +39,7 @@ class Fail2ban < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/fail2ban-client</string>
<string>#{opt_bin}/fail2ban-client</string>
<string>-x</string>
<string>start</string>
</array>

View file

@ -68,7 +68,7 @@ class Freediameter < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/freeDiameterd</string>
<string>#{opt_bin}/freeDiameterd</string>
</array>
<key>KeepAlive</key>
<dict>

View file

@ -74,7 +74,7 @@ class Fuseki < Formula
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/fuseki-server</string>
<string>#{opt_bin}/fuseki-server</string>
<string>--config</string>
<string>/usr/local/etc/fuseki.ttl</string>
</array>

View file

@ -209,8 +209,8 @@ class Gdal < Formula
#
# Fortunately, this can be remedied using LDFLAGS.
sqlite = Formula["sqlite"]
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib -lsqlite3"
ENV.append 'CFLAGS', "-I#{sqlite.opt_prefix}/include"
ENV.append 'LDFLAGS', "-L#{sqlite.opt_lib} -lsqlite3"
ENV.append 'CFLAGS', "-I#{sqlite.opt_include}"
# Needed by libdap
ENV.libxml2 if build.include? 'complete'

View file

@ -19,7 +19,7 @@ class Gearman < Formula
args = ["--prefix=#{prefix}"]
args << "--without-mysql" unless build.with? 'mysql'
if build.with? 'postgresql'
pg_config = "#{Formula['postgresql'].opt_prefix}/bin/pg_config"
pg_config = "#{Formula["postgresql"].opt_bin}/pg_config"
args << "--with-postgresql=#{pg_config}"
end
system "./configure", *args
@ -44,7 +44,7 @@ class Gearman < Formula
<key>Label</key>
<string>#{plist_name}</string>
<key>Program</key>
<string>#{opt_prefix}/sbin/gearmand</string>
<string>#{opt_sbin}/gearmand</string>
<key>RunAtLoad</key>
<true/>
</dict>

View file

@ -13,7 +13,7 @@ class Gitbucket < Formula
def install
if build.head?
system "ant"
libexec.install 'war/target/gitbucket.war', '.'
libexec.install "war/target/gitbucket.war", "."
else
libexec.install "gitbucket.war"
end
@ -33,7 +33,7 @@ class Gitbucket < Formula
<string>/usr/bin/java</string>
<string>-Dmail.smtp.starttls.enable=true</string>
<string>-jar</string>
<string>#{opt_prefix}/libexec/gitbucket.war</string>
<string>#{opt_libexec}/gitbucket.war</string>
<string>--host=127.0.0.1</string>
<string>--port=8080</string>
<string>--https=true</string>

View file

@ -16,10 +16,10 @@ class Glassfish < Formula
def caveats; <<-EOS.undent
The home of GlassFish Application Server 4 is:
#{opt_prefix}/libexec
#{opt_libexec}
You may want to add the following to your .bash_profile:
export GLASSFISH_HOME=#{opt_prefix}/libexec
export GLASSFISH_HOME=#{opt_libexec}
export PATH=${PATH}:${GLASSFISH_HOME}/bin
Note: The support scripts used by GlassFish Application Server 4

View file

@ -26,12 +26,12 @@ class GnuSed < Formula
If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
PATH="#{opt_prefix}/libexec/gnubin:$PATH"
PATH="#{opt_libexec}/gnubin:$PATH"
Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:
MANPATH="#{opt_prefix}/libexec/gnuman:$MANPATH"
MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

View file

@ -29,7 +29,7 @@ class GnuTar < Formula
If you really need to use it as 'tar', you can add a 'gnubin' directory
to your PATH from your bashrc like:
PATH="#{opt_prefix}/libexec/gnubin:$PATH"
PATH="#{opt_libexec}/gnubin:$PATH"
EOS
end
end

View file

@ -24,8 +24,8 @@ class GpgAgent < Formula
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-agent-only",
"--with-pinentry-pgm=#{Formula['pinentry'].opt_prefix}/bin/pinentry",
"--with-scdaemon-pgm=#{Formula['gnupg2'].opt_prefix}/libexec/scdaemon"
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry",
"--with-scdaemon-pgm=#{Formula["gnupg2"].opt_libexec}/scdaemon"
system "make install"
end
end

View file

@ -14,7 +14,7 @@ class Grails < Formula
def caveats; <<-EOS.undent
The GRAILS_HOME directory is:
#{opt_prefix}/libexec
#{opt_libexec}
EOS
end
end

View file

@ -57,7 +57,7 @@ class Grass < Formula
"--with-lapack",
"--with-sqlite",
"--with-odbc",
"--with-geos=#{Formula["geos"].opt_prefix}/bin/geos-config",
"--with-geos=#{Formula["geos"].opt_bin}/geos-config",
"--with-png",
"--with-readline-includes=#{readline}/include",
"--with-readline-libs=#{readline}/lib",
@ -78,7 +78,7 @@ class Grass < Formula
if headless? or build.without? 'wxmac'
args << "--without-wxwidgets"
else
args << "--with-wxwidgets=#{Formula["wxmac"].opt_prefix}/bin/wx-config"
args << "--with-wxwidgets=#{Formula["wxmac"].opt_bin}/wx-config"
end
args << "--enable-64bit" if MacOS.prefer_64_bit?

View file

@ -27,7 +27,7 @@ class Groovy < Formula
def caveats
<<-EOS.undent
You should set the environment variable GROOVY_HOME to
#{opt_prefix}/libexec
#{opt_libexec}
EOS
end
end

View file

@ -38,7 +38,7 @@ class H2 < Formula
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/h2</string>
<string>#{opt_bin}/h2</string>
<string>-tcp</string>
<string>-web</string>
<string>-pg</string>

View file

@ -30,7 +30,7 @@ class Headphones < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/headphones</string>
<string>#{opt_bin}/headphones</string>
<string>-q</string>
<string>-d</string>
<string>--nolaunch</string>

View file

@ -18,12 +18,12 @@ class Htmlcompressor < Formula
if build.include? 'yuicompressor'
yui = Formula["yuicompressor"]
yui_jar = "yuicompressor-#{yui.version}.jar"
ln_s "#{yui.opt_prefix}/libexec/#{yui_jar}", "#{libexec}/#{yui_jar}"
ln_s "#{yui.opt_libexec}/#{yui_jar}", "#{libexec}/#{yui_jar}"
end
if build.include? 'closure-compiler'
closure = Formula["closure-compiler"]
ln_s "#{closure.opt_prefix}/libexec/build/compiler.jar", "#{libexec}/compiler.jar"
ln_s "#{closure.opt_libexec}/build/compiler.jar", "#{libexec}/compiler.jar"
end
end

View file

@ -35,7 +35,7 @@ class Influxdb < Formula
inreplace "config.toml.sample" do |s|
s.gsub! "/tmp/influxdb/development/db", "#{var}/influxdb/data"
s.gsub! "/tmp/influxdb/development/raft", "#{var}/influxdb/raft"
s.gsub! "./admin", "#{opt_prefix}/share/admin"
s.gsub! "./admin", "#{opt_share}/admin"
end
bin.install "daemon" => "influxdb"
@ -62,7 +62,7 @@ class Influxdb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/influxdb</string>
<string>#{opt_bin}/influxdb</string>
<string>-config=#{etc}/influxdb.conf</string>
</array>
<key>RunAtLoad</key>

View file

@ -47,7 +47,7 @@ class IrcdHybrid < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/ircd</string>
<string>#{opt_sbin}/ircd</string>
</array>
<key>RunAtLoad</key>
<true/>

View file

@ -104,7 +104,7 @@ class IscDhcp < Formula
<key>Label</key><string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/dhcpd</string>
<string>#{opt_sbin}/dhcpd</string>
<string>-f</string>
</array>
<key>Disabled</key><false/>
@ -126,7 +126,7 @@ class IscDhcp < Formula
<key>Label</key><string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/dhcpd</string>
<string>#{opt_sbin}/dhcpd</string>
<string>-f</string>
<string>-6</string>
<string>-cf</string>

View file

@ -34,7 +34,7 @@ class Jack < Formula
<string>#{prefix}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/jackd</string>
<string>#{opt_bin}/jackd</string>
<string>-d</string>
<string>coreaudio</string>
</array>

View file

@ -13,10 +13,10 @@ class JbossAs < Formula
def caveats; <<-EOS.undent
The home of JBoss Application Server 7 is:
#{opt_prefix}/libexec
#{opt_libexec}
You may want to add the following to your .bash_profile:
export JBOSS_HOME=#{opt_prefix}/libexec
export JBOSS_HOME=#{opt_libexec}
export PATH=${PATH}:${JBOSS_HOME}/bin
Note: The support scripts used by JBoss Application Server 7 have

View file

@ -30,7 +30,7 @@ class Jenkins < Formula
<string>/usr/bin/java</string>
<string>-Dmail.smtp.starttls.enable=true</string>
<string>-jar</string>
<string>#{opt_prefix}/libexec/jenkins.war</string>
<string>#{opt_libexec}/jenkins.war</string>
<string>--httpListenAddress=127.0.0.1</string>
<string>--httpPort=8080</string>
</array>

View file

@ -54,7 +54,7 @@ class Ledger < Formula
if build.with? 'libofx'
args << "--enable-ofx"
# the libofx.h appears to have moved to a subdirectory
ENV.append 'CXXFLAGS', "-I#{Formula["libofx"].opt_prefix}/include/libofx"
ENV.append 'CXXFLAGS', "-I#{Formula["libofx"].opt_include}/libofx"
end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", *args

View file

@ -13,7 +13,7 @@ class Librasterlite < Formula
def install
# Ensure Homebrew SQLite libraries are found before the system SQLite
sqlite = Formula["sqlite"]
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
ENV.append 'LDFLAGS', "-L#{sqlite.opt_lib}"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"

View file

@ -39,13 +39,13 @@ class Libspatialite < Formula
# Ensure Homebrew's libsqlite is found before the system version.
sqlite = Formula["sqlite"]
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
ENV.append 'CFLAGS', "-I#{sqlite.opt_prefix}/include"
ENV.append 'LDFLAGS', "-L#{sqlite.opt_lib}"
ENV.append 'CFLAGS', "-I#{sqlite.opt_include}"
unless build.without? 'liblwgeom'
lwgeom = Formula["liblwgeom"]
ENV.append 'LDFLAGS', "-L#{lwgeom.opt_prefix}/lib"
ENV.append 'CFLAGS', "-I#{lwgeom.opt_prefix}/include"
ENV.append 'LDFLAGS', "-L#{lwgeom.opt_lib}"
ENV.append 'CFLAGS', "-I#{lwgeom.opt_include}"
end
args = %W[

View file

@ -105,7 +105,7 @@ class Lighttpd < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/lighttpd</string>
<string>#{opt_bin}/lighttpd</string>
<string>-D</string>
<string>-f</string>
<string>#{config_path}lighttpd.conf</string>

View file

@ -49,7 +49,7 @@ class Lldpd < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/lldpd</string>
<string>#{opt_sbin}/lldpd</string>
#{additional_args}
</array>
<key>RunAtLoad</key><true/>

View file

@ -65,8 +65,8 @@ class Mapnik < Formula
else
args << "CAIRO=False"
end
args << "GDAL_CONFIG=#{Formula["gdal"].opt_prefix}/bin/gdal-config" if build.with? 'gdal'
args << "PG_CONFIG=#{Formula["postgresql"].opt_prefix}/bin/pg_config" if build.with? 'postgresql'
args << "GDAL_CONFIG=#{Formula["gdal"].opt_bin}/gdal-config" if build.with? 'gdal'
args << "PG_CONFIG=#{Formula["postgresql"].opt_bin}/pg_config" if build.with? 'postgresql'
system "python", "scons/scons.py", "configure", *args
system "python", "scons/scons.py", "install"

View file

@ -163,7 +163,7 @@ class Mariadb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/mysqld_safe</string>
<string>#{opt_bin}/mysqld_safe</string>
<string>--bind-address=127.0.0.1</string>
</array>
<key>RunAtLoad</key>

View file

@ -40,7 +40,7 @@ class Memcached < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/memcached</string>
<string>#{opt_bin}/memcached</string>
<string>-l</string>
<string>localhost</string>
</array>

View file

@ -113,7 +113,7 @@ class Mongodb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/mongod</string>
<string>#{opt_bin}/mongod</string>
<string>--config</string>
<string>#{etc}/mongod.conf</string>
</array>

View file

@ -47,7 +47,7 @@ class Mosquitto < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/mosquitto</string>
<string>#{opt_sbin}/mosquitto</string>
<string>-c</string>
<string>#{etc}/mosquitto/mosquitto.conf</string>
</array>

View file

@ -152,7 +152,7 @@ class Mysql < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/mysqld_safe</string>
<string>#{opt_bin}/mysqld_safe</string>
<string>--bind-address=127.0.0.1</string>
</array>
<key>RunAtLoad</key>

View file

@ -54,7 +54,7 @@ class Nagios < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/nagios</string>
<string>#{opt_bin}/nagios</string>
<string>#{nagios_etc}/nagios.cfg</string>
</array>
<key>RunAtLoad</key>

View file

@ -27,7 +27,7 @@ class Netpbm < Formula
s.change_make_var! "PNGLIB", "-lpng"
s.change_make_var! "ZLIB", "-lz"
s.change_make_var! "JASPERLIB", "-ljasper"
s.change_make_var! "JASPERHDR_DIR", "#{Formula["jasper"].opt_prefix}/include/jasper"
s.change_make_var! "JASPERHDR_DIR", "#{Formula["jasper"].opt_include}/jasper"
end
ENV.deparallelize

View file

@ -27,7 +27,7 @@ class Nexus < Formula
<string>com.sonatype.nexus</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/nexus</string>
<string>#{opt_bin}/nexus</string>
<string>start</string>
</array>
<key>RunAtLoad</key>

View file

@ -153,7 +153,7 @@ class Nginx < Formula
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/nginx</string>
<string>#{opt_bin}/nginx</string>
<string>-g</string>
<string>daemon off;</string>
</array>

View file

@ -46,7 +46,7 @@ class Ntfs3g < Formula
GROUP_ID=`/usr/bin/stat -f %g /dev/console`
fi
#{opt_prefix}/bin/ntfs-3g \\
#{opt_bin}/ntfs-3g \\
-o volname="${VOLUME_NAME}" \\
-o local \\
-o negative_vncache \\

View file

@ -35,7 +35,7 @@ class OfflineImap < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/offlineimap</string>
<string>#{opt_bin}/offlineimap</string>
</array>
<key>StartInterval</key>
<integer>300</integer>

View file

@ -61,7 +61,7 @@ class Openvpn < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/openvpn</string>
<string>#{opt_sbin}/openvpn</string>
<string>--config</string>
<string>#{etc}/openvpn/openvpn.conf</string>
</array>

View file

@ -43,8 +43,8 @@ class Passenger < Formula
def caveats; <<-EOS.undent
To activate Phusion Passenger for Apache, create /etc/apache2/other/passenger.conf:
LoadModule passenger_module #{opt_prefix}/libexec/buildout/apache2/mod_passenger.so
PassengerRoot #{opt_prefix}/libexec/lib/phusion_passenger/locations.ini
LoadModule passenger_module #{opt_libexec}/buildout/apache2/mod_passenger.so
PassengerRoot #{opt_libexec}/lib/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
To activate Phusion Passenger for Nginx, run:

View file

@ -18,7 +18,7 @@ class Pdnsrec < Formula
# Include Lua if requested
if build.include? 'with-lua'
ENV['LUA'] = "1"
ENV['LUA_CPPFLAGS_CONFIG'] = "-I#{Formula["lua"].opt_prefix}/include"
ENV['LUA_CPPFLAGS_CONFIG'] = "-I#{Formula["lua"].opt_include}"
ENV['LUA_LIBS_CONFIG'] = "-llua"
end

View file

@ -152,7 +152,7 @@ class PerconaServer < Formula
<key>Label</key>
<string>#{plist_name}</string>
<key>Program</key>
<string>#{opt_prefix}/bin/mysqld_safe</string>
<string>#{opt_bin}/mysqld_safe</string>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>

View file

@ -44,7 +44,7 @@ class Pgbouncer < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/pgbouncer</string>
<string>#{opt_bin}/pgbouncer</string>
<string>-d</string>
<string>-q</string>
<string>#{etc}/pgbouncer.ini</string>

View file

@ -31,7 +31,7 @@ class Pincaster < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/pincaster</string>
<string>#{opt_bin}/pincaster</string>
<string>#{etc}/pincaster.conf</string>
</array>
<key>RunAtLoad</key>

View file

@ -35,7 +35,7 @@ class Pocl < Formula
}
EOS
system "#{bin}/pocl-standalone -h head.h -o foo.bc foo.cl"
system "\"#{Formula["llvm"].opt_prefix}/bin/llvm-dis\" < foo.bc | grep foo_workgroup"
system "\"#{Formula["llvm"].opt_bin}/llvm-dis\" < foo.bc | grep foo_workgroup"
system "pkg-config pocl --modversion | grep #{version}"
end
end

View file

@ -34,7 +34,7 @@ class Polipo < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/polipo</string>
<string>#{opt_bin}/polipo</string>
</array>
</dict>
</plist>

View file

@ -167,7 +167,7 @@ class PostgresXc < Formula
<string>#{plist_name(name)}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/gtm</string>
<string>#{opt_bin}/gtm</string>
<string>-D</string>
<string>#{var}/postgres-xc/#{name}</string>
<string>-l</string>
@ -195,7 +195,7 @@ class PostgresXc < Formula
<string>#{plist_name(name)}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/gtm_proxy</string>
<string>#{opt_bin}/gtm_proxy</string>
<string>-D</string>
<string>#{var}/postgres-xc/#{name}</string>
<string>-n</string>
@ -229,7 +229,7 @@ class PostgresXc < Formula
<string>#{plist_name(name)}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/postgres</string>
<string>#{opt_bin}/postgres</string>
<string>-i</string>
<string>-C</string>
<string>-D</string>
@ -259,7 +259,7 @@ class PostgresXc < Formula
<string>#{plist_name(name)}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/postgres</string>
<string>#{opt_bin}/postgres</string>
<string>-i</string>
<string>-X</string>
<string>-D</string>

View file

@ -115,7 +115,7 @@ class Postgresql < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/postgres</string>
<string>#{opt_bin}/postgres</string>
<string>-D</string>
<string>#{var}/postgres</string>
<string>-r</string>

View file

@ -31,7 +31,7 @@ class Proftpd < Formula
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/proftpd</string>
<string>#{opt_bin}/proftpd</string>
</array>
<key>UserName</key>
<string>root</string>

View file

@ -44,7 +44,7 @@ class PureFtpd < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/pure-ftpd</string>
<string>#{opt_sbin}/pure-ftpd</string>
<string>-A -j -z</string>
</array>
<key>RunAtLoad</key>

View file

@ -96,7 +96,7 @@ class Pygobject3 < Formula
pythons.each do |python, version|
unless Formula[python].installed?
ENV["PYTHONPATH"] = HOMEBREW_PREFIX/"lib/python#{version}/site-packages"
ENV.append_path "PYTHONPATH", "#{opt_prefix}/lib/python#{version}/site-packages"
ENV.append_path "PYTHONPATH", "#{opt_lib}/python#{version}/site-packages"
end
system python, "test.py"
end

View file

@ -46,7 +46,7 @@ class Pyqt5 < Formula
# To avoid conflicts with PyQt (for Qt4):
"--sipdir=#{share}/sip/Qt5/",
# sip.h could not be found automatically
"--sip-incdir=#{Formula["sip"].opt_prefix}/include",
"--sip-incdir=#{Formula["sip"].opt_include}",
# Make sure the qt5 version of qmake is found.
# If qt4 is linked it will pickup that version otherwise.
"--qmake=#{Formula["qt5"].bin}/qmake",

View file

@ -9,7 +9,7 @@ class Qpdf < Formula
def install
# find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_prefix}/lib"
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_lib}"
system "./configure", "--prefix=#{prefix}"
system "make"

View file

@ -67,7 +67,7 @@ class Rabbitmq < Formula
<key>Label</key>
<string>#{plist_name}</string>
<key>Program</key>
<string>#{opt_prefix}/sbin/rabbitmq-server</string>
<string>#{opt_sbin}/rabbitmq-server</string>
<key>RunAtLoad</key>
<true/>
<key>EnvironmentVariables</key>

View file

@ -56,7 +56,7 @@ class Redis < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/redis-server</string>
<string>#{opt_bin}/redis-server</string>
<string>#{etc}/redis.conf</string>
</array>
<key>RunAtLoad</key>

View file

@ -37,7 +37,7 @@ class Rethinkdb < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/rethinkdb</string>
<string>#{opt_bin}/rethinkdb</string>
<string>-d</string>
<string>#{var}/rethinkdb</string>
</array>

View file

@ -70,7 +70,7 @@ class Ruby < Formula
def caveats; <<-EOS.undent
By default, gem installed executables will be placed into:
#{opt_prefix}/bin
#{opt_bin}
You may want to add this to your PATH. After upgrades, you can run
gem pristine --all --only-executables

View file

@ -49,7 +49,7 @@ class ScmManager < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/scm-server</string>
<string>#{opt_bin}/scm-server</string>
<string>start</string>
</array>
<key>RunAtLoad</key>

View file

@ -38,7 +38,7 @@ class Ser2net < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/ser2net</string>
<string>#{opt_sbin}/ser2net</string>
<string>-p</string>
<string>12345</string>
</array>

View file

@ -25,7 +25,7 @@ class Sickbeard < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/sickbeard</string>
<string>#{opt_bin}/sickbeard</string>
<string>-q</string>
<string>--nolaunch</string>
<string>-p</string>

View file

@ -10,7 +10,7 @@ class Slony < Formula
def install
postgres = Formula['postgresql']
system "./configure", "--disable-debug",
"--with-pgconfigdir=#{postgres.opt_prefix}/bin",
"--with-pgconfigdir=#{postgres.opt_bin}",
"--prefix=#{prefix}"
system "make install"
end

View file

@ -37,7 +37,7 @@ class Sonar < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/sonar</string>
<string>#{opt_bin}/sonar</string>
<string>start</string>
</array>
<key>RunAtLoad</key>

View file

@ -14,8 +14,8 @@ class SpatialiteTools < Formula
ENV.append 'LDFLAGS', '-liconv'
# Ensure Homebrew SQLite is found before system SQLite.
sqlite = Formula["sqlite"]
ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
ENV.append 'CFLAGS', "-I#{sqlite.opt_prefix}/include"
ENV.append 'LDFLAGS', "-L#{sqlite.opt_lib}"
ENV.append 'CFLAGS', "-I#{sqlite.opt_include}"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"

View file

@ -53,7 +53,7 @@ class Squid < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/squid</string>
<string>#{opt_sbin}/squid</string>
<string>-N</string>
<string>-d 1</string>
</array>

View file

@ -54,7 +54,7 @@ class Sshguard < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/sshguard</string>
<string>#{opt_sbin}/sshguard</string>
<string>-l</string>
<string>#{log_path}</string>
</array>

View file

@ -180,7 +180,7 @@ class Subversion < Formula
system "make", "install-swig-pl", "DESTDIR=#{prefix}"
# Some of the libraries get installed into the wrong place, they end up having the
# prefix in the directory name twice.
mv Dir.glob("#{prefix}/#{lib}/*"), "#{lib}"
mv Dir["#{prefix}/#{lib}/*"], "#{lib}"
end
if build.include? 'java'
@ -203,7 +203,7 @@ class Subversion < Formula
def caveats
s = <<-EOS.undent
svntools have been installed to:
#{opt_prefix}/libexec
#{opt_libexec}
EOS
if build.include? 'perl'

View file

@ -53,7 +53,7 @@ class Tor < Formula
<true/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/tor</string>
<string>#{opt_bin}/tor</string>
</array>
<key>WorkingDirectory</key>
<string>#{HOMEBREW_PREFIX}</string>

View file

@ -25,7 +25,7 @@ class Varnish < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/varnishd</string>
<string>#{opt_sbin}/varnishd</string>
<string>-n</string>
<string>#{var}/varnish</string>
<string>-f</string>

View file

@ -12,15 +12,15 @@ class WildflyAs < Formula
def caveats; <<-EOS.undent
The home of WildFly Application Server 8 is:
#{opt_prefix}/libexec
#{opt_libexec}
You may want to add the following to your .bash_profile:
export JBOSS_HOME=#{opt_prefix}/libexec
export JBOSS_HOME=#{opt_libexec}
export PATH=${PATH}:${JBOSS_HOME}/bin
EOS
end
test do
system "#{opt_prefix}/libexec/bin/standalone.sh --version | grep #{version}"
system "#{opt_libexec}/bin/standalone.sh --version | grep #{version}"
end
end

View file

@ -28,7 +28,7 @@ class Wxpython < Formula
args = [
"WXPORT=osx_cocoa",
# Reference our wx-config
"WX_CONFIG=#{Formula["wxmac"].opt_prefix}/bin/wx-config",
"WX_CONFIG=#{Formula["wxmac"].opt_bin}/wx-config",
# At this time Wxmac is installed Unicode only
"UNICODE=1",
# Some scripts (e.g. matplotlib) expect to `import wxversion`, which is

View file

@ -12,7 +12,7 @@ class Yara < Formula
ENV.append 'CFLAGS', '-std=gnu89' if ENV.compiler == :clang
# find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_prefix}/lib -lpcre"
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_lib} -lpcre"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",