Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spec for TwUI 0.5.0 #509

Merged
merged 1 commit into from Sep 15, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions TwUI/0.5/TwUI.podspec
@@ -0,0 +1,39 @@
Pod::Spec.new do |s|
s.name = "TwUI"
s.version = "0.5"
s.summary = "A UI framework for Mac based on Core Animation."
s.description = "TwUI is a hardware accelerated UI framework for Mac, inspired by UIKit. It enables:\n"\
"- GPU accelerated rendering backed by CoreAnimation.\n"\
"- Simple model/view/controller development familiar to iOS developers."
s.homepage = "https://github.com/github/twui"
s.author = { "Twitter, Inc." => "opensource@twitter.com" }
s.license = { :type => 'Apache License, Version 2.0' }
s.source = { :git => "https://github.com/github/twui.git", :tag => "0.5.0" }

s.platform = :osx, '10.6'
s.requires_arc = true

s.frameworks = 'ApplicationServices', 'QuartzCore', 'Cocoa'

s.subspec 'Support' do |ss|
ss.source_files = 'lib/Support'
end

s.subspec 'UIKit' do |ss|
ss.source_files = FileList['lib/UIKit/*.{h,m}'].exclude(/TUIAccessibilityElement/)
ss.dependency 'TwUI/Support'
end

def s.post_install(target_installer)
project = target_installer.project
project.objects.each do |obj|
if obj.isa.to_s == "PBXBuildFile"
fileRef = obj.attributes["fileRef"]
file_name = project.objects[fileRef].pathname.basename.to_s
if ["NSColor+TUIExtensions.m"].include? (file_name)
puts "Removed #{obj.settings.delete('COMPILER_FLAGS')} from #{file_name}"
end
end
end
end
end