Created
April 2, 2012 11:29
-
-
Save yas375/2282812 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pod::Spec.new do |spec| | |
| spec.name = 'DTCoreText' | |
| spec.version = '1.0.0' | |
| spec.platform = :ios | |
| spec.license = 'BSD' | |
| spec.source = { :git => 'https://github.com/Cocoanetics/DTCoreText.git', :commit => '184ef084f8dd2e734016ce10733b5764360e52d8' } | |
| 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' => '[email protected]' } | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment