diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/.ruby-version | 2 | ||||
| -rw-r--r-- | docs/Gemfile | 3 | ||||
| -rw-r--r-- | docs/Gemfile.lock | 219 | ||||
| -rw-r--r-- | docs/Homebrew-and-Python.md | 4 | ||||
| -rw-r--r-- | docs/Interesting-Taps-and-Forks.md | 4 | ||||
| -rw-r--r-- | docs/Node-for-Formula-Authors.md | 6 | ||||
| -rw-r--r-- | docs/Python-for-Formula-Authors.md | 14 | 
7 files changed, 236 insertions, 16 deletions
| diff --git a/docs/.ruby-version b/docs/.ruby-version index bec3a35ee..005119baa 100644 --- a/docs/.ruby-version +++ b/docs/.ruby-version @@ -1 +1 @@ -system +2.4.1 diff --git a/docs/Gemfile b/docs/Gemfile index fac2f802d..0c8671cde 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -1,6 +1,3 @@  source "https://rubygems.org"  gem "github-pages", group: :jekyll_plugins - -# Nokogiri >=1.7 requires Ruby >=2.1 -gem "nokogiri", "<1.7" diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock new file mode 100644 index 000000000..b5fc90306 --- /dev/null +++ b/docs/Gemfile.lock @@ -0,0 +1,219 @@ +GEM +  remote: https://rubygems.org/ +  specs: +    activesupport (4.2.8) +      i18n (~> 0.7) +      minitest (~> 5.1) +      thread_safe (~> 0.3, >= 0.3.4) +      tzinfo (~> 1.1) +    addressable (2.5.2) +      public_suffix (>= 2.0.2, < 4.0) +    coffee-script (2.4.1) +      coffee-script-source +      execjs +    coffee-script-source (1.12.2) +    colorator (1.1.0) +    concurrent-ruby (1.0.5) +    ethon (0.11.0) +      ffi (>= 1.3.0) +    execjs (2.7.0) +    faraday (0.13.1) +      multipart-post (>= 1.2, < 3) +    ffi (1.9.18) +    forwardable-extended (2.6.0) +    gemoji (3.0.0) +    github-pages (158) +      activesupport (= 4.2.8) +      github-pages-health-check (= 1.3.5) +      jekyll (= 3.5.2) +      jekyll-avatar (= 0.4.2) +      jekyll-coffeescript (= 1.0.1) +      jekyll-default-layout (= 0.1.4) +      jekyll-feed (= 0.9.2) +      jekyll-gist (= 1.4.1) +      jekyll-github-metadata (= 2.9.1) +      jekyll-mentions (= 1.2.0) +      jekyll-optional-front-matter (= 0.2.0) +      jekyll-paginate (= 1.1.0) +      jekyll-readme-index (= 0.1.0) +      jekyll-redirect-from (= 0.12.1) +      jekyll-relative-links (= 0.4.1) +      jekyll-sass-converter (= 1.5.0) +      jekyll-seo-tag (= 2.3.0) +      jekyll-sitemap (= 1.0.0) +      jekyll-swiss (= 0.4.0) +      jekyll-theme-architect (= 0.1.0) +      jekyll-theme-cayman (= 0.1.0) +      jekyll-theme-dinky (= 0.1.0) +      jekyll-theme-hacker (= 0.1.0) +      jekyll-theme-leap-day (= 0.1.0) +      jekyll-theme-merlot (= 0.1.0) +      jekyll-theme-midnight (= 0.1.0) +      jekyll-theme-minimal (= 0.1.0) +      jekyll-theme-modernist (= 0.1.0) +      jekyll-theme-primer (= 0.5.2) +      jekyll-theme-slate (= 0.1.0) +      jekyll-theme-tactile (= 0.1.0) +      jekyll-theme-time-machine (= 0.1.0) +      jekyll-titles-from-headings (= 0.4.0) +      jemoji (= 0.8.0) +      kramdown (= 1.13.2) +      liquid (= 4.0.0) +      listen (= 3.0.6) +      mercenary (~> 0.3) +      minima (= 2.1.1) +      rouge (= 1.11.1) +      terminal-table (~> 1.4) +    github-pages-health-check (1.3.5) +      addressable (~> 2.3) +      net-dns (~> 0.8) +      octokit (~> 4.0) +      public_suffix (~> 2.0) +      typhoeus (~> 0.7) +    html-pipeline (2.7.1) +      activesupport (>= 2) +      nokogiri (>= 1.4) +    i18n (0.9.1) +      concurrent-ruby (~> 1.0) +    jekyll (3.5.2) +      addressable (~> 2.4) +      colorator (~> 1.0) +      jekyll-sass-converter (~> 1.0) +      jekyll-watch (~> 1.1) +      kramdown (~> 1.3) +      liquid (~> 4.0) +      mercenary (~> 0.3.3) +      pathutil (~> 0.9) +      rouge (~> 1.7) +      safe_yaml (~> 1.0) +    jekyll-avatar (0.4.2) +      jekyll (~> 3.0) +    jekyll-coffeescript (1.0.1) +      coffee-script (~> 2.2) +    jekyll-default-layout (0.1.4) +      jekyll (~> 3.0) +    jekyll-feed (0.9.2) +      jekyll (~> 3.3) +    jekyll-gist (1.4.1) +      octokit (~> 4.2) +    jekyll-github-metadata (2.9.1) +      jekyll (~> 3.1) +      octokit (~> 4.0, != 4.4.0) +    jekyll-mentions (1.2.0) +      activesupport (~> 4.0) +      html-pipeline (~> 2.3) +      jekyll (~> 3.0) +    jekyll-optional-front-matter (0.2.0) +      jekyll (~> 3.0) +    jekyll-paginate (1.1.0) +    jekyll-readme-index (0.1.0) +      jekyll (~> 3.0) +    jekyll-redirect-from (0.12.1) +      jekyll (~> 3.3) +    jekyll-relative-links (0.4.1) +      jekyll (~> 3.3) +    jekyll-sass-converter (1.5.0) +      sass (~> 3.4) +    jekyll-seo-tag (2.3.0) +      jekyll (~> 3.3) +    jekyll-sitemap (1.0.0) +      jekyll (~> 3.3) +    jekyll-swiss (0.4.0) +    jekyll-theme-architect (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-cayman (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-dinky (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-hacker (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-leap-day (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-merlot (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-midnight (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-minimal (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-modernist (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-primer (0.5.2) +      jekyll (~> 3.5) +      jekyll-github-metadata (~> 2.9) +      jekyll-seo-tag (~> 2.2) +    jekyll-theme-slate (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-tactile (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-theme-time-machine (0.1.0) +      jekyll (~> 3.5) +      jekyll-seo-tag (~> 2.0) +    jekyll-titles-from-headings (0.4.0) +      jekyll (~> 3.3) +    jekyll-watch (1.5.1) +      listen (~> 3.0) +    jemoji (0.8.0) +      activesupport (~> 4.0) +      gemoji (~> 3.0) +      html-pipeline (~> 2.2) +      jekyll (>= 3.0) +    kramdown (1.13.2) +    liquid (4.0.0) +    listen (3.0.6) +      rb-fsevent (>= 0.9.3) +      rb-inotify (>= 0.9.7) +    mercenary (0.3.6) +    mini_portile2 (2.3.0) +    minima (2.1.1) +      jekyll (~> 3.3) +    minitest (5.11.1) +    multipart-post (2.0.0) +    net-dns (0.8.0) +    nokogiri (1.8.1) +      mini_portile2 (~> 2.3.0) +    octokit (4.8.0) +      sawyer (~> 0.8.0, >= 0.5.3) +    pathutil (0.16.1) +      forwardable-extended (~> 2.6) +    public_suffix (2.0.5) +    rb-fsevent (0.10.2) +    rb-inotify (0.9.10) +      ffi (>= 0.5.0, < 2) +    rouge (1.11.1) +    safe_yaml (1.0.4) +    sass (3.5.5) +      sass-listen (~> 4.0.0) +    sass-listen (4.0.0) +      rb-fsevent (~> 0.9, >= 0.9.4) +      rb-inotify (~> 0.9, >= 0.9.7) +    sawyer (0.8.1) +      addressable (>= 2.3.5, < 2.6) +      faraday (~> 0.8, < 1.0) +    terminal-table (1.8.0) +      unicode-display_width (~> 1.1, >= 1.1.1) +    thread_safe (0.3.6) +    typhoeus (0.8.0) +      ethon (>= 0.8.0) +    tzinfo (1.2.4) +      thread_safe (~> 0.1) +    unicode-display_width (1.3.0) + +PLATFORMS +  ruby + +DEPENDENCIES +  github-pages + +BUNDLED WITH +   1.16.0 diff --git a/docs/Homebrew-and-Python.md b/docs/Homebrew-and-Python.md index 740e973d2..eb96e5758 100644 --- a/docs/Homebrew-and-Python.md +++ b/docs/Homebrew-and-Python.md @@ -69,7 +69,7 @@ Homebrew builds bindings against the first `python` (and `python-config`) in you  **Warning!** Python may crash (see [Common Issues](Common-Issues.md)) if you `import <module>` from a brewed Python if you ran `brew install <formula_with_python_bindings>` against the system Python. If you decide to switch to the brewed Python, then reinstall all formulae with Python bindings (e.g. `pyside`, `wxwidgets`, `pygtk`, `pygobject`, `opencv`, `vtk` and `boost-python`).  ## Policy for non-brewed Python bindings -These should be installed via `pip install <package>`. To discover, you can use `pip search` or <https://pypi.python.org/pypi>. (**Note:** System Python does not provide `pip`. Follow the instructions at <https://pip.readthedocs.io/en/stable/installing/#install-pip> to install it for your system Python if you would like it.) +These should be installed via `pip install <package>`. To discover, you can use `pip search` or <https://pypi.python.org/pypi>. (**Note:** System Python does not provide `pip`. Follow the [pip documentation](https://pip.readthedocs.io/en/stable/installing/#install-pip) to install it for your system Python if you would like it.)  ## Brewed Python modules  For brewed Python, modules installed with `pip` or `python setup.py install` will be installed to the `$(brew --prefix)/lib/pythonX.Y/site-packages` directory (explained above). Executable Python scripts will be in `$(brew --prefix)/bin`. @@ -89,4 +89,4 @@ Homebrew will still install Python modules into Homebrew's `site-packages` and *  Virtualenv has a `--system-site-packages` switch to allow "global" (i.e. Homebrew's) `site-packages` to be accessible from within the virtualenv.  ## Why is Homebrew's Python being installed as a dependency? -Formulae that depend on the special `:python` target are bottled against the Homebrew Python and require it to be installed. You can avoid installing Homebrew's Python by building these formulae with `--build-from-source`. +Formulae that declare an unconditional dependency on the `"python"` or `"python3"` formulae are bottled against Homebrew's Python 2.7.x or 3.x and require it to be installed. diff --git a/docs/Interesting-Taps-and-Forks.md b/docs/Interesting-Taps-and-Forks.md index 20fe0efde..5115fd9d5 100644 --- a/docs/Interesting-Taps-and-Forks.md +++ b/docs/Interesting-Taps-and-Forks.md @@ -29,6 +29,10 @@ You can be added as a maintainer for one of the Homebrew organization taps and a  *   [osrf/simulation](https://github.com/osrf/homebrew-simulation): Tools for robotics simulation. +*   [brewsci/bio](https://github.com/brewsci/homebrew-bio): Bioinformatics formulae. + +*   [brewsci/science](https://github.com/brewsci/homebrew-science): Software tailored to scientific endeavours. +  ## Interesting forks  *   [mistydemeo/tigerbrew](https://github.com/mistydemeo/tigerbrew): Experimental Tiger PowerPC version diff --git a/docs/Node-for-Formula-Authors.md b/docs/Node-for-Formula-Authors.md index f1a50a8c3..4053706c1 100644 --- a/docs/Node-for-Formula-Authors.md +++ b/docs/Node-for-Formula-Authors.md @@ -34,10 +34,10 @@ If your formula requires being executed with an older Node version you should us  ### Special requirements for native addons -If your Node module is a native addon or has a native addon somewhere in its dependency tree you have to declare an additional dependency. Since the compilation of the native addon results in an invocation of `node-gyp` we need an additional build time dependency on `:python` (because gyp depends on Python 2.7). +If your Node module is a native addon or has a native addon somewhere in its dependency tree you have to declare an additional dependency. Since the compilation of the native addon results in an invocation of `node-gyp` we need an additional build time dependency on `"python"` (because GYP depends on Python 2.7).  ```ruby -depends_on :python => :build +depends_on "python" => :build  ```  Also note that such a formula would only be compatible with the same Node major version it originally was compiled with. This means that we need to revision every formula with a Node native addon with every major version bump of the `node` formula. To make sure we don't overlook your formula on a Node major version bump, write a meaningful test which would fail in such a case (invoked with an ABI-incompatible Node version). @@ -99,7 +99,7 @@ class Foo < Formula    depends_on "node"    # uncomment if there is a native addon inside the dependency tree -  # depends_on :python => :build +  # depends_on "python" => :build    def install      system "npm", "install", *Language::Node.std_npm_install_args(libexec) diff --git a/docs/Python-for-Formula-Authors.md b/docs/Python-for-Formula-Authors.md index 723601afe..a530dbef7 100644 --- a/docs/Python-for-Formula-Authors.md +++ b/docs/Python-for-Formula-Authors.md @@ -19,12 +19,12 @@ Applications should unconditionally bundle all of their Python-language dependen  Applications that are compatible with Python 2 **should** use the Apple-provided system Python in `/usr/bin` on systems that provide Python 2.7. To do this, declare:  ```ruby -depends_on :python if MacOS.version <= :snow_leopard +depends_on "python" if MacOS.version <= :snow_leopard  ``` -No explicit Python dependency is needed on recent OS versions since `/usr/bin` is always in `PATH` for Homebrew formulae; on Leopard and older, the python in `PATH` is used if it's at least version 2.7, or else Homebrew's python is installed. +No explicit Python dependency is needed on recent OS versions since `/usr/bin` is always in `PATH` for Homebrew formulae; on Leopard and older, the `python` in `PATH` is used if it's at least version 2.7, or else Homebrew's Python 2.7.x is installed. -Formulae for apps that require Python 3 **should** declare an unconditional dependency on `:python3`, which will cause the formula to use the first python3 discovered in `PATH` at install time (or install Homebrew's if there isn't one). These apps **must** work with the current Homebrew python3 formula. +Formulae for apps that require Python 3 **should** declare an unconditional dependency on `"python3"`. These apps **must** work with the current Homebrew Python 3.x formula.  ### Installing @@ -66,7 +66,7 @@ This is exactly the same as writing:  ```ruby  def install    # Create a virtualenv in `libexec`. If your app needs Python 3, make sure that -  # `depends_on :python3` is declared, and use `virtualenv_create(libexec, "python3")`. +  # `depends_on "python3"` is declared, and use `virtualenv_create(libexec, "python3")`.    venv = virtualenv_create(libexec)    # Install all of the resources declared on the formula into the virtualenv.    venv.pip_install resources @@ -121,9 +121,9 @@ in case you need to do different things for different resources.  ## Bindings -Build bindings with system Python by default (don't add an option) and they should be usable with any binary-compatible Python. If that isn't the case, it's an upstream bug; [here's some advice for resolving it](http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/). +Build bindings with the system Python by default (don't add an option) and they should be usable with any binary-compatible Python. If that isn't the case, it's an upstream bug; [here's some advice for resolving it](http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/). -To add bindings for Python 3, please add `depends_on :python3 => :optional` and make the bindings conditional on `build.with?("python3")`. +To add bindings for Python 3, please add `depends_on "python3" => :optional` and make the bindings conditional on `build.with?("python3")`.  ### Dependencies @@ -153,7 +153,7 @@ Sometimes we have to `inreplace` a `Makefile` to use our prefix for the Python b  ### Python declarations -Python 2 libraries do not need a `depends_on :python` declaration; they will be built with system Python, but should still be usable with any other Python 2.7. If this is not the case, it is an upstream bug; [here is some advice for resolving it](http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/). Libraries built for Python 3 should include `depends_on :python3`, which will bottle against Homebrew's python3, and use the first python3 discovered in `PATH` at build time when installing from source with `brew install --build-from-source`. If a library supports both Python 2.x and Python 3.x, the `:python3` dependency should be `:optional`. Python 2.x libraries must function when they are installed against either the system Python or Homebrew Python. +Python 2 libraries do not need a `depends_on "python"` declaration; they will be built with the system Python, but should still be usable with any other Python 2.7. If this is not the case, it is an upstream bug; [here is some advice for resolving it](http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/). Libraries built for Python 3 should include `depends_on "python3"`, which will bottle against Homebrew's Python 3.x. If a library supports both Python 2.x and Python 3.x, the `"python3"` dependency should be `:optional`. Python 2.x libraries must function when they are installed against either the system Python or brewed Python.  ### Installing | 
