How can I make dynare.rb depend on Octave 4.4.1

(Houtan Bastani) #1


I am the maintainer of dynare.rb. The stable version of Dynare depends on Octave 4.4.1 while the unstable version depends on Octave 5.1.0.

From what I can see, Octave is not versioned the way GCC is, so I don’t see how to adjust the depends_on "octave" field to depend on Octave 4.4.1 from commit 0bee75d7193b9e8820318196f2026b91e764eae7.

Thanks in advance!

(Sean Molenaar) #2

Homebrew doesn’t really have a concept of maintainers for special files but sure. I’d say you should make a resource block in the dynare formula then since homebrew doesn’t allow formulae for versions that are unsupported by upstream, which octave 4.4 seems to be.

(Houtan Bastani) #3

I’m a little confused: how would the resource block work? I’d need this to be the version of Octave installed on the user’s computer. It could not be overwritten or updated by Homebrew as this version of Octave would be needed to run Dynare.

(Sean Molenaar) #4

Something like this formula has: where it essentially installs it’s own version of octave within the formula.

(Houtan Bastani) #5

@SMillerDev thanks for the followup. Please excuse my knowledge of Ruby, as I’m not sure how I’d implement this. I thought Octave was difficult to compile locally, so simply instructing homebrew to download octave from source wouldn’t work… am I wrong?

resource "octave" do
    url ""
    sha256 "TBD"