timsutton / brew-pkg

Build OS X installer packages directly from Homebrew formulae
MIT License
196 stars 38 forks source link

Package local formula #7

Open W4RH4WK opened 9 years ago

W4RH4WK commented 9 years ago

I have installed encfs using a local formula with the following command:

$ brew install contrib/encfs.rb

but I am not able to package this using brew-pkg:

$ brew pkg --with-deps contrib/encfs.rb
==> Creating package staging root using Homebrew prefix /usr/local
Error: No available formula with the name "encfs"
timsutton commented 9 years ago

Have you tried just brew pkg --with-deps encfs? If I install encfs from the existing brew repo this command works. I should think it would work the same way even if it was installed from a local formula.

W4RH4WK commented 9 years ago

Yes, I have tried this but it didn't work either. I get the same error in this case. Seems like brew searches for a formula in its repository / taps (?).

$ brew pkg --with-deps encfs
Error: No available formula with the name "encfs"

I have created a tap for the moment, which works fine.

timsutton commented 9 years ago

I can see the use case for this, so if you feel like digging into what changes would be needed for local formulae to also work, that would be great!

W4RH4WK commented 9 years ago

I'll let you know if I come up with something, but no promises.