diff options
author | swills <swills@FreeBSD.org> | 2016-02-02 09:21:21 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2016-02-02 09:21:21 +0800 |
commit | 09d29507edd69b111c4172978457bc34bb8a929a (patch) | |
tree | 3fb94109ce8b10a0157aeca70bbbd90cc8db7819 /textproc | |
parent | c9cf4c5a9faeb0a6f61946dba96f5edd948cf285 (diff) | |
download | freebsd-ports-gnome-09d29507edd69b111c4172978457bc34bb8a929a.tar.gz freebsd-ports-gnome-09d29507edd69b111c4172978457bc34bb8a929a.tar.zst freebsd-ports-gnome-09d29507edd69b111c4172978457bc34bb8a929a.zip |
Remove source and intermediate build output from intalled rubygem- ports
PR: 192949
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/rubygem-nokogiri/files/patch-ext_nokogiri_extconf.rb | 46 | ||||
-rw-r--r-- | textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb | 16 |
2 files changed, 62 insertions, 0 deletions
diff --git a/textproc/rubygem-nokogiri/files/patch-ext_nokogiri_extconf.rb b/textproc/rubygem-nokogiri/files/patch-ext_nokogiri_extconf.rb new file mode 100644 index 000000000000..bc615bd91578 --- /dev/null +++ b/textproc/rubygem-nokogiri/files/patch-ext_nokogiri_extconf.rb @@ -0,0 +1,46 @@ +--- ext/nokogiri/extconf.rb.orig 2015-07-26 20:13:45 UTC ++++ ext/nokogiri/extconf.rb +@@ -584,6 +584,43 @@ if ENV['CPUPROFILE'] + end + end + ++$INSTALLFILES = [ ++ ['html_document.h', '$(archdir)'], ++ ['html_element_description.h', '$(archdir)'], ++ ['html_entity_lookup.h', '$(archdir)'], ++ ['html_sax_parser_context.h', '$(archdir)'], ++ ['html_sax_push_parser.h', '$(archdir)'], ++ ['nokogiri.h', '$(archdir)'], ++ ['xml_attr.h', '$(archdir)'], ++ ['xml_attribute_decl.h', '$(archdir)'], ++ ['xml_cdata.h', '$(archdir)'], ++ ['xml_comment.h', '$(archdir)'], ++ ['xml_document.h', '$(archdir)'], ++ ['xml_document_fragment.h', '$(archdir)'], ++ ['xml_dtd.h', '$(archdir)'], ++ ['xml_element_content.h', '$(archdir)'], ++ ['xml_element_decl.h', '$(archdir)'], ++ ['xml_encoding_handler.h', '$(archdir)'], ++ ['xml_entity_decl.h', '$(archdir)'], ++ ['xml_entity_reference.h', '$(archdir)'], ++ ['xml_io.h', '$(archdir)'], ++ ['xml_libxml2_hacks.h', '$(archdir)'], ++ ['xml_namespace.h', '$(archdir)'], ++ ['xml_node.h', '$(archdir)'], ++ ['xml_node_set.h', '$(archdir)'], ++ ['xml_processing_instruction.h', '$(archdir)'], ++ ['xml_reader.h', '$(archdir)'], ++ ['xml_relax_ng.h', '$(archdir)'], ++ ['xml_sax_parser.h', '$(archdir)'], ++ ['xml_sax_parser_context.h', '$(archdir)'], ++ ['xml_sax_push_parser.h', '$(archdir)'], ++ ['xml_schema.h', '$(archdir)'], ++ ['xml_syntax_error.h', '$(archdir)'], ++ ['xml_text.h', '$(archdir)'], ++ ['xml_xpath_context.h', '$(archdir)'], ++ ['xslt_stylesheet.h', '$(archdir)'], ++] ++ + create_makefile('nokogiri/nokogiri') + + if enable_config('clean', true) diff --git a/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb b/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb new file mode 100644 index 000000000000..65ab7235d9a4 --- /dev/null +++ b/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb @@ -0,0 +1,16 @@ +--- ext/nokogumboc/extconf.rb.orig 2015-07-26 21:04:54 UTC ++++ ext/nokogumboc/extconf.rb +@@ -1,3 +1,4 @@ ++require 'rubygems' + require 'mkmf' + $CFLAGS += " -std=c99" + +@@ -10,7 +11,7 @@ if have_library('xml2', 'xmlNewDoc') + select { |name| name.match(%r{gems/nokogiri-([\d.]+)/lib/nokogiri}) }. + sort_by {|name| name[/nokogiri-([\d.]+)/,1].split('.').map(&:to_i)}.last + if nokogiri_lib +- nokogiri_ext = nokogiri_lib.sub(%r(lib/nokogiri(.rb)?$), 'ext/nokogiri') ++ nokogiri_ext = Gem::Specification.find_by_name('nokogiri').extension_dir + "/nokogiri" + + # if that doesn't work, try workarounds found in Nokogiri's extconf + unless find_header('nokogiri.h', nokogiri_ext) |