-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
mbelib: 1.2.5 - mbelib, P25 Phase 1 and ProVoice vocoder #21792
Conversation
Looks like the prefix isn't passed anywhere, so presumably this isn't being installed to the correct prefix? Also, re: the issue you linked to this from, is this working on OS X yet? |
It does appear to be installed to the correct location. However I think you are right in that the uninstallation is not working cleanly. Thanks for catching that.
I'll look into that and fix. Regarding your second questions about the referenced bug. That was for the 'dsd' installation which I have not yet submitted to homebrew as a pull request. dsd has a dependency on this mbe library the two can be separated from each other. I just wanted to get the mbelib portion of the install out of the way first. This will also be helpful for the 'dsd' developers who will have an easier time getting this dependency. |
Homebrew actually installs software to isolated prefixes, then symlinks them into /usr/local. For example, with mbelib, the prefix would actually be /usr/local/Cellar/mbelib/1.2.5 These are versioned, and also make it possible for users to temporarily unlink them, switch between versions, etc. The system "cmake", "..", *std_cmake_args |
These things are documented in the Formula Cookbook, so if you haven't already give it a read. |
depends_on 'cmake' => :build | ||
|
||
def install | ||
remove_dir('build', true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you removing the build directory, then recreating it?
Updated to use *std_cmake_args and stop removal and then immediate rebuild of build dir. This lib is Needed to compile DSD which will be the subject of a future pull request. See: https://github.com/szechyjs/mbelib https://github.com/szechyjs/dsd
Thanks for the feedback Misty. This is why Homebrew is awesome. :-) I've made the changes you suggested (all made sense) and everything seems to be working now. I've force pushed an amended commit on top of my old pull request commit. You should be able to see the updated code here: https://github.com/grempe/homebrew/commit/ff074588d8546d74ba375c40a787f9d8ded934f9 I had read the formula page, but '*std_cmake_args' was not documented at all on that page (it was only a commented out line of code in one of the examples). I think its good to go now. Thanks, Glenn |
depends_on 'cmake' => :build | ||
|
||
def install | ||
mkdir 'build' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mkdir
also has a block form, so you can do mkdir 'build' do ...
Thanks adamv. |
Closes Homebrew#21792. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Needed to compile DSD which will be the subject of a
future pull request.
See:
https://github.com/szechyjs/mbelib
https://github.com/szechyjs/dsd