c078ada396
Closes #11540. Signed-off-by: Tim D. Smith <git@tim-smith.us>
27 lines
848 B
Ruby
27 lines
848 B
Ruby
class Pyenv < Formula
|
|
desc "Python version management"
|
|
homepage "https://github.com/yyuu/pyenv"
|
|
url "https://github.com/yyuu/pyenv/archive/v1.0.9.tar.gz"
|
|
sha256 "119f28ec1df61c18ab3f0e7acc11ed5d2d9195f29e3cc19194a42d13c2cc4b06"
|
|
version_scheme 1
|
|
head "https://github.com/yyuu/pyenv.git"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "autoconf" => [:recommended, :run]
|
|
depends_on "pkg-config" => [:recommended, :run]
|
|
depends_on "openssl" => :recommended
|
|
depends_on "readline" => [:recommended, :run]
|
|
|
|
def install
|
|
inreplace "libexec/pyenv", "/usr/local", HOMEBREW_PREFIX
|
|
prefix.install Dir["*"]
|
|
%w[pyenv-install pyenv-uninstall python-build].each do |cmd|
|
|
bin.install_symlink "#{prefix}/plugins/python-build/bin/#{cmd}"
|
|
end
|
|
end
|
|
|
|
test do
|
|
shell_output("eval \"$(#{bin}/pyenv init -)\" && pyenv versions")
|
|
end
|
|
end
|