cheatsheet do
    title 'Licenses'
    docset_file_name 'Licenses'
    keyword 'license'
    source_url 'http://cheat.kapeli.com'
    style 'tr {border-bottom-style: solid}'

    category do
        id 'Apache'

        entry do
            notes 'A permissive license that also provides an express grant of patent rights from contributors to users.'
        end


        entry do
            command 'Apache'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Use Trademark: *While this may be implicitly true of all licenses, this license explicitly states that you may NOT use the names, logos, or trademarks of contributors.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n- State Changes: *Indicate significant changes made to the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'GPL'

        entry do
            notes 'GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. There are multiple variants of the GPL, each with different requirements.'
        end


        entry do
            command 'GNU Affero GPL v3.0'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Sublicensing: *You may not grant a sublicense to modify and distribute this software to third parties not included in the license.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n- Network Use is Distribution: *Users who interact with the software via network are given the right to receive a copy of the corresponding source code.*\n- State Changes: *Indicate significant changes made to the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*"
        end


        entry do
            command 'GNU GPL v2.0'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Sublicensing: *You may not grant a sublicense to modify and distribute this software to third parties not included in the license.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n- State Changes: *Indicate significant changes made to the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*"
        end


        entry do
            command 'GNU GPL v3.0'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Sublicensing: *You may not grant a sublicense to modify and distribute this software to third parties not included in the license.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n- State Changes: *Indicate significant changes made to the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*"
        end

    end

    category do
        id 'MIT'

        entry do
            notes 'A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.'
        end


        entry do
            command 'MIT'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'Artistic'

        entry do
            notes 'Heavily favored by the Perl community, the Artistic license requires that modified versions of the software do not prevent users from running the standard version.'
        end


        entry do
            command 'Artistic'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Use Trademark: *While this may be implicitly true of all licenses, this license explicitly states that you may NOT use the names, logos, or trademarks of contributors.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n- State Changes: *Indicate significant changes made to the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'Eclipse'

        entry do
            notes 'This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones.'
        end


        entry do
            command 'Eclipse'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'BSD'

        entry do
            notes 'A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses, removing some language that is no longer necessary.'
        end


        entry do
            command 'Simplified BSD'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end


        entry do
            command 'New BSD'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Use Trademark: *While this may be implicitly true of all licenses, this license explicitly states that you may NOT use the names, logos, or trademarks of contributors.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end


        entry do
            command 'ISC License'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'LGPL'

        entry do
            notes 'Primarily used for software libraries, LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. There are two commonly used versions of the LGPL.'
        end


        entry do
            command 'GNU LGPL v2.1'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- Library usage: *The library may be used within a non-open-source application.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end


        entry do
            command 'GNU LGPL v3.0'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- Library usage: *The library may be used within a non-open-source application.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'Mozilla'

        entry do
            notes 'The Mozilla Public License (MPL 2.0) is maintained by the Mozilla foundation. This license attempts to be a compromise between the permissive BSD license and the reciprocal GPL license.'
        end


        entry do
            command 'Mozilla'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n- Use Trademark: *While this may be implicitly true of all licenses, this license explicitly states that you may NOT use the names, logos, or trademarks of contributors.*\n\n#### Required\n\n- Disclose Source: *Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.*\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Patent Grant: *This license provides an express grant of patent rights from the contributor to the recipient.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    category do
        id 'No License'

        entry do
            notes 'You retain all rights and do not permit distribution, reproduction, or derivative works. You may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, publishing code in a public repository on GitHub requires that you allow others to view and fork your code.'
        end


        entry do
            command 'No License'
            notes "**Forbidden**\n\n- Distribution: *You may not distribute this software.*\n- Modification: *This software may not be modified.*\n- Sublicensing: *You may not grant a sublicense to modify and distribute this software to third parties not included in the license.*\n\n#### Required\n\n- License and copyright notice: *Include a copy of the license and copyright notice with the code.*\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Private Use: *You may use and modify the software without distributing it.*"
        end

    end

    category do
        id 'Public Domain Dedication'

        entry do
            notes "Because copyright is automatic in most countries, the Unlicense is a template to waive copyright interest in software you've written and dedicate it to the public domain. Use the Unlicense to opt out of copyright entirely. It also includes the no-warranty statement from the MIT/X11 license."
        end


        entry do
            command 'CC0 1.0 Universal'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*"
        end


        entry do
            command 'The Unlicense'
            notes "**Forbidden**\n\n- Hold Liable: *Software is provided without warranty and the software author/license owner cannot be held liable for damages.*\n\n#### Required\n\n\n#### Permitted\n\n- Commercial Use: *This software and derivatives may be used for commercial purposes.*\n- Distribution: *You may distribute this software.*\n- Modification: *This software may be modified.*\n- Private Use: *You may use and modify the software without distributing it.*\n- Sublicensing: *You may grant a sublicense to modify and distribute this software to third parties not included in the license.*"
        end

    end

    notes '* Based on [choosealicense.com](http://choosealicense.com).'
end
