Rename files in install part of homebrew formula -
i'm writing homebrew formula, installs alternate clang version. want both, original, system-provided clang , modified clang in path, rename modified 1 clang-omp.
one effort in install-part of formula. sadly without success.
def install #... scheme "./configure", "--prefix=#{prefix}" scheme "make", "install" # next isn't working: (bin/'clang').mv 'clang-omp' (bin/'clang++').mv 'clang++-omp' end another thought mark formula keg-only, , create install binaries manually while changing names.
yet approach (maybe best) might configure symlinks created in /usr/local/bin/*. can't find info on symlink creation step.
in install: mv bin/"clang", bin/"clang-omp"
grepping through installed formulas in e.g. /usr/local/library/formula can give sense of works.
homebrew
No comments:
Post a Comment