Created
July 30, 2013 11:34
-
-
Save erikprice/6112195 to your computer and use it in GitHub Desktop.
Interim podspec for the `2.0-development` branch of ReactiveCocoa. To use this podspec: 1. Fork the ReactiveCocoa project, clone it locally, and tag the 2.0-development branch as `v2.0-development` (note the leading `v`, it's important).
2. Copy this gist into a file called `ReactiveCocoa.podspec` and place it in the root of your local clone of …
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
Pod::Spec.new do |s| | |
s.name = "ReactiveCocoa" | |
s.version = "2.0-development" | |
s.summary = "A framework for composing and transforming sequences of values." | |
s.homepage = "https://github.com/ReactiveCocoa/ReactiveCocoa" | |
s.author = { "Josh Abernathy" => "josh@github.com" } | |
s.source = { :git => "https://github.com/YOUR_GITHUB_NAME/ReactiveCocoa.git", :tag => "v#{s.version}" } | |
s.license = 'Simplified BSD License' | |
s.description = "ReactiveCocoa offers:\n" \ | |
"1. The ability to compose operations on future data.\n" \ | |
"2. An approach to minimizing state and mutability.\n" \ | |
"3. A declarative way to define behaviors and the relationships between properties.\n" \ | |
"4. A unified, high-level interface for asynchronous operations.\n" \ | |
"5. A lovely API on top of KVO." | |
s.requires_arc = true | |
s.ios.deployment_target = '5.0' | |
s.osx.deployment_target = '10.7' | |
s.compiler_flags = '-DOS_OBJECT_USE_OBJC=0' | |
s.subspec 'Core' do |sp| | |
s.source_files = 'ReactiveCocoaFramework/ReactiveCocoa/**/*.{h,m}' | |
s.exclude_files = 'ReactiveCocoaFramework/ReactiveCocoa/RACObjCRuntime.{h,m}' | |
s.ios.exclude_files = '**/*{NSButton,AppKit,NSText,NSControl}*' | |
s.osx.exclude_files = '**/*{UIBarButtonItem,UIControl,UIGestureRecognizer,UIText,RACEventTrampoline,RACDelegateProxy}*' | |
sp.header_dir = 'ReactiveCocoa' | |
sp.dependency 'JRSwizzle', '~> 1.0' | |
sp.pre_install do |pod, _| | |
pod.source_files.each { |source| | |
contents = source.read | |
if contents.gsub!(%r{\bReactiveCocoa/(?:\w+/)*(EXT\w+|metamacros)\.h\b}, '\1.h') | |
File.open(source, 'w') { |file| file.puts(contents) } | |
end | |
} | |
end | |
end | |
s.subspec 'RACExtensions' do |sp| | |
sp.source_files = 'RACExtensions/*.{h,m}' | |
sp.ios.exclude_files = '**/*{NSTask}*' | |
sp.dependency 'ReactiveCocoa/Core' | |
end | |
s.subspec 'no-arc' do |sp| | |
sp.source_files = 'ReactiveCocoaFramework/ReactiveCocoa/RACObjCRuntime.{h,m}' | |
sp.requires_arc = false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment