Commit 031dc177 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #401 from bfayers/python36

(UPDATE) Remove python34 & replace with python3
parents 3debea1a 4e1becb7
require 'package'
class Python34 < Package
version '3.4.1'
source_url 'https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz' # software source tarball url
source_sha1 'e8c1bd575a6ccc2a75f79d9d094a6a29d3802f5d' # source tarball sha1 sum
class Python3 < Package
version '3.6.0'
source_url 'https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz' # software source tarball url
source_sha1 '120d536ee14a3153fc2435838c0f27c2e25cd29c' # source tarball sha1 sum
depends_on 'bz2'
depends_on 'ncurses'
depends_on 'openssl'
def self.build # self.build contains commands needed to build the software from source
system "./configure"
system "./configure --prefix=/usr/local CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/ncurses\" LDFLAGS=\"-L/usr/local/lib\" CFLAGS=\" -fPIC\""
system "make" # ordered chronologically
end
def self.install # self.install contains commands needed to install the software on the target system
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment