Merge pull request #8164 from Rylan12/license-docs-update
docs: add license information
This commit is contained in:
commit
61fbdb9aec
@ -54,6 +54,7 @@ class Foo < Formula
|
||||
homepage ""
|
||||
url "https://example.com/foo-0.1.tar.gz"
|
||||
sha256 "85cc828a96735bdafcf29eb6291ca91bac846579bcef7308536e0c875d6c81d7"
|
||||
license ""
|
||||
|
||||
# depends_on "cmake" => :build
|
||||
|
||||
@ -86,6 +87,20 @@ An SSL/TLS (https) [`homepage`](https://rubydoc.brew.sh/Formula#homepage%3D-clas
|
||||
|
||||
Try to summarise from the [`homepage`](https://rubydoc.brew.sh/Formula#homepage%3D-class_method) what the formula does in the [`desc`](https://rubydoc.brew.sh/Formula#desc%3D-class_method)ription. Note that the [`desc`](https://rubydoc.brew.sh/Formula#desc%3D-class_method)ription is automatically prepended with the formula name.
|
||||
|
||||
### Fill in the `license`
|
||||
|
||||
**We don’t accept new formulae into Homebrew/homebrew-core without a [`license`](https://rubydoc.brew.sh/Formula#license-class_method)!**
|
||||
|
||||
Find the license identifier from the [SPDX License List](https://spdx.org/licenses/). We only accept licenses from this list that are a [Debian Free Software Guidelines license](https://wiki.debian.org/DFSGLicenses).
|
||||
|
||||
If the software is available under multiple licenses, you should list them all in an array:
|
||||
|
||||
```ruby
|
||||
license ["MIT", "GPL-2.0"]
|
||||
```
|
||||
|
||||
Note: only specify multiple licenses if the formula gives the user a choice between the licenses. Formulae that have different licenses for different parts of their software should specify only the more restrictive license. For help determining which license is more restrictive, take a look [https://choosealicense.com](https://choosealicense.com/licenses/) or the [Comparison of free and open-source software licences Wikipedia page](https://en.wikipedia.org/wiki/Comparison_of_free_and_open-source_software_licences).
|
||||
|
||||
### Check the build system
|
||||
|
||||
```sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user