From f35fe9891e8b215eacab33dba7a1c3fa00b1e9e1 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Wed, 29 May 2024 09:54:03 -0700 Subject: [PATCH] Drop remnants of rake package:apple support The `package:apple` rake task was used to install a version of CFPropertyList to speed up plist reads/writes. However, that task has been broken since at least commit d988fe7 when the file_mapping.yaml file was deleted: bundle exec rake package:apple rake aborted! Could not load Apple file mappings from 'ext/osx/file_mapping.yaml' Since the `package:apple` rake task hasn't worked since 2021, delete the cfproperty rake task and the "pre_tasks" entry that registers the cfpropertylist task with the packaging gem. --- ext/project_data.yaml | 2 -- tasks/cfpropertylist.rake | 15 --------------- 2 files changed, 17 deletions(-) delete mode 100644 tasks/cfpropertylist.rake diff --git a/ext/project_data.yaml b/ext/project_data.yaml index 91adc895e4d..556d84050d4 100644 --- a/ext/project_data.yaml +++ b/ext/project_data.yaml @@ -6,5 +6,3 @@ gem_rdoc_options: - --main - README.md - --line-numbers -pre_tasks: - 'package:apple': 'cfpropertylist' diff --git a/tasks/cfpropertylist.rake b/tasks/cfpropertylist.rake deleted file mode 100644 index f6372ae46d0..00000000000 --- a/tasks/cfpropertylist.rake +++ /dev/null @@ -1,15 +0,0 @@ -task 'cfpropertylist' do - if defined? Pkg::Config and Pkg::Config.project_root - cfp_version = "2.3.5" - libdir = File.join(Pkg::Config.project_root, "lib") - source = "https://github.com/ckruse/CFPropertyList/archive/cfpropertylist-#{cfp_version}.tar.gz" - target_dir = Pkg::Util::File.mktemp - target = File.join(target_dir, "cfpropertylist") - Pkg::Util::Net.fetch_uri(source, target) - Pkg::Util::File.untar_into(target, target_dir, "--strip-components 1") - mv(Dir.glob("#{File.join(target_dir, "lib")}/cfpropertylist*"), libdir) - mv(Dir.glob("#{target_dir}/{LICENSE,README,THANKS}"), File.join(libdir, "cfpropertylist")) - else - warn "It looks like the packaging tasks have not been loaded. You'll need to `rake package:bootstrap` before using this task" - end -end