Permalink
Browse files

Removed config.ios? and config.osx?.

  • Loading branch information...
fabiopelosin committed Aug 6, 2012
1 parent 7ef0159 commit ddda7566d193fe0e5fa1c419f5b5239ef964f263
Showing with 31 additions and 50 deletions.
  1. +14 −19 ParseKit/0.0.1/ParseKit.podspec
  2. +14 −19 ParseKit/0.0.2/ParseKit.podspec
  3. +1 −4 cocos2d/1.1.rc0/cocos2d.podspec
  4. +2 −8 upnpx/1.2.4/upnpx.podspec
@@ -7,31 +7,26 @@ Pod::Spec.new do |s|
s.author = { 'Todd Ditchendorf' => 'todd.ditchendorf@gmail.com' }
s.source = { :git => 'https://github.com/itod/parsekit.git', :commit => 'b1f7fc39c2b8bd3b87a02183d86f64aa4852b5b1'}
-
- s.description = %{
- ParseKit is a Mac OS X Framework written by Todd Ditchendorf in
- Objective-C 2.0 and released under the Apache Open Source License
- Version 2.0. ParseKit is suitable for use on Mac OS X Leopard,
- Snow Leopard or iOS. ParseKit is an Objective-C implementation
- of the tools described in Building Parsers with Java by Steven
- John Metsker.
- ParseKit includes additional features beyond the
- designs from the book and also some changes to match common
- Cocoa/Objective-C conventions. These changes are relatively superficial,
- however, and Metsker’s book is the best documentation available
+ s.description = %{
+ ParseKit is a Mac OS X Framework written by Todd Ditchendorf in
+ Objective-C 2.0 and released under the Apache Open Source License
+ Version 2.0. ParseKit is suitable for use on Mac OS X Leopard,
+ Snow Leopard or iOS. ParseKit is an Objective-C implementation
+ of the tools described in Building Parsers with Java by Steven
+ John Metsker.
+
+ ParseKit includes additional features beyond the
+ designs from the book and also some changes to match common
+ Cocoa/Objective-C conventions. These changes are relatively superficial,
+ however, and Metsker’s book is the best documentation available
for ParseKit.
}
s.source_files = 'include/**/*.{h,m}', 'src/**/*.{h,m}'
-
-
- if config.ios?
- s.frameworks = 'Foundation', 'CoreGraphics'
- else
- s.framework = 'Foundation'
- end
+ s.ios.frameworks = 'Foundation', 'CoreGraphics'
+ s.osx.framework = 'Foundation'
s.library = 'icucore'
@@ -7,31 +7,26 @@ Pod::Spec.new do |s|
s.author = { 'Todd Ditchendorf' => 'todd.ditchendorf@gmail.com' }
s.source = { :svn => 'http://parsekit.googlecode.com/svn/trunk/', :revision => '74'}
-
- s.description = %{
- ParseKit is a Mac OS X Framework written by Todd Ditchendorf in
- Objective-C 2.0 and released under the Apache Open Source License
- Version 2.0. ParseKit is suitable for use on Mac OS X Leopard,
- Snow Leopard or iOS. ParseKit is an Objective-C implementation
- of the tools described in Building Parsers with Java by Steven
- John Metsker.
- ParseKit includes additional features beyond the
- designs from the book and also some changes to match common
- Cocoa/Objective-C conventions. These changes are relatively superficial,
- however, and Metsker’s book is the best documentation available
+ s.description = %{
+ ParseKit is a Mac OS X Framework written by Todd Ditchendorf in
+ Objective-C 2.0 and released under the Apache Open Source License
+ Version 2.0. ParseKit is suitable for use on Mac OS X Leopard,
+ Snow Leopard or iOS. ParseKit is an Objective-C implementation
+ of the tools described in Building Parsers with Java by Steven
+ John Metsker.
+
+ ParseKit includes additional features beyond the
+ designs from the book and also some changes to match common
+ Cocoa/Objective-C conventions. These changes are relatively superficial,
+ however, and Metsker’s book is the best documentation available
for ParseKit.
}
s.source_files = 'include/**/*.{h,m}', 'src/**/*.{h,m}'
-
-
- if config.ios?
- s.frameworks = 'Foundation', 'CoreGraphics'
- else
- s.framework = 'Foundation'
- end
+ s.ios.frameworks = 'Foundation', 'CoreGraphics'
+ s.osx.framework = 'Foundation'
s.library = 'icucore'
@@ -17,8 +17,5 @@ Pod::Spec.new do |s|
def s.copy_header_mapping(from)
from.relative_path_from(Pathname.new('cocos2d'))
end
-
- if config.ios?
- s.dependency 'FontLabel'
- end
+ s.ios.dependency 'FontLabel'
end
View
@@ -11,14 +11,8 @@ Pod::Spec.new do |s|
'The Current implementation has support for control point/client only.'
files = FileList['src/{api,common,eventserver,ssdp,upnp}/*.{h,m,mm,c,cpp}']
- if config.ios?
- files.include('src/port/ios/*.{h,m}')
- else
- files.include('src/port/macos/*.{h.m}')
- end
- s.source_files = files
-
-
+ s.ios.source_files = files.dup.include('src/port/ios/*.{h,m}')
+ s.osx.source_files = files.dup.include('src/port/macos/*.{h.m}')
s.xcconfig = { 'OTHER_LDFLAGS' => '-lstdc++' }
end

0 comments on commit ddda756

Please sign in to comment.