-
-
Save ikesyo/6086857 to your computer and use it in GitHub Desktop.
This file contains hidden or 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-RC1" | |
s.summary = "A framework for composing and transforming sequences of values." | |
s.homepage = "https://github.com/blog/1107-reactivecocoa-is-now-open-source" | |
s.author = { "Justin Spahr-Summers" => "[email protected]", "Josh Abernathy" => "[email protected]" } | |
s.source = { :git => "https://github.com/ReactiveCocoa/ReactiveCocoa.git", :tag => "v#{s.version}" } | |
s.license = { :type => 'MIT', :file => 'LICENSE.md' } | |
s.description = "ReactiveCocoa (RAC) is an Objective-C framework for Functional Reactive Programming. It provides APIs for composing and transforming streams of values." | |
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 'no-arc' do |sp| | |
sp.source_files = 'ReactiveCocoaFramework/ReactiveCocoa/RACObjCRuntime.{h,m}' | |
sp.requires_arc = false | |
end | |
s.subspec 'Core' do |sp| | |
sp.dependency 'ReactiveCocoa/no-arc' | |
sp.source_files = 'ReactiveCocoaFramework/ReactiveCocoa/**/*.{h,m}' | |
sp.private_header_files = '**/*Private.h', '**/EXTRuntimeExtensions.h' | |
sp.exclude_files = 'ReactiveCocoaFramework/ReactiveCocoa/RACObjCRuntime.{h,m}' | |
sp.ios.exclude_files = '**/*{AppKit,NSControl,NSText}*' | |
sp.osx.exclude_files = '**/*{UIActionSheet,UIAlertView,UIBarButtonItem,UIButton,UIControl,UIDatePicker,UIGestureRecognizer,UISegmentedControl,UISlider,UIStepper,UISwitch,UIText,UITableView}*' | |
sp.pre_install do |pod, _| | |
pod.source_files.each { |source| | |
contents = source.read | |
if contents.gsub!(%r{\"(EXT\w+|metamacros)\.h}, '"ReactiveCocoa/\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.dependency 'ReactiveCocoa/Core' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment