various: automated style fixes
This commit is contained in:
parent
e40c485e98
commit
431e7b2fd3
53 changed files with 80 additions and 95 deletions
|
@ -31,8 +31,7 @@ class Autotrace < Formula
|
|||
args = ["--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}",
|
||||
]
|
||||
"--mandir=#{man}"]
|
||||
|
||||
args << "--without-magick" if build.without? "imagemagick"
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Brotli < Formula
|
|||
|
||||
depends_on "cmake" => :build
|
||||
|
||||
conflicts_with "bro", because: "Both install a `bro` binary"
|
||||
conflicts_with "bro", :because => "Both install a `bro` binary"
|
||||
|
||||
def install
|
||||
system "cmake", ".", *std_cmake_args
|
||||
|
|
|
@ -40,8 +40,7 @@ class Cgal < Formula
|
|||
args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}",
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON",
|
||||
"-DCMAKE_INSTALL_NAME_DIR=#{HOMEBREW_PREFIX}/lib",
|
||||
]
|
||||
"-DCMAKE_INSTALL_NAME_DIR=#{HOMEBREW_PREFIX}/lib"]
|
||||
if build.without? "imaging"
|
||||
args << "-DWITH_CGAL_Qt3=OFF" << "-DWITH_CGAL_Qt4=OFF" << "-DWITH_CGAL_ImageIO=OFF"
|
||||
end
|
||||
|
|
|
@ -18,7 +18,6 @@ class Cherokee < Formula
|
|||
sha256 "ef4d94b51cc425dd704d0007cf9980024035406cb00345158fd84b1901c04437" => :mavericks
|
||||
end
|
||||
|
||||
|
||||
head do
|
||||
url "https://github.com/cherokee/webserver.git"
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@ class CloudWatch < Formula
|
|||
|
||||
def install
|
||||
env = Language::Java.java_home_env
|
||||
env.merge! :AWS_CLOUDWATCH_HOME => libexec, :SERVICE_HOME => libexec
|
||||
env[:AWS_CLOUDWATCH_HOME] = libexec
|
||||
env[:SERVICE_HOME] = libexec
|
||||
rm Dir["bin/*.cmd"] # Remove Windows versions
|
||||
libexec.install Dir["*"]
|
||||
Pathname.glob("#{libexec}/bin/*") do |file|
|
||||
|
|
|
@ -27,7 +27,7 @@ class Ezstream < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.m3u").write "#{test_fixtures("test.mp3")}"
|
||||
(testpath/"test.m3u").write test_fixtures("test.mp3").to_s
|
||||
system bin/"ezstream", "-s", testpath/"test.m3u"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -32,7 +32,8 @@ class Falcon < Formula
|
|||
-DFALCON_LIB_DIR=#{lib}
|
||||
-DFALCON_MAN_DIR=#{man1}
|
||||
-DFALCON_WITH_INTERNAL_PCRE=OFF
|
||||
-DFALCON_WITH_MANPAGES=ON]
|
||||
-DFALCON_WITH_MANPAGES=ON
|
||||
]
|
||||
|
||||
if build.with? "editline"
|
||||
args << "-DFALCON_WITH_EDITLINE=ON"
|
||||
|
|
|
@ -39,8 +39,7 @@ class Ffmbc < Formula
|
|||
"--disable-shared",
|
||||
"--enable-gpl",
|
||||
"--enable-nonfree",
|
||||
"--cc=#{ENV.cc}",
|
||||
]
|
||||
"--cc=#{ENV.cc}"]
|
||||
|
||||
args << "--enable-libx264" if build.with? "x264"
|
||||
args << "--enable-libfaac" if build.with? "faac"
|
||||
|
|
|
@ -27,8 +27,7 @@ class Fftw < Formula
|
|||
"--disable-debug",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-threads",
|
||||
"--disable-dependency-tracking",
|
||||
]
|
||||
"--disable-dependency-tracking"]
|
||||
simd_args = ["--enable-sse2"]
|
||||
simd_args << "--enable-avx" if ENV.compiler == :clang && Hardware::CPU.avx? && !build.bottle?
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class Gearman < Formula
|
|||
"--disable-dependency-tracking",
|
||||
"--disable-libdrizzle",
|
||||
"--with-boost=#{Formula["boost"].opt_prefix}",
|
||||
"--with-sqlite3"
|
||||
"--with-sqlite3",
|
||||
]
|
||||
|
||||
if build.with? "cyassl"
|
||||
|
|
|
@ -25,7 +25,7 @@ class GnuTime < Formula
|
|||
args = [
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}",
|
||||
"--info=#{info}"
|
||||
"--info=#{info}",
|
||||
]
|
||||
|
||||
args << "--program-prefix=g" if build.without? "default-names"
|
||||
|
|
|
@ -15,6 +15,6 @@ class GoogleSqlTool < Formula
|
|||
"SQL_SH_DIR=\"#{libexec}\""
|
||||
|
||||
libexec.install ["google_sql.sh", "google_sql.jar"]
|
||||
bin.install_symlink libexec+("google_sql.sh") => "google_sql"
|
||||
bin.install_symlink libexec+"google_sql.sh" => "google_sql"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -32,6 +32,6 @@ class Gotags < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
assert_match (/^Bar.*test.go.*$/), shell_output("#{bin}/gotags #{testpath}/test.go")
|
||||
assert_match /^Bar.*test.go.*$/, shell_output("#{bin}/gotags #{testpath}/test.go")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -23,7 +23,7 @@ class H2 < Formula
|
|||
#
|
||||
# https://github.com/h2database/h2database/issues/218
|
||||
h2_script = File.read("bin/h2.sh").gsub("\r\n", "\n")
|
||||
File.open("bin/h2.sh", "w") {|f| f.write h2_script}
|
||||
File.open("bin/h2.sh", "w") { |f| f.write h2_script }
|
||||
|
||||
# Fix the permissions on the script
|
||||
chmod 0755, "bin/h2.sh"
|
||||
|
|
|
@ -19,6 +19,6 @@ class Ipsumdump < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/ipsumdump", "-c", "-r", "#{test_fixtures("test.pcap")}"
|
||||
system "#{bin}/ipsumdump", "-c", "-r", test_fixtures("test.pcap").to_s
|
||||
end
|
||||
end
|
||||
|
|
|
@ -31,7 +31,8 @@ class JdnssecTools < Formula
|
|||
NfIRTFadqsmuU9F ddz3JqCcYwEpWbReg6DJOeyu+9oBoIQkPxFyLtIXEPGlQzrynKubn04
|
||||
Cx83I6NfzDTraJT3jLHKeW5PVc1ifqKzHz5TXdHHTA7NkJAa0sPcZCoNE 1LpnJI/wcUpRU
|
||||
iuQhoLFeT1E432GuPuZ7y+agElGj0NnBxEgnHrhrnZW UbULpRa/il+Cr5Taj988HqX9Xdm
|
||||
6FjcP4Lbuds/44U7U8du224Q8jTrZ 57Yvj4VDQKc=)")
|
||||
6FjcP4Lbuds/44U7U8du224Q8jTrZ 57Yvj4VDQKc=)"
|
||||
)
|
||||
|
||||
assert_match /D4C3D5552B8679FAEEBC317E5F048B614B2E5F607DC57F1553182D49AB2179F7/,
|
||||
shell_output("#{bin}/jdnssec-dstool -d 2 powerdns.com.key")
|
||||
|
|
|
@ -30,7 +30,7 @@ class JenkinsJobBuilder < Formula
|
|||
|
||||
resource "pbr" do
|
||||
url "https://pypi.python.org/packages/source/p/pbr/pbr-0.11.1.tar.gz"
|
||||
sha256 "701ab2922c29ca6004e3a4aab968728f33224968de9b51e432be2ee3340c2309"
|
||||
sha256 "701ab2922c29ca6004e3a4aab968728f33224968de9b51e432be2ee3340c2309"
|
||||
end
|
||||
|
||||
resource "six" do
|
||||
|
|
|
@ -16,12 +16,12 @@ class Jless < Formula
|
|||
end
|
||||
|
||||
[
|
||||
%w[258 0681485f47237aeee42a34bbf0ab55215933c7713d1be80ac202a31c7a6fdc31],
|
||||
%w[258-259 845bb97f407727febd4ee4014618715884bf393d1531089e18faf4e895e19cec],
|
||||
%w[259-260 e81a5de1fdc276cf0f189c674f37459cf1a7314ac1b804c077e23c519df87ec8],
|
||||
%w[260-261 b595378ae65a5a7256df3b6279d755d6fdce66ab6ea0bba4f51eeb9ee0307c03],
|
||||
%w[261-262 e7249de419acc3b8c4a11bed376d778711fd031887d0df0624d62a6d07356842],
|
||||
%w[262.ext03 82fb77f21ea1f3281224fcbfad073aeab12fb40d6623c9b40698be952401f821]
|
||||
%w[258 0681485f47237aeee42a34bbf0ab55215933c7713d1be80ac202a31c7a6fdc31],
|
||||
%w[258-259 845bb97f407727febd4ee4014618715884bf393d1531089e18faf4e895e19cec],
|
||||
%w[259-260 e81a5de1fdc276cf0f189c674f37459cf1a7314ac1b804c077e23c519df87ec8],
|
||||
%w[260-261 b595378ae65a5a7256df3b6279d755d6fdce66ab6ea0bba4f51eeb9ee0307c03],
|
||||
%w[261-262 e7249de419acc3b8c4a11bed376d778711fd031887d0df0624d62a6d07356842],
|
||||
%w[262.ext03 82fb77f21ea1f3281224fcbfad073aeab12fb40d6623c9b40698be952401f821],
|
||||
].each do |name, sha|
|
||||
patch do
|
||||
url "https://ftp.netbsd.org/pub/pkgsrc/distfiles/less-382-iso#{name}.patch.gz"
|
||||
|
|
|
@ -2,8 +2,8 @@ class LSmash < Formula
|
|||
desc "Tool for working with MP4 files"
|
||||
homepage "https://l-smash.github.io/l-smash/"
|
||||
url "https://github.com/l-smash/l-smash.git", :shallow => false,
|
||||
:tag => "v2.9.1",
|
||||
:revision => "4cea08d264933634db5bc06da9d8d88fb5ddae07"
|
||||
:tag => "v2.9.1",
|
||||
:revision => "4cea08d264933634db5bc06da9d8d88fb5ddae07"
|
||||
head "https://github.com/l-smash/l-smash.git"
|
||||
|
||||
bottle do
|
||||
|
|
|
@ -18,7 +18,7 @@ class Lesspipe < Formula
|
|||
|
||||
def install
|
||||
if build.with? "syntax-highlighting"
|
||||
inreplace "configure", %q($ifsyntax = "\L$ifsyntax";), %q($ifsyntax = "\Ly";)
|
||||
inreplace "configure", '$ifsyntax = "\L$ifsyntax";', '$ifsyntax = "\Ly";'
|
||||
end
|
||||
|
||||
system "./configure", "--prefix=#{prefix}", "--yes"
|
||||
|
|
|
@ -29,7 +29,7 @@ class Lhasa < Formula
|
|||
%w[
|
||||
31002d6c68302d0400000004000000f59413532002836255050000865a060001666f6f0
|
||||
50050a4810700511400f5010000666f6f0a00
|
||||
].join
|
||||
].join,
|
||||
].pack("H*")
|
||||
|
||||
pipe_output("#{bin}/lha x -", data)
|
||||
|
|
|
@ -27,7 +27,7 @@ class Libetonyek < Formula
|
|||
ENV.prepend_path "PATH", Formula["gnu-sed"].opt_libexec/"gnubin"
|
||||
system "./configure", "--prefix=#{libexec}", "--enable-modules=no"
|
||||
system "make"
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
ENV["LANGTAG_CFLAGS"] = "-I#{libexec}/include"
|
||||
|
|
|
@ -47,7 +47,7 @@ class Libgraphqlparser < Formula
|
|||
{ "kind"=>"Name", "loc"=>{ "start"=>3, "end"=>7 }, "value"=>"user" },
|
||||
"arguments"=>nil,
|
||||
"directives"=>nil,
|
||||
"selectionSet"=>nil, }], }, }], }
|
||||
"selectionSet"=>nil }] } }] }
|
||||
|
||||
test_ast = Utils::JSON.load pipe_output("#{libexec}/dump_json_ast", sample_query)
|
||||
assert_equal sample_ast, test_ast
|
||||
|
|
|
@ -37,7 +37,7 @@ class Libgxps < Formula
|
|||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--enable-man",
|
||||
"--prefix=#{prefix}"
|
||||
"--prefix=#{prefix}",
|
||||
]
|
||||
|
||||
args << "--without-libjpeg" if build.without? "libjpeg"
|
||||
|
@ -56,7 +56,7 @@ class Libgxps < Formula
|
|||
test do
|
||||
mkdir_p [
|
||||
(testpath/"Documents/1/Pages/_rels/"),
|
||||
(testpath/"_rels/")
|
||||
(testpath/"_rels/"),
|
||||
]
|
||||
|
||||
(testpath/"FixedDocumentSequence.fdseq").write <<-EOS.undent
|
||||
|
@ -80,7 +80,7 @@ class Libgxps < Formula
|
|||
[
|
||||
"_rels/FixedDocumentSequence.fdseq.rels",
|
||||
"Documents/1/_rels/FixedDocument.fdoc.rels",
|
||||
"Documents/1/Pages/_rels/1.fpage.rels"
|
||||
"Documents/1/Pages/_rels/1.fpage.rels",
|
||||
].each do |f|
|
||||
(testpath/f).write <<-EOS.undent
|
||||
<Relationships />
|
||||
|
|
|
@ -28,7 +28,7 @@ class Libhttpserver < Formula
|
|||
args = [
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
"--prefix=#{prefix}",
|
||||
]
|
||||
|
||||
system "./bootstrap"
|
||||
|
|
|
@ -18,7 +18,7 @@ class Libid3tag < Formula
|
|||
"utf16.patchlibid3tag-0.15.1b-utf16" => "487d0c531f3653f8e754d720729cf1cec1bce6e897b845fa61adaaf2668d1568",
|
||||
"unknown-encoding" => "8b695c9c05e3885655b2e798326b804011615bc6c831cd55cdbacc456a6b9494",
|
||||
"compat" => "88f486c3d263a4dd5bb556232dcfe2fba175b5124bcdd72aa6c30f562fc87d53",
|
||||
"file-write" => "eff855cabd8a51866a29246a1b257da64f46aab72d4b8e163e2a4c0d15165bf1"
|
||||
"file-write" => "eff855cabd8a51866a29246a1b257da64f46aab72d4b8e163e2a4c0d15165bf1",
|
||||
}.each do |name, sha|
|
||||
patch do
|
||||
url "http://mirror.ovh.net/gentoo-portage/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-#{name}.patch"
|
||||
|
@ -30,7 +30,7 @@ class Libid3tag < Formula
|
|||
{
|
||||
"64bit-long" => "5f8b3d3419addf90977832b0a6e563acc2c8e243bb826ebb6d0ec573ec122e1b",
|
||||
"fix_overflow" => "43ea3e0b324fb25802dae6410564c947ce1982243c781ef54b023f060c3b0ac4",
|
||||
"tag" => "ca7262ddad158ab0be804429d705f8c6a1bb120371dec593323fa4876c1b277f"
|
||||
"tag" => "ca7262ddad158ab0be804429d705f8c6a1bb120371dec593323fa4876c1b277f",
|
||||
}.each do |name, sha|
|
||||
patch :p0 do
|
||||
url "http://mirror.ovh.net/gentoo-portage/media-libs/libid3tag/files/0.15.1b/libid3tag-0.15.1b-#{name}.patch"
|
||||
|
|
|
@ -54,7 +54,7 @@ class Liblwgeom < Formula
|
|||
"--without-libiconv-prefix",
|
||||
"--without-libintl-prefix",
|
||||
"--without-raster", # this ensures gdal is not required
|
||||
"--without-topology"
|
||||
"--without-topology",
|
||||
]
|
||||
|
||||
if build.head?
|
||||
|
|
|
@ -22,4 +22,3 @@ class Libmaa < Formula
|
|||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ class Librevenge < Formula
|
|||
depends_on "pkg-config" => :build
|
||||
depends_on "boost"
|
||||
|
||||
|
||||
def install
|
||||
system "./configure", "--without-docs",
|
||||
"--disable-dependency-tracking",
|
||||
|
|
|
@ -26,8 +26,7 @@ class Libxmlsec1 < Formula
|
|||
args = ["--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--disable-crypto-dl",
|
||||
"--disable-apps-crypto-dl"
|
||||
]
|
||||
"--disable-apps-crypto-dl"]
|
||||
|
||||
args << "--with-openssl=#{Formula["openssl"].opt_prefix}" if build.with? "openssl"
|
||||
args << "--with-libxml=#{Formula["libxml2"].opt_prefix}" if build.with? "libxml2"
|
||||
|
|
|
@ -19,7 +19,7 @@ class Lightning < Formula
|
|||
args = [
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
"--prefix=#{prefix}",
|
||||
]
|
||||
args << "--disable-disassembler" if build.without? "binutils"
|
||||
|
||||
|
|
|
@ -70,8 +70,7 @@ class Mapnik < Formula
|
|||
"FREETYPE_CONFIG=#{freetype}/bin/freetype-config",
|
||||
"NIK2IMG=False",
|
||||
"CPP_TESTS=False", # too long to compile to be worth it
|
||||
"INPUT_PLUGINS=all",
|
||||
]
|
||||
"INPUT_PLUGINS=all"]
|
||||
|
||||
if build.with? "cairo"
|
||||
args << "CAIRO=True" # cairo paths will come from pkg-config
|
||||
|
|
|
@ -25,6 +25,6 @@ class Mawk < Formula
|
|||
test do
|
||||
version=`mawk '/version/ { print $2 }' #{prefix}/README`
|
||||
assert_equal 0, $?.exitstatus
|
||||
assert_equal version, "#{version}"
|
||||
assert_equal version, version.to_s
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,7 +22,8 @@ class Modules < Formula
|
|||
--prefix=#{prefix}
|
||||
--datarootdir=#{share}
|
||||
--disable-versioning
|
||||
CPPFLAGS=-DUSE_INTERP_ERRORLINE]
|
||||
CPPFLAGS=-DUSE_INTERP_ERRORLINE
|
||||
]
|
||||
args << "--without-x" if build.without? "x11"
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
|
|
|
@ -17,4 +17,3 @@ class Mp3gain < Formula
|
|||
bin.install "mp3gain"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -47,9 +47,9 @@ class Nailgun < Formula
|
|||
def install
|
||||
system "make", "install", "CC=#{ENV.cc}", "PREFIX=#{prefix}", "CFLAGS=#{ENV.cflags}"
|
||||
if build.head?
|
||||
require 'rexml/document'
|
||||
require "rexml/document"
|
||||
pom_xml = REXML::Document.new(File.new("pom.xml"))
|
||||
jar_version = REXML::XPath.first(pom_xml, "string(/pom:project/pom:version)", "pom" => "http://maven.apache.org/POM/4.0.0")
|
||||
jar_version = REXML::XPath.first(pom_xml, "string(/pom:project/pom:version)", "pom" => "https://maven.apache.org/POM/4.0.0")
|
||||
system "mvn", "clean", "install"
|
||||
libexec.install Dir["nailgun-server/target/*.jar"]
|
||||
else
|
||||
|
@ -68,4 +68,3 @@ class Nailgun < Formula
|
|||
true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Ne < Formula
|
|||
ENV["TERM"] = "xterm"
|
||||
(testpath/"test.txt").write("This is a test document.\n")
|
||||
(testpath/"test_ne").write("GotoLine 2\nInsertString line 2\nExit\n")
|
||||
system "script", "-q", "/dev/null", "#{bin}/ne", "--macro", "#{(testpath/"test_ne")}", "#{(testpath/"test.txt")}"
|
||||
system "script", "-q", "/dev/null", "#{bin}/ne", "--macro", ((testpath/"test_ne")).to_s, ((testpath/"test.txt")).to_s
|
||||
assert_equal "This is a test document.\nline 2", File.read("#{testpath}/test.txt")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -65,7 +65,7 @@ class Netpbm < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
system ("#{bin}/pngtopam #{test_fixtures("test.png")} -alphapam >> test.pam")
|
||||
system "#{bin}/pngtopam #{test_fixtures("test.png")} -alphapam >> test.pam"
|
||||
system "#{bin}/pamdice", "test.pam", "-outstem", "#{testpath}/testing"
|
||||
assert File.exist?("testing_0_0.")
|
||||
end
|
||||
|
|
|
@ -79,11 +79,10 @@ class Openssl < Formula
|
|||
system "make"
|
||||
system "make", "test" if build.with?("test")
|
||||
|
||||
if build.universal?
|
||||
cp "include/openssl/opensslconf.h", dir
|
||||
cp Dir["*.?.?.?.dylib", "*.a", "apps/openssl"], dir
|
||||
cp Dir["engines/**/*.dylib"], "#{dir}/engines"
|
||||
end
|
||||
next unless build.universal?
|
||||
cp "include/openssl/opensslconf.h", dir
|
||||
cp Dir["*.?.?.?.dylib", "*.a", "apps/openssl"], dir
|
||||
cp Dir["engines/**/*.dylib"], "#{dir}/engines"
|
||||
end
|
||||
|
||||
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
|
||||
|
|
|
@ -28,7 +28,7 @@ class Osm2pgsql < Formula
|
|||
"--with-proj=#{Formula["proj"].opt_prefix}",
|
||||
"--with-boost=#{Formula["boost"].opt_prefix}",
|
||||
"--with-zlib=/usr",
|
||||
"--with-bzip2=/usr"
|
||||
"--with-bzip2=/usr",
|
||||
]
|
||||
puts args
|
||||
if build.with? "protobuf-c"
|
||||
|
|
|
@ -327,7 +327,7 @@ class Pgloader < Formula
|
|||
postgres_command = [
|
||||
"postgres",
|
||||
"--listen_addresses=",
|
||||
"--unix_socket_directories=#{socket_dir}"
|
||||
"--unix_socket_directories=#{socket_dir}",
|
||||
]
|
||||
|
||||
IO.popen(postgres_command * " ") do |postgres|
|
||||
|
|
|
@ -27,6 +27,6 @@ class Rapidjson < Formula
|
|||
|
||||
test do
|
||||
system ENV.cxx, "#{share}/doc/RapidJSON/examples/capitalize/capitalize.cpp", "-o", "capitalize"
|
||||
assert_equal '{"A":"B"}', pipe_output("./capitalize", '{"a":"b"}')
|
||||
assert_equal '{"A":"B"}', pipe_output("./capitalize", '{"a":"b"}')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -36,7 +36,7 @@ class Renameutils < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.txt").write ("Hello World!")
|
||||
(testpath/"test.txt").write "Hello World!"
|
||||
pipe_output("#{bin}/icp test.txt", ".2\n")
|
||||
assert_equal File.read("test.txt"), File.read("test.txt.2")
|
||||
end
|
||||
|
|
|
@ -28,6 +28,6 @@ class Rtf2latex2e < Formula
|
|||
}
|
||||
EOF
|
||||
system "#{bin}/rtf2latex2e", "-n", "test.rtf"
|
||||
system %q(cat test.tex | grep '\textbf{hello} world')
|
||||
system "cat test.tex | grep '\textbf{hello} world'"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ class Shiboken < Formula
|
|||
# Building the tests also runs them.
|
||||
args << "-DBUILD_TESTS=ON"
|
||||
if python == "python3" && Formula["python3"].installed?
|
||||
python_framework = (Formula["python3"].opt_prefix)/"Frameworks/Python.framework/Versions/#{version}"
|
||||
python_framework = Formula["python3"].opt_prefix/"Frameworks/Python.framework/Versions/#{version}"
|
||||
args << "-DPYTHON3_INCLUDE_DIR:PATH=#{python_framework}/Headers"
|
||||
args << "-DPYTHON3_LIBRARY:FILEPATH=#{python_framework}/lib/libpython#{version}.dylib"
|
||||
end
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
require "formula"
|
||||
|
||||
class Sispmctl < Formula
|
||||
desc "Control Gembird SIS-PM programmable power outlet strips"
|
||||
class Sispmctl < Formula
|
||||
desc "Control Gembird SIS-PM programmable power outlet strips"
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "a83e61cd8748b55173148cd71ee71852c257502a633674c01d78c473188ae4c3" => :el_capitan
|
||||
|
@ -9,15 +7,15 @@
|
|||
sha256 "5ce113e27ad2d3cfeeae7317a6614a45659288107910dc63fef605342f0e7d54" => :mavericks
|
||||
end
|
||||
|
||||
homepage "http://sispmctl.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/sispmctl/sispmctl/sispmctl-3.1/sispmctl-3.1.tar.gz"
|
||||
sha256 "e9a99cc81ef0a93f3484e5093efd14d93cc967221fcd22c151f0bea32eb91da7"
|
||||
homepage "http://sispmctl.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/sispmctl/sispmctl/sispmctl-3.1/sispmctl-3.1.tar.gz"
|
||||
sha256 "e9a99cc81ef0a93f3484e5093efd14d93cc967221fcd22c151f0bea32eb91da7"
|
||||
|
||||
depends_on "libusb-compat"
|
||||
depends_on "libusb-compat"
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
def install
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,7 +21,7 @@ class Soci < Formula
|
|||
option "with-pg", "Enable PostgreSQL support."
|
||||
|
||||
def translate(a)
|
||||
if a == "pg" then "postgresql" else a end
|
||||
a == "pg" ? "postgresql" : a
|
||||
end
|
||||
|
||||
fails_with :clang do
|
||||
|
|
|
@ -29,8 +29,7 @@ class Timidity < Formula
|
|||
args = ["--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}"
|
||||
]
|
||||
"--mandir=#{man}"]
|
||||
|
||||
formats = []
|
||||
formats << "darwin" if build.with? "darwin"
|
||||
|
|
|
@ -15,7 +15,6 @@ class Uade < Formula
|
|||
sha256 "807b7f5cb5a83348c778003d781d715cec73d37da537e0b11b8138c93aad4938" => :mavericks
|
||||
end
|
||||
|
||||
|
||||
head "git://zakalwe.fi/uade"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
|
|
|
@ -56,4 +56,3 @@ class Uptimed < Formula
|
|||
system "#{bin}/uprecords"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ class VampPluginSdk < Formula
|
|||
sha256 "86a5d017be8bccf01f43b6e99fb2f441bde4dc6edff36837d58467926563e4f7" => :mavericks
|
||||
end
|
||||
|
||||
|
||||
depends_on "automake" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libsndfile"
|
||||
|
|
|
@ -26,15 +26,15 @@ class Veraxx < Formula
|
|||
sha256 "134732acaf3a6e7eba85988118d943f0fa6b7f0850f65131fff89823ad30ff1d"
|
||||
end
|
||||
|
||||
resource "lua" do
|
||||
url "https://github.com/LuaDist/lua/archive/5.2.3.tar.gz"
|
||||
sha256 "c8aa2c74e8f31861cea8f030ece6b6cb18974477bd1e9e1db4c01aee8f18f5b6"
|
||||
end
|
||||
resource "lua" do
|
||||
url "https://github.com/LuaDist/lua/archive/5.2.3.tar.gz"
|
||||
sha256 "c8aa2c74e8f31861cea8f030ece6b6cb18974477bd1e9e1db4c01aee8f18f5b6"
|
||||
end
|
||||
|
||||
resource "luabind" do
|
||||
url "https://github.com/verateam/luabind/archive/vera-1.3.0.tar.gz"
|
||||
sha256 "7d93908b7d978e44ebe5dfad6624e6daa033f284a5f24013f37cac162a18f71a"
|
||||
end
|
||||
resource "luabind" do
|
||||
url "https://github.com/verateam/luabind/archive/vera-1.3.0.tar.gz"
|
||||
sha256 "7d93908b7d978e44ebe5dfad6624e6daa033f284a5f24013f37cac162a18f71a"
|
||||
end
|
||||
|
||||
def install
|
||||
resource("boost").stage do
|
||||
|
|
|
@ -21,4 +21,3 @@ class Xmltoman < Formula
|
|||
(share+"xmltoman").install %w[xmltoman.xsl xmltoman.dtd xmltoman.css]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue