Homebrew formula (Mac OS)
Alexey Muranov <[email protected]> Wed, 19 Mar 2014 15:24:30 +0100
| Newsgroups | gmane.comp.lang.dylan.gwydion.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
this is just un update on how my adventure with opendylan Homebrew formula ended.
Here is my formula:
https://github.com/alexeymuranov/homebrew/blob/add-opendylan/Library/Formula/opendylan.rb
Please feel free to try it and comment if you are on Mac OS and using Homebrew. It requires Homebrew's 'bdw-gc' to be (re-)installed with '--universal' option.
To be able to use the formula, it is enough to drop this file into your /usr/local/Library/Formula (by default). (After that `brew update` will no longer work, unless you do some Git tricks.)
To install the latest stable version 2013.2, do `brew install opendylan`, to install the HEAD from GitHub, do `brew install opendylan --HEAD`.
This will download the 2013.2 binary and the indicated source, build a new binary from the source using the old binary, install the new binary into Homebrew's Cellar, and discard the old binary and the build directory. (The source and the old binary archives will be kept in Homebrew's cache directory -- see `brew --cache`).
Due to a bug un Open Dylan, this procedure will not give a fully functional distribution, because the symbolic link to dylan-compiler installed by Homebrew into /usr/local/bin will not be able to find all that it needs. A simple workaroung is to add the path to the Cellar binary to PATH environment variable, for example:
export PATH=/usr/local/Cellar/opendylan/2013.2/bin:$PATH
Then everything should work.
------
My pull request to Homebrew ( https://github.com/Homebrew/homebrew/pull/27450 ) has been rejected for now until the following are fixed in Open Dylan:
1. should work normally when started through symlinks in /usr/local/bin,
2. should not require the 'universal' bdw-gc (64-bit build should work),
3. the formula should build in Homebrew's Superenv (see https://github.com/Homebrew/homebrew/wiki/Acceptable-Formulae#building-under-superenv-is-best ) -- currently it does not.
Best regards,
Alexey.