-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpython34.rb
More file actions
23 lines (20 loc) · 817 Bytes
/
python34.rb
File metadata and controls
23 lines (20 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Python34 < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz"
version "3.4.4"
sha256 "bc93e944025816ec360712b4c42d8d5f729eaed2b26585e9bc8844f93f0c382e"
def install
cflags = "CFLAGS=-I/usr/local/opt/openssl/include"
ldflags = "LDFLAGS=-L/usr/local/opt/openssl/lib"
system "./configure", "--prefix=#{prefix}", cflags, ldflags
system "make"
system "make install"
end
def post_install
(HOMEBREW_PREFIX/"bin").install_symlink bin/"python3.4"
(HOMEBREW_PREFIX/"bin").install_symlink bin/"python3.4-config"
(HOMEBREW_PREFIX/"bin").install_symlink bin/"python3.4m"
(HOMEBREW_PREFIX/"bin").install_symlink bin/"python3.4m-config"
end
end