Browse Source

podspec++, CoreGraphics dependency added.

Marcus Rohrmoser 5 years ago
parent
commit
95b0b9b052
2 changed files with 23 additions and 12 deletions
  1. 19 12
      MROGeometry.podspec
  2. 4 0
      MROGeometry.xcodeproj/project.pbxproj

+ 19 - 12
MROGeometry.podspec

@@ -5,22 +5,29 @@
 # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
 #
 Pod::Spec.new do |s|
-  s.name             = "MROGeometry"
-  s.version          = File.read('VERSION')
-  s.summary          = "C and Objective C math and geometry helpers"
-  s.homepage         = "http://purl.mro.name/ios/MROGeometry"
-  s.license          = 'Human Rights License'
-  s.author           = { "Marcus Rohrmoser" => "mrohrmoser@acm.org" }
-  s.source           = { :git => "https://github.com/mro/MROGeometry.git", :tag => s.version.to_s }
+  s.name              = "MROGeometry"
+  s.version           = File.read('VERSION')
+  s.summary           = "C and Objective C math and geometry helpers"
+  s.description       = <<-DESC
+Some C / Objective-C helpers related to
 
-  s.platform     = :ios, '5.0'
+- [CGPoint](http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html%23//apple_ref/doc/uid/TP30000955-CH2g-C016211),
+- [CGAffineTransform](http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CGAffineTransform/Reference/reference.html%23//apple_ref/doc/c_ref/CGAffineTransform),
+- [CGPath](http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html) and
+- [SVG path](http://www.w3.org/TR/SVG/paths.html).
+                      DESC
+  s.homepage          = "http://purl.mro.name/ios/MROGeometry"
+  s.license           = 'Human Rights License'
+  s.author            = { "Marcus Rohrmoser" => "mrohrmoser@acm.org" }
+  s.source            = { :git => "https://github.com/mro/MROGeometry.git", :tag => s.version.to_s }
+
+  s.platform          = :ios, '5.0'
   s.ios.deployment_target = '5.0'
-  s.requires_arc = true
+  s.requires_arc      = true
 
-  s.source_files = 'MROGeometry/*.{h,m,c}'
+  s.source_files      = 'MROGeometry/*.{h,m,c}'
   s.prefix_header_file = 'MROGeometry/MROGeometry-Prefix.pch'
 
   s.public_header_files = 'MROGeometry/*CG*.h'
-  # s.frameworks = 'SomeFramework', 'AnotherFramework'
-  # s.dependency 'JSONKit', '~> 1.4'
+  s.frameworks      = 'CoreGraphics'
 end

+ 4 - 0
MROGeometry.xcodeproj/project.pbxproj

@@ -30,6 +30,7 @@
 		1627C7CB18BFE26700D0465F /* TrafoParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 1627C7B818BFE26700D0465F /* TrafoParser.m */; };
 		1627C7CC18BFE26700D0465F /* TrafoParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 1627C7B818BFE26700D0465F /* TrafoParser.m */; };
 		1627C7CF18BFE2AB00D0465F /* CGPathWriterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 1627C7CE18BFE2AB00D0465F /* CGPathWriterTest.m */; };
+		16283ACB194B3C4800F8A7A2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16283ACA194B3C4800F8A7A2 /* CoreGraphics.framework */; };
 		16992E8518C0947000701606 /* CGPathWriterTest.PathDataCubicBezierCommands.svg in Resources */ = {isa = PBXBuildFile; fileRef = 16992E8418C0947000701606 /* CGPathWriterTest.PathDataCubicBezierCommands.svg */; };
 /* End PBXBuildFile section */
 
@@ -87,6 +88,7 @@
 		1627C7D418BFEFA600D0465F /* Common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Common.xcconfig; sourceTree = "<group>"; };
 		1627C7D518BFEFA600D0465F /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
 		1627C7D618BFEFA600D0465F /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
+		16283ACA194B3C4800F8A7A2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
 		1675FF721949C21E00175808 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
 		1675FF731949C41400175808 /* VERSION */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VERSION; sourceTree = "<group>"; };
 		16992E8418C0947000701606 /* CGPathWriterTest.PathDataCubicBezierCommands.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = CGPathWriterTest.PathDataCubicBezierCommands.svg; sourceTree = "<group>"; };
@@ -97,6 +99,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
+				16283ACB194B3C4800F8A7A2 /* CoreGraphics.framework in Frameworks */,
 				1627C78218BFE14000D0465F /* Foundation.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
@@ -143,6 +146,7 @@
 		1627C78018BFE14000D0465F /* Frameworks */ = {
 			isa = PBXGroup;
 			children = (
+				16283ACA194B3C4800F8A7A2 /* CoreGraphics.framework */,
 				1627C78118BFE14000D0465F /* Foundation.framework */,
 				1627C78F18BFE14000D0465F /* XCTest.framework */,
 				1627C79218BFE14000D0465F /* UIKit.framework */,