summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-03-22 14:09:12 +0900
committerNobuyoshi Nakada <[email protected]>2024-03-22 14:09:12 +0900
commitaf88ca4c076cde9a23ee68281994e1b443cf4e9b ()
treef156c2cbbb9055fcdab96a6a5d7c40d8f2583eb0 /ext/extmk.rb
parent235aa7ad63d8cf77043a2f62f3c3e30fd6af6c05 (diff)
Match `--with/--without` options against gem names
The simple names in `default_exclude_exts` do not match extension paths under gems. Extract each gem name from the gemspec file at the top level of each gem directory. For example, if `ext` is `syslog-0.1.2/ext/syslog/`, find out `syslog-0.1.2/syslog.gemspec` and take the base name `syslog` without the suffix `.gemspec`.
-rwxr-xr-xext/extmk.rb6
1 files changed, 6 insertions, 0 deletions
@@ -517,6 +517,12 @@ cond = proc {|ext, *|
incl, excl = Dir.glob("#{e}/**/extconf.rb", base: "#$top_srcdir/#{ext_prefix}").collect {|d|
File.dirname(d)
}.partition {|ext|
with_config(ext, &cond)
}
incl.sort!