forked from necromant2005/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
class-dump: migrate from core (#145)
- Loading branch information
1 parent
3ebcfc6
commit 5ee280c
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class ClassDump < Formula | ||
desc "Utility for examining the Objective-C segment of Mach-O files" | ||
homepage "http://stevenygard.com/projects/class-dump/" | ||
|
||
stable do | ||
url "https://github.com/nygard/class-dump/archive/3.5.tar.gz" | ||
sha256 "94f5286c657dca02dbed4514b2dbd791b42ecef5122e3945a855caf8d1f65e64" | ||
|
||
# It uses the system OpenSSL and breaks if you try to feed it another. | ||
# Upstream have switched to CommonCrypto but no new release & still problems. | ||
# https://github.com/Homebrew/homebrew/issues/42384 | ||
# https://github.com/nygard/class-dump/pull/58 | ||
# Potential boneyard if not resolved soon - @DomT4 - November 2015. | ||
depends_on MaximumMacOSRequirement => :mavericks | ||
end | ||
|
||
bottle do | ||
cellar :any_skip_relocation | ||
revision 2 | ||
sha256 "1122ce44de336a9d1973fb3f41c860504724711241681e88ab201baf0be8378b" => :mavericks | ||
end | ||
|
||
head do | ||
url "https://github.com/nygard/class-dump.git" | ||
|
||
# Removes the last references to libcrypto. | ||
patch do | ||
url "https://patch-diff.githubusercontent.com/raw/nygard/class-dump/pull/58.diff" | ||
sha256 "50c9af3c534f0803133e1f69ed820b5094b0b3adf0861c95a3488f8399974640" | ||
end | ||
end | ||
|
||
depends_on :macos => :mavericks | ||
depends_on :xcode => :build | ||
|
||
def install | ||
xcodebuild "-configuration", "Release", "SYMROOT=build", "PREFIX=#{prefix}", "ONLY_ACTIVE_ARCH=YES" | ||
bin.install "build/Release/class-dump" | ||
end | ||
end |