Permalink
Browse files

Added DTCoreText 1.0.2 podspec

  • Loading branch information...
1 parent 3ee6fa1 commit 3f04ae6ebc86b759f4a8e466bf042115819db262 @odrobnik odrobnik committed Sep 21, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 DTCoreText/1.0.2/DTCoreText.podspec
@@ -0,0 +1,27 @@
+Pod::Spec.new do |spec|
+ spec.name = 'DTCoreText'
+ spec.version = '1.0.2'
+ spec.platform = :ios
+ spec.license = 'BSD'
+ spec.source = { :git => 'https://github.com/Cocoanetics/DTCoreText.git', :tag => '1.0.2' }
+ spec.source_files = 'Core/Source/*.{h,m,c}'
+ spec.clean_paths = 'Core/Test/', 'Core/DTCoreText-Info.plist', 'Core/DTCoreText-Prefix.pch', 'DTCoreText.xcodeproj/', 'Demo/', '.gitignore'
+ spec.frameworks = 'MediaPlayer', 'QuartzCore', 'CoreText', 'CoreGraphics', 'ImageIO'
+ spec.requires_arc = true
+ spec.homepage = 'https://github.com/Cocoanetics/DTCoreText'
+ spec.summary = 'Methods to allow using HTML code with CoreText.'
+ spec.author = { 'Oliver Drobnik' => 'oliver@drobnik.com' }
+ spec.library = 'xml2'
+ spec.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(SDKROOT)/usr/include/libxml2"' }
+ def spec.post_install(target)
+ prefix_header = config.project_pods_root + target.prefix_header_filename
+ prefix_header.open('a') do |file|
+ file.puts(%{#ifdef __OBJC__\n#import <CoreText/CoreText.h>\n#endif\n#define ALLOW_IPHONE_SPECIAL_CASES 1})
+ end
+ Dir.chdir(config.project_pods_root + 'DTCoreText/Core/Source/') do
+ Dir.glob('*.css') do |css_file|
+ system '/usr/bin/xxd', '-i', css_file, css_file + '.c'
+ end
+ end
+ end
+end

3 comments on commit 3f04ae6

Owner

fabiopelosin replied Sep 21, 2012

@Cocoanetics the podspec at the root of https://github.com/Cocoanetics/DTCoreText outdated, and broke the master repo. Do you mind updating it and pushing the fix?

Contributor

odrobnik replied Sep 21, 2012

Do you mean the clean_paths? I have since removed this line.

Owner

fabiopelosin replied Sep 21, 2012

Sorry, I missed the commit.

Please sign in to comment.