mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
21 lines
1.0 KiB
Ruby
21 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Python27 < Package
|
|
version '2.7.12'
|
|
source_url 'https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz' # software source tarball url
|
|
source_sha1 '05360b8ade117b35e266b2004a7f1f11250c6dcd' # source tarball sha1 sum
|
|
|
|
depends_on 'bz2'
|
|
depends_on 'ncurses'
|
|
depends_on 'openssl_devel'
|
|
|
|
def self.build # self.build contains commands needed to build the software from source
|
|
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
|