Skip to content

Commit

Permalink
rswift 3.3.0
Browse files Browse the repository at this point in the history
Closes #14138.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Jun 1, 2017
1 parent 44d0b8c commit ea29ff6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Formula/rswift.rb
Expand Up @@ -2,8 +2,8 @@ class Rswift < Formula
desc "Get strong typed, autocompleted resources like images, fonts and segues"
homepage "https://github.com/mac-cain13/R.swift"
url "https://github.com/mac-cain13/R.swift.git",
:tag => "v3.2.0",
:revision => "f6890959c056097f51703efde71e38aadbc65515"
:tag => "v3.3.0",
:revision => "d341d73f6009553717d5a0e8d813c21dc9f11e31"

bottle do
cellar :any_skip_relocation
Expand All @@ -14,11 +14,12 @@ class Rswift < Formula
depends_on :xcode => "8.0"

def install
xcodebuild "-configuration", "Release", "-scheme", "rswift", "SYMROOT=symroot", "OBJROOT=objroot"
bin.install "symroot/Release/rswift"
ENV["CC"] = which(ENV.cc)
system "swift", "build", "-c", "release", "-Xswiftc", "-static-stdlib"
bin.install ".build/release/rswift"
end

test do
system "#{bin}/rswift", "-h"
assert_match version.to_s, shell_output("#{bin}/rswift --version")
end
end

0 comments on commit ea29ff6

Please sign in to comment.