Use “squiggly” heredocs.
This commit is contained in:
parent
6faac960a1
commit
16ebe5f184
1518 changed files with 2076 additions and 2076 deletions
|
@ -21,7 +21,7 @@ class Abcl < Formula
|
|||
system "ant"
|
||||
|
||||
libexec.install "dist/abcl.jar", "dist/abcl-contrib.jar"
|
||||
(bin/"abcl").write <<-EOS.undent
|
||||
(bin/"abcl").write <<~EOS
|
||||
#!/bin/sh
|
||||
#{"rlwrap " if build.with?("rlwrap")}java -cp #{libexec}/abcl.jar:"$CLASSPATH" org.armedbear.lisp.Main "$@"
|
||||
EOS
|
||||
|
|
|
@ -20,7 +20,7 @@ class Abcm2ps < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"voices.abc").write <<-EOF.undent
|
||||
(testpath/"voices.abc").write <<~EOF
|
||||
X:7
|
||||
T:Qui Tolis (Trio)
|
||||
C:Andre Raison
|
||||
|
|
|
@ -25,7 +25,7 @@ class Abcmidi < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"balk.abc").write <<-EOF.undent
|
||||
(testpath/"balk.abc").write <<~EOF
|
||||
X: 1
|
||||
T: Abdala
|
||||
F: https://www.youtube.com/watch?v=YMf8yXaQDiQ
|
||||
|
|
|
@ -21,7 +21,7 @@ class Abuse < Formula
|
|||
depends_on "sdl_mixer"
|
||||
depends_on "libvorbis"
|
||||
|
||||
def startup_script; <<-EOS.undent
|
||||
def startup_script; <<~EOS
|
||||
#!/bin/bash
|
||||
#{libexec}/abuse-bin -datadir "#{pkgshare}" "$@"
|
||||
EOS
|
||||
|
@ -70,7 +70,7 @@ class Abuse < Formula
|
|||
(bin/"abuse").write startup_script
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Game settings and saves will be written to the ~/.abuse folder.
|
||||
EOS
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ class Activemq < Formula
|
|||
|
||||
plist_options :manual => "activemq start"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
|
|
|
@ -21,7 +21,7 @@ class Admesh < Formula
|
|||
|
||||
test do
|
||||
# Test file is the beginning of block.stl from admesh's source
|
||||
(testpath/"test.stl").write <<-EOS.undent
|
||||
(testpath/"test.stl").write <<~EOS
|
||||
SOLID Untitled1
|
||||
FACET NORMAL 0.00000000E+00 0.00000000E+00 1.00000000E+00
|
||||
OUTER LOOP
|
||||
|
|
|
@ -11,7 +11,7 @@ class AdrTools < Formula
|
|||
|
||||
# Unlink and re-write to matches homebrew's installation conventions
|
||||
config.unlink
|
||||
config.write <<-EOS.undent
|
||||
config.write <<~EOS
|
||||
#!/bin/bash
|
||||
echo 'adr_bin_dir=\"#{bin}\"'
|
||||
echo 'adr_template_dir=\"#{prefix}\"'
|
||||
|
|
|
@ -54,7 +54,7 @@ class AescryptPacketizer < Formula
|
|||
s = ""
|
||||
|
||||
if build.without? "default-names"
|
||||
s += <<-EOS.undent
|
||||
s += <<~EOS
|
||||
To avoid conflicting with our other AESCrypt package the binaries
|
||||
have been renamed paescrypt and paescrypt_keygen.
|
||||
EOS
|
||||
|
|
|
@ -18,7 +18,7 @@ class AflFuzz < Formula
|
|||
|
||||
test do
|
||||
cpp_file = testpath/"main.cpp"
|
||||
cpp_file.write <<-EOS.undent
|
||||
cpp_file.write <<~EOS
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
|
|
|
@ -79,7 +79,7 @@ class Agda < Formula
|
|||
s = ""
|
||||
|
||||
if build.with? "stdlib"
|
||||
s += <<-EOS.undent
|
||||
s += <<~EOS
|
||||
To use the Agda standard library by default:
|
||||
mkdir -p ~/.agda
|
||||
echo #{HOMEBREW_PREFIX}/lib/agda/standard-library.agda-lib >>~/.agda/libraries
|
||||
|
@ -92,7 +92,7 @@ class Agda < Formula
|
|||
|
||||
test do
|
||||
simpletest = testpath/"SimpleTest.agda"
|
||||
simpletest.write <<-EOS.undent
|
||||
simpletest.write <<~EOS
|
||||
module SimpleTest where
|
||||
|
||||
data ℕ : Set where
|
||||
|
@ -117,7 +117,7 @@ class Agda < Formula
|
|||
EOS
|
||||
|
||||
stdlibtest = testpath/"StdlibTest.agda"
|
||||
stdlibtest.write <<-EOS.undent
|
||||
stdlibtest.write <<~EOS
|
||||
module StdlibTest where
|
||||
|
||||
open import Data.Nat
|
||||
|
@ -129,7 +129,7 @@ class Agda < Formula
|
|||
EOS
|
||||
|
||||
iotest = testpath/"IOTest.agda"
|
||||
iotest.write <<-EOS.undent
|
||||
iotest.write <<~EOS
|
||||
module IOTest where
|
||||
|
||||
open import Agda.Builtin.IO
|
||||
|
@ -145,7 +145,7 @@ class Agda < Formula
|
|||
EOS
|
||||
|
||||
stdlibiotest = testpath/"StdlibIOTest.agda"
|
||||
stdlibiotest.write <<-EOS.undent
|
||||
stdlibiotest.write <<~EOS
|
||||
module StdlibIOTest where
|
||||
|
||||
open import IO
|
||||
|
|
|
@ -34,7 +34,7 @@ class Aggregate < Formula
|
|||
|
||||
test do
|
||||
# Test case taken from here: http://horms.net/projects/aggregate/examples.shtml
|
||||
test_input = <<-EOS.undent
|
||||
test_input = <<~EOS
|
||||
10.0.0.0/19
|
||||
10.0.255.0/24
|
||||
10.1.0.0/24
|
||||
|
@ -45,7 +45,7 @@ class Aggregate < Formula
|
|||
10.1.3.0/25
|
||||
EOS
|
||||
|
||||
expected_output = <<-EOS.undent
|
||||
expected_output = <<~EOS
|
||||
10.0.0.0/19
|
||||
10.0.255.0/24
|
||||
10.1.0.0/23
|
||||
|
|
|
@ -27,7 +27,7 @@ class Aiccu < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
<<~EOS
|
||||
You may also wish to install tuntap:
|
||||
|
||||
The TunTap project provides kernel extensions for macOS that allow
|
||||
|
@ -49,7 +49,7 @@ class Aiccu < Formula
|
|||
|
||||
plist_options :startup => true
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -35,7 +35,7 @@ class Aide < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"aide.conf").write <<-EOS.undent
|
||||
(testpath/"aide.conf").write <<~EOS
|
||||
database = file:/var/lib/aide/aide.db
|
||||
database_out = file:/var/lib/aide/aide.db.new
|
||||
database_new = file:/var/lib/aide/aide.db.new
|
||||
|
|
|
@ -33,7 +33,7 @@ class AircrackNg < Formula
|
|||
system "make", "prefix=#{prefix}", "mandir=#{man1}", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Run `airodump-ng-oui-update` install or update the Airodump-ng OUI file.
|
||||
EOS
|
||||
end
|
||||
|
|
|
@ -28,7 +28,7 @@ class Akka < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"src/main/java/sample/hello/HelloWorld.java").write <<-EOS.undent
|
||||
(testpath/"src/main/java/sample/hello/HelloWorld.java").write <<~EOS
|
||||
package sample.hello;
|
||||
|
||||
import akka.actor.Props;
|
||||
|
@ -55,7 +55,7 @@ class Akka < Formula
|
|||
}
|
||||
}
|
||||
EOS
|
||||
(testpath/"src/main/java/sample/hello/Greeter.java").write <<-EOS.undent
|
||||
(testpath/"src/main/java/sample/hello/Greeter.java").write <<~EOS
|
||||
package sample.hello;
|
||||
|
||||
import akka.actor.UntypedActor;
|
||||
|
@ -77,7 +77,7 @@ class Akka < Formula
|
|||
|
||||
}
|
||||
EOS
|
||||
(testpath/"src/main/java/sample/hello/Main.java").write <<-EOS.undent
|
||||
(testpath/"src/main/java/sample/hello/Main.java").write <<~EOS
|
||||
package sample.hello;
|
||||
|
||||
public class Main {
|
||||
|
|
|
@ -20,7 +20,7 @@ class Algol68g < Formula
|
|||
|
||||
test do
|
||||
path = testpath/"hello.alg"
|
||||
path.write <<-EOS.undent
|
||||
path.write <<~EOS
|
||||
print("Hello World")
|
||||
EOS
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class Allure < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"allure-results/allure-result.json").write <<-EOS.undent
|
||||
(testpath/"allure-results/allure-result.json").write <<~EOS
|
||||
{
|
||||
"uuid": "allure",
|
||||
"name": "testReportGeneration",
|
||||
|
|
|
@ -26,7 +26,7 @@ class AmqpCpp < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<-EOS.undent
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <amqpcpp.h>
|
||||
int main()
|
||||
{
|
||||
|
|
|
@ -109,7 +109,7 @@ class AnsibleLint < Formula
|
|||
|
||||
test do
|
||||
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
|
||||
(testpath/"playbook.yml").write <<-EOF.undent
|
||||
(testpath/"playbook.yml").write <<~EOF
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: False
|
||||
|
|
|
@ -560,7 +560,7 @@ class Ansible < Formula
|
|||
|
||||
test do
|
||||
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
|
||||
(testpath/"playbook.yml").write <<-EOF.undent
|
||||
(testpath/"playbook.yml").write <<~EOF
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: False
|
||||
|
|
|
@ -545,7 +545,7 @@ class AnsibleAT19 < Formula
|
|||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Homebrew writes wrapper scripts that set PYTHONPATH in ansible's
|
||||
execution environment, which is inherited by Python scripts invoked
|
||||
by ansible. If this causes problems, you can modify your playbooks
|
||||
|
@ -555,7 +555,7 @@ class AnsibleAT19 < Formula
|
|||
|
||||
test do
|
||||
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
|
||||
(testpath/"playbook.yml").write <<-EOF.undent
|
||||
(testpath/"playbook.yml").write <<~EOF
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: False
|
||||
|
|
|
@ -590,7 +590,7 @@ class AnsibleAT20 < Formula
|
|||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Homebrew writes wrapper scripts that set PYTHONPATH in ansible's
|
||||
execution environment, which is inherited by Python scripts invoked
|
||||
by ansible. If this causes problems, you can modify your playbooks
|
||||
|
@ -600,7 +600,7 @@ class AnsibleAT20 < Formula
|
|||
|
||||
test do
|
||||
ENV["ANSIBLE_REMOTE_TEMP"] = testpath/"tmp"
|
||||
(testpath/"playbook.yml").write <<-EOF.undent
|
||||
(testpath/"playbook.yml").write <<~EOF
|
||||
---
|
||||
- hosts: all
|
||||
gather_facts: False
|
||||
|
|
|
@ -15,7 +15,7 @@ class AntContrib < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"build.xml").write <<-EOS.undent
|
||||
(testpath/"build.xml").write <<~EOS
|
||||
<project name="HomebrewTest" default="init" basedir=".">
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
|
||||
<target name="init">
|
||||
|
|
|
@ -35,7 +35,7 @@ class Ant < Formula
|
|||
libexec.install Dir["*"]
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
rm bin/"ant"
|
||||
(bin/"ant").write <<-EOS.undent
|
||||
(bin/"ant").write <<~EOS
|
||||
#!/bin/sh
|
||||
#{libexec}/bin/ant -lib #{HOMEBREW_PREFIX}/share/ant "$@"
|
||||
EOS
|
||||
|
@ -52,7 +52,7 @@ class Ant < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"build.xml").write <<-EOS.undent
|
||||
(testpath/"build.xml").write <<~EOS
|
||||
<project name="HomebrewTest" basedir=".">
|
||||
<property name="src" location="src"/>
|
||||
<property name="build" location="build"/>
|
||||
|
@ -64,7 +64,7 @@ class Ant < Formula
|
|||
</target>
|
||||
</project>
|
||||
EOS
|
||||
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<-EOS.undent
|
||||
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<~EOS
|
||||
package org.homebrew;
|
||||
public class AntTest {
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -19,14 +19,14 @@ class AntAT19 < Formula
|
|||
libexec.install Dir["*"]
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
rm bin/"ant"
|
||||
(bin/"ant").write <<-EOS.undent
|
||||
(bin/"ant").write <<~EOS
|
||||
#!/bin/sh
|
||||
#{libexec}/bin/ant -lib #{HOMEBREW_PREFIX}/share/ant "$@"
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"build.xml").write <<-EOS.undent
|
||||
(testpath/"build.xml").write <<~EOS
|
||||
<project name="HomebrewTest" basedir=".">
|
||||
<property name="src" location="src"/>
|
||||
<property name="build" location="build"/>
|
||||
|
@ -38,7 +38,7 @@ class AntAT19 < Formula
|
|||
</target>
|
||||
</project>
|
||||
EOS
|
||||
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<-EOS.undent
|
||||
(testpath/"src/main/java/org/homebrew/AntTest.java").write <<~EOS
|
||||
package org.homebrew;
|
||||
public class AntTest {
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -11,7 +11,7 @@ class Antigen < Formula
|
|||
pkgshare.install "bin/antigen.zsh"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
To activate antigen, add the following to your ~/.zshrc:
|
||||
source #{HOMEBREW_PREFIX}/share/antigen/antigen.zsh
|
||||
EOS
|
||||
|
|
|
@ -30,7 +30,7 @@ class Antiword < Formula
|
|||
man1.install "Docs/antiword.1"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
You can install mapping files in ~/.antiword
|
||||
EOS
|
||||
end
|
||||
|
|
|
@ -11,12 +11,12 @@ class Antlr < Formula
|
|||
def install
|
||||
prefix.install "antlr-#{version}-complete.jar"
|
||||
|
||||
(bin/"antlr4").write <<-EOS.undent
|
||||
(bin/"antlr4").write <<~EOS
|
||||
#!/bin/bash
|
||||
CLASSPATH="#{prefix}/antlr-#{version}-complete.jar:." exec java -jar #{prefix}/antlr-#{version}-complete.jar "$@"
|
||||
EOS
|
||||
|
||||
(bin/"grun").write <<-EOS.undent
|
||||
(bin/"grun").write <<~EOS
|
||||
#!/bin/bash
|
||||
java -classpath #{prefix}/antlr-#{version}-complete.jar:. org.antlr.v4.gui.TestRig "$@"
|
||||
EOS
|
||||
|
@ -24,7 +24,7 @@ class Antlr < Formula
|
|||
|
||||
test do
|
||||
path = testpath/"Expr.g4"
|
||||
path.write <<-EOS.undent
|
||||
path.write <<~EOS
|
||||
grammar Expr;
|
||||
prog:\t(expr NEWLINE)* ;
|
||||
expr:\texpr ('*'|'/') expr
|
||||
|
|
|
@ -20,7 +20,7 @@ class Antlr4CppRuntime < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cc").write <<-EOS.undent
|
||||
(testpath/"test.cc").write <<~EOS
|
||||
#include <antlr4-runtime.h>
|
||||
int main(int argc, const char* argv[]) {
|
||||
try {
|
||||
|
|
|
@ -26,7 +26,7 @@ class AntlrAT2 < Formula
|
|||
include.install "lib/cpp/antlr"
|
||||
lib.install "lib/cpp/src/libantlr.a"
|
||||
|
||||
(bin/"antlr2").write <<-EOS.undent
|
||||
(bin/"antlr2").write <<~EOS
|
||||
#!/bin/sh
|
||||
java -classpath #{libexec}/antlr.jar antlr.Tool "$@"
|
||||
EOS
|
||||
|
|
|
@ -17,7 +17,7 @@ class AntlrAT3 < Formula
|
|||
def install
|
||||
libexec.install "antlr-3.5.2-complete.jar"
|
||||
(share+"java").install_symlink "#{libexec}/antlr-3.5.2-complete.jar" => "antlr3.jar"
|
||||
(bin+"antlr3").write <<-EOS.undent
|
||||
(bin+"antlr3").write <<~EOS
|
||||
#!/bin/sh
|
||||
java -jar #{libexec}/antlr-3.5.2-complete.jar "$@"
|
||||
EOS
|
||||
|
@ -25,7 +25,7 @@ class AntlrAT3 < Formula
|
|||
|
||||
test do
|
||||
exppath = testpath/"Exp.g"
|
||||
exppath.write <<-EOS.undent
|
||||
exppath.write <<~EOS
|
||||
grammar Exp;
|
||||
eval returns [double value]
|
||||
: exp=atomExp {$value = $exp.value;}
|
||||
|
@ -41,7 +41,7 @@ class AntlrAT3 < Formula
|
|||
;
|
||||
EOS
|
||||
javapath = testpath/"ANTLRDemo.java"
|
||||
javapath.write <<-EOS.undent
|
||||
javapath.write <<~EOS
|
||||
import org.antlr.runtime.*;
|
||||
public class ANTLRDemo {
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
|
|
@ -24,7 +24,7 @@ class ApacheArchiva < Formula
|
|||
|
||||
plist_options :manual => "ARCHIVA_BASE=#{HOMEBREW_PREFIX}/var/archiva #{HOMEBREW_PREFIX}/opt/apache-archiva/bin/archiva console"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -31,7 +31,7 @@ class ApacheArrow < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<-EOS.undent
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include "arrow/api.h"
|
||||
int main(void)
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@ class ApacheZeppelin < Formula
|
|||
ENV["ZEPPELIN_CONF_DIR"] = "#{testpath}/conf"
|
||||
conf = testpath/"conf"
|
||||
conf.mkdir
|
||||
(conf/"zeppelin-env.sh").write <<-EOF.undent
|
||||
(conf/"zeppelin-env.sh").write <<~EOF
|
||||
export ZEPPELIN_WAR_TEMPDIR="#{testpath}/webapps"
|
||||
export ZEPPELIN_PORT=9999
|
||||
export ZEPPELIN_NOTEBOOK_DIR="#{testpath}/notebooks"
|
||||
|
|
|
@ -47,7 +47,7 @@ class Apcupsd < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
s = <<-EOS.undent
|
||||
s = <<~EOS
|
||||
For #{name} to be able to communicate with UPSes connected via USB,
|
||||
the kernel extension must be installed by the root user:
|
||||
|
||||
|
@ -58,7 +58,7 @@ class Apcupsd < Formula
|
|||
EOS
|
||||
|
||||
if MacOS.version >= :el_capitan
|
||||
s += <<-EOS.undent
|
||||
s += <<~EOS
|
||||
Note: On OS X El Capitan and above, the kernel extension currently
|
||||
does not work as expected.
|
||||
|
||||
|
@ -68,7 +68,7 @@ class Apcupsd < Formula
|
|||
EOS
|
||||
end
|
||||
|
||||
s += <<-EOS.undent
|
||||
s += <<~EOS
|
||||
To load #{name} at startup, activate the included Launch Daemon:
|
||||
|
||||
sudo cp #{prefix}/Library/LaunchDaemons/org.apcupsd.apcupsd.plist /Library/LaunchDaemons
|
||||
|
|
|
@ -27,7 +27,7 @@ class Ape < Formula
|
|||
system "make", "install", "prefix=#{prefix}"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
The default configuration file is stored in #{etc}. You should load aped with:
|
||||
aped --cfg #{etc}/ape.conf
|
||||
EOS
|
||||
|
|
|
@ -20,7 +20,7 @@ class Apel < Formula
|
|||
|
||||
test do
|
||||
program = testpath/"test-apel.el"
|
||||
program.write <<-EOS.undent
|
||||
program.write <<~EOS
|
||||
(add-to-list 'load-path "#{elisp}/emu")
|
||||
(require 'poe)
|
||||
(print (minibuffer-prompt-width))
|
||||
|
|
|
@ -30,14 +30,14 @@ class Apgdiff < Formula
|
|||
sql_orig = testpath/"orig.sql"
|
||||
sql_new = testpath/"new.sql"
|
||||
|
||||
sql_orig.write <<-EOS.undent
|
||||
sql_orig.write <<~EOS
|
||||
SET search_path = public, pg_catalog;
|
||||
SET default_tablespace = '';
|
||||
CREATE TABLE testtable (field1 integer);
|
||||
ALTER TABLE public.testtable OWNER TO fordfrog;
|
||||
EOS
|
||||
|
||||
sql_new.write <<-EOS.undent
|
||||
sql_new.write <<~EOS
|
||||
SET search_path = public, pg_catalog;
|
||||
SET default_tablespace = '';
|
||||
CREATE TABLE testtable (field1 integer,
|
||||
|
@ -45,7 +45,7 @@ class Apgdiff < Formula
|
|||
ALTER TABLE public.testtable OWNER TO fordfrog;
|
||||
EOS
|
||||
|
||||
expected = <<-EOS.undent.strip
|
||||
expected = <<~EOS.strip
|
||||
ALTER TABLE testtable
|
||||
\tADD COLUMN field2 boolean DEFAULT false NOT NULL;
|
||||
EOS
|
||||
|
|
|
@ -11,7 +11,7 @@ class ApibuilderCli < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"config").write <<-EOS.undent
|
||||
(testpath/"config").write <<~EOS
|
||||
[default]
|
||||
token = abcd1234
|
||||
EOS
|
||||
|
|
|
@ -44,7 +44,7 @@ class Apollo < Formula
|
|||
(bin/"apollo").write_env_script libexec/"bin/apollo", Language::Java.java_home_env
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
To create the broker:
|
||||
#{bin}/apollo create #{var}/apollo
|
||||
EOS
|
||||
|
@ -52,7 +52,7 @@ class Apollo < Formula
|
|||
|
||||
plist_options :manual => "#{HOMEBREW_PREFIX}/var/apollo/bin/apollo-broker run"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -22,7 +22,7 @@ class AppleGcc42 < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
<<~EOS
|
||||
NOTE:
|
||||
This formula provides components that were removed from XCode in the 4.2
|
||||
release. There is no reason to install this formula if you are using a
|
||||
|
@ -38,7 +38,7 @@ class AppleGcc42 < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
(testpath/"hello-c.c").write <<~EOS
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ class AppleGcc42 < Formula
|
|||
system "#{bin}/gcc-4.2", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
|
||||
(testpath/"hello-cc.cc").write <<-EOS.undent
|
||||
(testpath/"hello-cc.cc").write <<~EOS
|
||||
#include <iostream>
|
||||
int main()
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ class AppleGcc42 < Formula
|
|||
system "#{bin}/g++-4.2", "-o", "hello-cc", "hello-cc.cc"
|
||||
assert_equal "Hello, world!\n", `./hello-cc`
|
||||
|
||||
fixture = <<-EOS.undent
|
||||
fixture = <<~EOS
|
||||
integer,parameter::m=10000
|
||||
real::a(m), b(m)
|
||||
real::fact=0.5
|
||||
|
|
|
@ -31,7 +31,7 @@ class Appledoc < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.h").write <<-EOS.undent
|
||||
(testpath/"test.h").write <<~EOS
|
||||
/**
|
||||
* This is a test class. It does stuff.
|
||||
*
|
||||
|
|
|
@ -42,7 +42,7 @@ class Aqbanking < Formula
|
|||
test do
|
||||
ENV["TZ"] = "UTC"
|
||||
context = "balance.ctx"
|
||||
(testpath/context).write <<-EOS.undent
|
||||
(testpath/context).write <<~EOS
|
||||
accountInfoList {
|
||||
accountInfo {
|
||||
char bankCode="110000000"
|
||||
|
|
|
@ -56,7 +56,7 @@ class Arangodb < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
s = <<-EOS.undent
|
||||
s = <<~EOS
|
||||
An empty password has been set. Please change it by executing
|
||||
#{opt_sbin}/arango-secure-installation
|
||||
EOS
|
||||
|
@ -66,7 +66,7 @@ class Arangodb < Formula
|
|||
|
||||
plist_options :manual => "#{HOMEBREW_PREFIX}/opt/arangodb/sbin/arangod"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -10,7 +10,7 @@ class ArchiSteamFarm < Formula
|
|||
|
||||
def install
|
||||
libexec.install "ASF.exe"
|
||||
(bin/"asf").write <<-EOS.undent
|
||||
(bin/"asf").write <<~EOS
|
||||
#!/bin/bash
|
||||
mono #{libexec}/ASF.exe "$@"
|
||||
EOS
|
||||
|
@ -19,7 +19,7 @@ class ArchiSteamFarm < Formula
|
|||
libexec.install_symlink etc/"asf" => "config"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Config: #{etc}/asf/
|
||||
EOS
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@ class Archivemail < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"inbox").write <<-EOS.undent
|
||||
(testpath/"inbox").write <<~EOS
|
||||
From MAILER-DAEMON Fri Jul 8 12:08:34 2011
|
||||
From: Author <author@example.com>
|
||||
To: Recipient <recipient@example.com>
|
||||
|
|
|
@ -29,7 +29,7 @@ class ArgpStandalone < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
(testpath/"test.c").write <<~EOS
|
||||
#include <stdio.h>
|
||||
#include <argp.h>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class Argtable < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOF.undent
|
||||
(testpath/"test.c").write <<~EOF
|
||||
#include "argtable2.h"
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -12,7 +12,7 @@ class Arm < Formula
|
|||
bin.write_exec_script libexec/"arm"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
You'll need to enable the Tor Control Protocol in your torrc.
|
||||
See here for details: https://www.torproject.org/tor-manual.html.en
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ class Artifactory < Formula
|
|||
|
||||
plist_options :manual => "#{HOMEBREW_PREFIX}/opt/artifactory/libexec/bin/artifactory.sh"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -76,7 +76,7 @@ class ArxLibertatis < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
if build.with? "innoextract"; then <<-EOS.undent
|
||||
if build.with? "innoextract"; then <<~EOS
|
||||
This package only contains the Arx Libertatis binary, not the game data.
|
||||
To play Arx Fatalis you will need to obtain the game from GOG.com and install
|
||||
the game data with:
|
||||
|
|
|
@ -34,7 +34,7 @@ class Asciidoc < Formula
|
|||
system "make", "docs"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
If you intend to process AsciiDoc files through an XML stage
|
||||
(such as a2x for manpage generation) you need to add something
|
||||
like:
|
||||
|
|
|
@ -18,7 +18,7 @@ class Asciidoctorj < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.adoc").write <<-EOS.undent
|
||||
(testpath/"test.adoc").write <<~EOS
|
||||
= This Is A Title
|
||||
Random J. Author <rjauthor@example.com>
|
||||
:icons: font
|
||||
|
|
|
@ -26,7 +26,7 @@ class Asdf < Formula
|
|||
"exec $(asdf_dir)/libexec/private/asdf-exec "
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Add the following line to your bash profile (e.g. ~/.bashrc, ~/.profile, or ~/.bash_profile)
|
||||
source #{opt_prefix}/asdf.sh
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class Asn1c < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.asn1").write <<-EOS.undent
|
||||
(testpath/"test.asn1").write <<~EOS
|
||||
MyModule DEFINITIONS ::=
|
||||
BEGIN
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class Aspcud < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
fixture = <<-EOS.undent
|
||||
fixture = <<~EOS
|
||||
package: foo
|
||||
version: 1
|
||||
|
||||
|
|
|
@ -15,14 +15,14 @@ class Aspectj < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"Test.java").write <<-EOS.undent
|
||||
(testpath/"Test.java").write <<~EOS
|
||||
public class Test {
|
||||
public static void main (String[] args) {
|
||||
System.out.println("Brew Test");
|
||||
}
|
||||
}
|
||||
EOS
|
||||
(testpath/"TestAspect.aj").write <<-EOS.undent
|
||||
(testpath/"TestAspect.aj").write <<~EOS
|
||||
public aspect TestAspect {
|
||||
private pointcut mainMethod () :
|
||||
execution(public static void main(String[]));
|
||||
|
|
|
@ -27,7 +27,7 @@ class Assimp < Formula
|
|||
|
||||
test do
|
||||
# Library test.
|
||||
(testpath/"test.cpp").write <<-EOS.undent
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <assimp/Importer.hpp>
|
||||
int main() {
|
||||
Assimp::Importer importer;
|
||||
|
@ -38,7 +38,7 @@ class Assimp < Formula
|
|||
system "./test"
|
||||
|
||||
# Application test.
|
||||
(testpath/"test.obj").write <<-EOS.undent
|
||||
(testpath/"test.obj").write <<~EOS
|
||||
# WaveFront .obj file - a single square based pyramid
|
||||
|
||||
# Start a new group:
|
||||
|
|
|
@ -24,7 +24,7 @@ class Astyle < Formula
|
|||
(testpath/"test.c").write("int main(){return 0;}\n")
|
||||
system "#{bin}/astyle", "--style=gnu", "--indent=spaces=4",
|
||||
"--lineend=linux", "#{testpath}/test.c"
|
||||
assert_equal File.read("test.c"), <<-EOS.undent
|
||||
assert_equal File.read("test.c"), <<~EOS
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -23,7 +23,7 @@ class Aterm < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
(testpath/"test.c").write <<~EOS
|
||||
#include <aterm1.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
|
|
@ -23,7 +23,7 @@ class Atk < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
(testpath/"test.c").write <<~EOS
|
||||
#include <atk/atk.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
|
|
@ -26,7 +26,7 @@ class Atkmm < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<-EOS.undent
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <atkmm/init.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
|
|
@ -20,7 +20,7 @@ class Ats2Postiats < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello.dats").write <<-EOS.undent
|
||||
(testpath/"hello.dats").write <<~EOS
|
||||
val _ = print ("Hello, world!\n")
|
||||
implement main0 () = ()
|
||||
EOS
|
||||
|
|
|
@ -84,7 +84,7 @@ class Audacious < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
audtool does not work due to a broken dbus implementation on macOS, so is not built
|
||||
coreaudio output has been disabled as it does not work (Fails to set audio unit input property.)
|
||||
GTK+ gui is not built by default as the QT gui has better integration with macOS, and when built, the gtk gui takes precedence
|
||||
|
|
|
@ -34,7 +34,7 @@ class Augeas < Formula
|
|||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Lenses have been installed to:
|
||||
#{HOMEBREW_PREFIX}/share/augeas/lenses/dist
|
||||
EOS
|
||||
|
|
|
@ -22,7 +22,7 @@ class AuroraCli < Formula
|
|||
|
||||
test do
|
||||
ENV["AURORA_CONFIG_ROOT"] = "#{testpath}/"
|
||||
(testpath/"clusters.json").write <<-EOS.undent
|
||||
(testpath/"clusters.json").write <<~EOS
|
||||
[{
|
||||
"name": "devcluster",
|
||||
"slave_root": "/tmp/mesos/",
|
||||
|
|
|
@ -22,7 +22,7 @@ class AutoScaling < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
<<~EOS
|
||||
Before you can use these tools you must export some variables to your $SHELL.
|
||||
export AWS_ACCESS_KEY="<Your AWS Access ID>"
|
||||
export AWS_SECRET_KEY="<Your AWS Secret Key>"
|
||||
|
|
|
@ -24,7 +24,7 @@ class Autocode < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/".autocode/config.yml").write <<-EOS.undent
|
||||
(testpath/".autocode/config.yml").write <<~EOS
|
||||
name: test
|
||||
version: 0.1.0
|
||||
description: test description
|
||||
|
|
|
@ -21,7 +21,7 @@ class AutoconfArchive < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.m4").write <<-EOS.undent
|
||||
(testpath/"test.m4").write <<~EOS
|
||||
AC_INIT(myconfig, version-0.1)
|
||||
AC_MSG_NOTICE([Hello, world.])
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ class Autoenv < Formula
|
|||
prefix.install "activate.sh"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
To finish the installation, source activate.sh in your shell:
|
||||
source #{opt_prefix}/activate.sh
|
||||
EOS
|
||||
|
|
|
@ -24,7 +24,7 @@ class Autojump < Formula
|
|||
bin.write_exec_script libexec/"bin/autojump"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
|
||||
to source the file to update your current session):
|
||||
[ -f #{etc}/profile.d/autojump.sh ] && . #{etc}/profile.d/autojump.sh
|
||||
|
|
|
@ -25,24 +25,24 @@ class Automake < Formula
|
|||
|
||||
# Our aclocal must go first. See:
|
||||
# https://github.com/Homebrew/homebrew/issues/10618
|
||||
(share/"aclocal/dirlist").write <<-EOS.undent
|
||||
(share/"aclocal/dirlist").write <<~EOS
|
||||
#{HOMEBREW_PREFIX}/share/aclocal
|
||||
/usr/share/aclocal
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
(testpath/"test.c").write <<~EOS
|
||||
int main() { return 0; }
|
||||
EOS
|
||||
(testpath/"configure.ac").write <<-EOS.undent
|
||||
(testpath/"configure.ac").write <<~EOS
|
||||
AC_INIT(test, 1.0)
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_PROG_CC
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_OUTPUT
|
||||
EOS
|
||||
(testpath/"Makefile.am").write <<-EOS.undent
|
||||
(testpath/"Makefile.am").write <<~EOS
|
||||
bin_PROGRAMS = test
|
||||
test_SOURCES = test.c
|
||||
EOS
|
||||
|
|
|
@ -27,24 +27,24 @@ class AutomakeAT112 < Formula
|
|||
|
||||
# Our aclocal must go first. See:
|
||||
# https://github.com/Homebrew/homebrew/issues/10618
|
||||
(share/"aclocal/dirlist").write <<-EOS.undent
|
||||
(share/"aclocal/dirlist").write <<~EOS
|
||||
#{HOMEBREW_PREFIX}/share/aclocal
|
||||
/usr/share/aclocal
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
(testpath/"test.c").write <<~EOS
|
||||
int main() { return 0; }
|
||||
EOS
|
||||
(testpath/"configure.ac").write <<-EOS.undent
|
||||
(testpath/"configure.ac").write <<~EOS
|
||||
AC_INIT(test, 1.0)
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_PROG_CC
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_OUTPUT
|
||||
EOS
|
||||
(testpath/"Makefile.am").write <<-EOS.undent
|
||||
(testpath/"Makefile.am").write <<~EOS
|
||||
bin_PROGRAMS = test
|
||||
test_SOURCES = test.c
|
||||
EOS
|
||||
|
|
|
@ -19,7 +19,7 @@ class Automysqlbackup < Formula
|
|||
sbin.install "automysqlbackup"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
You will have to edit
|
||||
#{etc}/automysqlbackup/automysqlbackup.conf
|
||||
to set AutoMySQLBackup up to find your database and backup directory.
|
||||
|
@ -30,7 +30,7 @@ class Automysqlbackup < Formula
|
|||
|
||||
plist_options :manual => "automysqlbackup"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -13,7 +13,7 @@ class Autopsy < Formula
|
|||
# fixes weird configure script that wouldn't work nicely with homebrew
|
||||
patch :DATA
|
||||
|
||||
def autcfg; <<-EOS.undent
|
||||
def autcfg; <<~EOS
|
||||
# Autopsy configuration settings
|
||||
|
||||
# when set to 1, the server will stop after it receives no
|
||||
|
@ -59,7 +59,7 @@ class Autopsy < Formula
|
|||
bin.install "base/autopsy.base" => "autopsy"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
By default, the evidence locker is in:
|
||||
#{var}/lib/autopsy
|
||||
EOS
|
||||
|
|
|
@ -21,7 +21,7 @@ class Autorest < Formula
|
|||
|
||||
def install
|
||||
libexec.install Dir["tools/*"]
|
||||
(bin/"autorest").write <<-EOS.undent
|
||||
(bin/"autorest").write <<~EOS
|
||||
#!/bin/bash
|
||||
mono #{libexec}/AutoRest.exe "$@"
|
||||
EOS
|
||||
|
|
|
@ -25,7 +25,7 @@ class Avanor < Formula
|
|||
|
||||
test do
|
||||
script = (testpath/"script.exp")
|
||||
script.write <<-EOS.undent
|
||||
script.write <<~EOS
|
||||
#!/usr/bin/expect -f
|
||||
set timeout 10
|
||||
spawn avanor
|
||||
|
|
|
@ -25,7 +25,7 @@ class Avian < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"Test.java").write <<-EOS.undent
|
||||
(testpath/"Test.java").write <<~EOS
|
||||
public class Test {
|
||||
public static void main(String arg[]) {
|
||||
System.out.print("OK");
|
||||
|
|
|
@ -23,7 +23,7 @@ class AwsCfnTools < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
<<~EOS
|
||||
Before you can use these tools you must export some variables to your $SHELL.
|
||||
export AWS_ACCESS_KEY="<Your AWS Access ID>"
|
||||
export AWS_SECRET_KEY="<Your AWS Secret Key>"
|
||||
|
|
|
@ -23,7 +23,7 @@ class AwsElasticache < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
<<~EOS
|
||||
Before you can use these tools you must export some variables to your $SHELL.
|
||||
export AWS_ACCESS_KEY="<Your AWS Access ID>"
|
||||
export AWS_SECRET_KEY="<Your AWS Secret Key>"
|
||||
|
|
|
@ -32,7 +32,7 @@ class AwsSdkCpp < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<-EOS.undent
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <aws/core/Version.h>
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ class AwsSnsCli < Formula
|
|||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
<<~EOS
|
||||
Before you can use these tools you must export some variables to your $SHELL.
|
||||
export AWS_ACCESS_KEY="<Your AWS Access ID>"
|
||||
export AWS_SECRET_KEY="<Your AWS Secret Key>"
|
||||
|
|
|
@ -29,7 +29,7 @@ class Awscli < Formula
|
|||
rm Dir["#{bin}/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh}"]
|
||||
bash_completion.install "bin/aws_bash_completer"
|
||||
zsh_completion.install "bin/aws_zsh_completer.sh"
|
||||
(zsh_completion/"_aws").write <<-EOS.undent
|
||||
(zsh_completion/"_aws").write <<~EOS
|
||||
#compdef aws
|
||||
_aws () {
|
||||
local e
|
||||
|
@ -39,7 +39,7 @@ class Awscli < Formula
|
|||
EOS
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
The "examples" directory has been installed to:
|
||||
#{HOMEBREW_PREFIX}/share/awscli/examples
|
||||
EOS
|
||||
|
|
|
@ -496,7 +496,7 @@ class AzureCli < Formula
|
|||
File.open(site_packages/"azure/cli/command_modules/__init__.py", "w") {}
|
||||
File.open(site_packages/"azure/mgmt/__init__.py", "w") {}
|
||||
|
||||
(bin/"az").write <<-EOS.undent
|
||||
(bin/"az").write <<~EOS
|
||||
#!/usr/bin/env bash
|
||||
export PYTHONPATH="#{ENV["PYTHONPATH"]}"
|
||||
if command -v python#{xy} >/dev/null 2>&1; then
|
||||
|
@ -509,7 +509,7 @@ class AzureCli < Formula
|
|||
bash_completion.install "az.completion" => "az"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
This formula is for Azure CLI 2.0 - https://docs.microsoft.com/cli/azure/overview.
|
||||
The previous Azure CLI has moved to azure-cli@1
|
||||
----
|
||||
|
|
|
@ -26,7 +26,7 @@ class Babel < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"script.js").write <<-EOS.undent
|
||||
(testpath/"script.js").write <<~EOS
|
||||
[1,2,3].map(n => n + 1);
|
||||
EOS
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Babeld < Formula
|
|||
|
||||
test do
|
||||
shell_output("#{bin}/babeld -I #{testpath}/test.pid -L #{testpath}/test.log", 1)
|
||||
expected = <<-EOS.undent
|
||||
expected = <<~EOS
|
||||
Couldn't tweak forwarding knob.: Operation not permitted
|
||||
kernel_setup failed.
|
||||
EOS
|
||||
|
|
|
@ -29,7 +29,7 @@ class Babl < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
(testpath/"test.c").write <<~EOS
|
||||
#include <babl/babl.h>
|
||||
int main() {
|
||||
babl_init();
|
||||
|
|
|
@ -40,7 +40,7 @@ class BaculaFd < Formula
|
|||
|
||||
plist_options :startup => true, :manual => "bacula-fd"
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<?xml version="0.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
|
|
|
@ -26,7 +26,7 @@ class Bam < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello.c").write <<-EOS.undent
|
||||
(testpath/"hello.c").write <<~EOS
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
printf("hello\\n");
|
||||
|
@ -34,7 +34,7 @@ class Bam < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
(testpath/"bam.lua").write <<-EOS.undent
|
||||
(testpath/"bam.lua").write <<~EOS
|
||||
settings = NewSettings()
|
||||
objs = Compile(settings, Collect("*.c"))
|
||||
exe = Link(settings, "hello", objs)
|
||||
|
|
|
@ -24,7 +24,7 @@ class Bartycrouch < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"Test.swift").write <<-EOS.undent
|
||||
(testpath/"Test.swift").write <<~EOS
|
||||
import Foundation
|
||||
|
||||
class Test {
|
||||
|
@ -34,7 +34,7 @@ class Bartycrouch < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
(testpath/"en.lproj/Localizable.strings").write <<-EOS.undent
|
||||
(testpath/"en.lproj/Localizable.strings").write <<~EOS
|
||||
/* No comment provided by engineer. */
|
||||
"oldKey" = "Some translation";
|
||||
EOS
|
||||
|
|
|
@ -40,7 +40,7 @@ class BashCompletion < Formula
|
|||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Add the following line to your ~/.bash_profile:
|
||||
[ -f #{etc}/bash_completion ] && . #{etc}/bash_completion
|
||||
EOS
|
||||
|
|
|
@ -25,7 +25,7 @@ class BashCompletionAT2 < Formula
|
|||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Add the following to your ~/.bash_profile:
|
||||
if [ -f #{HOMEBREW_PREFIX}/share/bash-completion/bash_completion ]; then
|
||||
. #{HOMEBREW_PREFIX}/share/bash-completion/bash_completion
|
||||
|
|
|
@ -16,7 +16,7 @@ class BashGitPrompt < Formula
|
|||
doc.install "README.md"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
You should add the following to your .bashrc (or equivalent):
|
||||
if [ -f "#{HOMEBREW_PREFIX}/opt/bash-git-prompt/share/gitprompt.sh" ]; then
|
||||
__GIT_PROMPT_DIR="#{HOMEBREW_PREFIX}/opt/bash-git-prompt/share"
|
||||
|
|
|
@ -12,7 +12,7 @@ class BashPreexec < Formula
|
|||
(prefix/"etc/profile.d").install "bash-preexec.sh"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Add the following line to your bash profile (e.g. ~/.bashrc, ~/.profile, or ~/.bash_profile)
|
||||
[ -f #{etc}/profile.d/bash-preexec.sh ] && . #{etc}/profile.d/bash-preexec.sh
|
||||
EOS
|
||||
|
|
|
@ -62,7 +62,7 @@ class Bash < Formula
|
|||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
In order to use this build of bash as your login shell,
|
||||
it must be added to /etc/shells.
|
||||
EOS
|
||||
|
|
|
@ -12,7 +12,7 @@ class Bats < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"testing.sh").write <<-EOS.undent
|
||||
(testpath/"testing.sh").write <<~EOS
|
||||
#!/usr/bin/env bats
|
||||
@test "addition using bc" {
|
||||
result="$(echo 2+2 | bc)"
|
||||
|
|
|
@ -32,7 +32,7 @@ class Bazel < Formula
|
|||
test do
|
||||
touch testpath/"WORKSPACE"
|
||||
|
||||
(testpath/"ProjectRunner.java").write <<-EOS.undent
|
||||
(testpath/"ProjectRunner.java").write <<~EOS
|
||||
public class ProjectRunner {
|
||||
public static void main(String args[]) {
|
||||
System.out.println("Hi!");
|
||||
|
@ -40,7 +40,7 @@ class Bazel < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
(testpath/"BUILD").write <<-EOS.undent
|
||||
(testpath/"BUILD").write <<~EOS
|
||||
java_binary(
|
||||
name = "bazel-test",
|
||||
srcs = glob(["*.java"]),
|
||||
|
|
|
@ -41,7 +41,7 @@ class BazelAT02 < Formula
|
|||
test do
|
||||
touch testpath/"WORKSPACE"
|
||||
|
||||
(testpath/"ProjectRunner.java").write <<-EOS.undent
|
||||
(testpath/"ProjectRunner.java").write <<~EOS
|
||||
public class ProjectRunner {
|
||||
public static void main(String args[]) {
|
||||
System.out.println("Hi!");
|
||||
|
@ -49,7 +49,7 @@ class BazelAT02 < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
(testpath/"BUILD").write <<-EOS.undent
|
||||
(testpath/"BUILD").write <<~EOS
|
||||
java_binary(
|
||||
name = "bazel-test",
|
||||
srcs = glob(["*.java"]),
|
||||
|
|
|
@ -20,7 +20,7 @@ class Bchunk < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"foo.cue").write <<-EOS.undent
|
||||
(testpath/"foo.cue").write <<~EOS
|
||||
foo.bin BINARY
|
||||
TRACK 01 MODE1/2352
|
||||
INDEX 01 00:00:00
|
||||
|
|
|
@ -19,7 +19,7 @@ class Bcpp < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.txt").write <<-EOS.undent
|
||||
(testpath/"test.txt").write <<~EOS
|
||||
test
|
||||
test
|
||||
test
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue