Skip to content
This repository
tree: 5847a17fc9
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (26 sloc) 1.193 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
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.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
Something went wrong with that request. Please try again.