view on FreshPorts

Why this port's declared license doesn't verbatim-match SPDX's canonical text for it. The highlighted line (if any) is where the authoritative template comparison first broke down.

MIT no match (?%)

Unable to find the text ' Permission is hereby granted, free of charge, to any person obtaining a copy of ' following a variable rule 'copyright' starting at line #41 column #0 "". Last optional text was not found due to the optional difference: Normal text of license does not match starting at line #1 column #1 "copyright" when comparing to template text "MIT License "

Port's license text

# Copyright (c) 2008-2009 The Rubyists, LLC (effortless systems) <rubyists@rubyists.com>
# Distributed under the terms of the MIT license.
# See the LICENSE file that accompanied this software for the full MIT License text
#
require "pathname"
task :legal do
  license = Pathname("LICENSE")
  license.open("w+") do |f|
    f.puts PROJECT_COPYRIGHT
  end unless license.file? and license.read == PROJECT_COPYRIGHT
  doc = Pathname("doc/LEGAL")
  doc.open("w+") do |f|
    f.puts "LICENSE"
  end unless doc.file?
end

desc "add copyright summary to all .rb files in the distribution"
task :copyright => [:legal] do
  doc = Pathname("doc/LEGAL")
  ignore = doc.readlines.
    select { |line| line.strip!; Pathname(line).file? }.
    map { |file| Pathname(file).expand_path }

  puts "adding copyright summary to files that don't have it currently"
  puts PROJECT_COPYRIGHT_SUMMARY
  puts

  (Pathname.glob('{controller,model,app,lib,test,spec}/**/*{.rb}') + 
   Pathname.glob("Rakefile")).each do |file|
    next if ignore.include? file.expand_path
    lines = file.readlines.map{ |l| l.chomp }
    if lines.first.match(/^# \* \w.*/)
      @f = lines.shift
    end
    unless lines.first(PROJECT_COPYRIGHT_SUMMARY.size) == PROJECT_COPYRIGHT_SUMMARY
      oldlines = file.readlines
      oldlines.shift if @f
      file.open("w+") { |f| f.puts @f if @f;f.puts PROJECT_COPYRIGHT_SUMMARY + oldlines }
    end
  end
end

SPDX canonical text (MIT)

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.