[Fix] Deprecated hooks

This commit is contained in:
Fabio Pelosin
2013-03-20 22:57:58 +01:00
parent 97aa1e37f1
commit 52c26e008f
9 changed files with 50 additions and 61 deletions
+1 -6
View File
@@ -12,6 +12,7 @@ Pod::Spec.new do |s|
s.source = { :svn => 'https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/tags/jsoncpp/0.6.0-rc2/' }
s.source_files = 'dist', 'dist/**/*.{h,cpp}'
s.preserve_paths = "amalgamate.py", "include", "src"
s.header_mappings_dir = 'dist'
def s.pre_install(pod, target_definition)
Dir.chdir(pod.root) do
@@ -29,10 +30,4 @@ Pod::Spec.new do |s|
`perl -pi -e 's/^.+(#\\s*define\\s+JSON_IS_AMALGAMATION)/$1/g' dist/json/json.h`
end
end
def s.copy_header_mapping(from)
# Need this to make sure json.h is copied to json/json.h
# (as it is included from this path)
from.relative_path_from(Pathname.new('dist'))
end
end