Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 committed Dec 23, 2015
2 parents fbe6d3a + 316e347 commit 3af49a1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
sudo: false
language: objective-c
os: osx
matrix:
include:
- osx_image: xcode6.4
- osx_image: xcode7
- osx_image: xcode7.1
- osx_image: xcode7.2
before_install:
- brew update; brew update
install:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### homebrew-iwyu v2.1.0 (December 23, 2015) ###

* Installs include-what-you-use 0.5 (based on clang 3.7.0)

* Drops support for Xcode 6; now requires 7.0 or higher

* Removes default OS X (Xcode 6.1) build from Travis

### homebrew-iwyu v2.1.0 (October 15, 2015) ###

* Supports Xcode 6.1 or higher, including 7.0
Expand Down
24 changes: 12 additions & 12 deletions iwyu.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
require "English"
require "formula"

# include-what-you-use needs access to headers included with LLVM 3.5, which
# is only present in Xcode version 6.1 or higher.
class Xcode61 < Requirement
# include-what-you-use needs access to headers included with LLVM 3.7, which
# is only present in Xcode version 7.0 or higher.
class Xcode70 < Requirement
fatal true

satisfy { MacOS::Xcode.version >= "6.1" }
satisfy { MacOS::Xcode.version >= "7.0" }

def message
"Xcode 6.1 or newer is required for this package."
"Xcode 7.0 or newer is required for this package."
end
end

Expand All @@ -18,16 +18,16 @@ def message
# build and install include-what-you-use, symlink it as iwyu, and install a
# Python wrapper to automatically correct includes (fix_include).
class Iwyu < Formula
# iwyu 0.4 based on clang 3.6
CLANG_VERSION = "3.6"
# iwyu 0.5 based on clang 3.7
CLANG_VERSION = "3.7"

version "0.4"
version "0.5"
homepage "http://include-what-you-use.org"
url "http://include-what-you-use.org/downloads/" \
"include-what-you-use-#{version}-x86_64-apple-darwin.tar.gz"
sha256 "41d7434545cb0c55acd9db0b1b66058ffbe88f3c3b79df4e3f649d54aabbbc7b"
sha256 "5d31ca1a7611a6dd40a11387ec34e42bf5aafa1740ed2b3baaf781541df83ad0"

depends_on Xcode61
depends_on Xcode70

def install
# include-what-you-use needs lib and include directories one level
Expand Down Expand Up @@ -59,8 +59,8 @@ def install

iwyu_includes.install_symlink(cpp_includes => "c++")

iwyu_bindir.install("fix_includes.py" => "fix_include")
iwyu_bindir.install("include-what-you-use")
iwyu_bindir.install("bin/fix_includes.py" => "fix_include")
iwyu_bindir.install("bin/include-what-you-use")
iwyu_bindir.install_symlink("include-what-you-use" => "iwyu")

bin.install_symlink Dir["#{iwyu_bindir}/*"]
Expand Down

0 comments on commit 3af49a1

Please sign in to comment.