


Why Package Authors should use Homebrew.jlĪ common question is why bother with Homebrew formulae and such when a package author could simply compile the. This example garnered from the build.jl file from Nettle.jl package. Then, the Homebrew package will automatically download the requisite bottles for any dependencies you state it can provide. # Wrap in to avoid non-OSX users from erroring out begin using Homebrew Nettle = library_dependency( "nettle ", aliases = ) Simply declare your dependency on Homebrew.jl via a Homebrew in your REQUIRE files, create a BinDeps library_dependency and state that Homebrew provides that dependency:
#MACPORTS JULIA INSTALL#
To have your Julia package automatically install these precompiled binaries, Homebrew.jl offers a BinDeps provider which can be accessed as Homebrew.HB. To see examples of formulae we have already included for special usage, peruse the homebrew-juliadeps repository. Open an issue here with a link to your formula and we will discuss what the best approach for your software is. If that doesn't "just work", there may be some special considerations necessary for your piece of software. Programs installed to /bin and libraries installed to /lib will automatically be availble for run()'ing and dlopen()'ing. For example, to install metis4 from the homebrew/science tap, you would run Homebrew.add("homebrew/science/metis4"). Formulae from the default homebrew/core tap need no prefix, but if you are installing something from another tap, you need to prefix it with the appropriate tap name. The easiest way to tell if the binary will work out-of-the-box is Homebrew.add() it.
#MACPORTS JULIA UPDATE#
Homebrew.update() will update the available formulae for installation and upgrade installed packages if a newer version is available.An example of this is installing the metis4 formula from the Homebrew/science tap via Homebrew.add("homebrew/science/metis4"). Homebrew.add("pkg") will install pkg, note that if you want to install a package from a non-default tap, you can do so via Homebrew.add("user/tap/formula").However, there is a simple to use interface for interacting with the Homebrew package manager: As a user, you ideally shouldn't ever have to use Homebrew directly, short of installing it via Pkg.add("Homebrew").
