Commit 20911e07 authored by Michał Siwek's avatar Michał Siwek

Merge pull request #36 from jbaum98/master

Add emacs, jdk x64, ncurses_so, autoconf, automake, clisp, diffutils, ffcall, libsigsegv, m4, powerline fonts & update zsh, vim, ncurses
parents 489b7a0b 5ce3f1ea
require 'package'
class Autoconf < Package
version '2.69'
source_url 'ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz'
source_sha1 'e891c3193029775e83e0534ac0ee0c4c711f6d23'
depends_on 'perl'
depends_on 'm4'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Automake < Package
version '1.14'
source_url 'ftp://ftp.gnu.org/gnu/automake/automake-1.14.tar.xz'
source_sha1 '793881a445134b7561637d6f2a3ca611276e39fe'
depends_on 'autoconf'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Bz2 < Package
version '1.4.17'
source_url 'http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz'
source_sha1 '3f89f861209ce81a6bab1fd1998c0ef311712002'
def self.build
system "make -f Makefile-libbz2_so"
end
def self.install
system "make", "PREFIX=#{CREW_DEST_DIR}/usr/local", "install"
end
end
require 'package'
class Clisp < Package
version '2.49'
source_url 'ftp://ftp.gnu.org/pub/gnu/clisp/release/2.49/clisp-2.49.tar.bz2'
source_sha1 '7e8d585ef8d0d6349ffe581d1ac08681e6e670d4'
depends_on 'libsigsegv'
depends_on 'ffcall'
def self.build
system "./configure CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
FileUtils.cd('src') do
system "ulimit -s 16384"
system "make"
end
end
def self.install
FileUtils.cd('src') do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
require 'package'
class Cmake < Package
version '3.0.2'
source_url 'http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz'
source_sha1 '379472e3578902a1d6f8b68a9987773151d6f21a'
def self.build
system "./configure --prefix=/usr/local"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Diffutils < Package
version '3.3'
source_url 'ftp://ftp.gnu.org/gnu/diffutils/diffutils-3.3.tar.xz'
source_sha1 '6463cce7d3eb73489996baefd0e4425928ecd61e'
depends_on "libsigsegv"
def self.build
system "sed -i -e '/gets is a/d' lib/stdio.in.h" # fixes an error, credit to http://www.linuxfromscratch.org/lfs/view/7.3/chapter05/diffutils.html
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Emacs < Package
version '24.4'
source_url 'ftp://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.xz'
source_sha1 '68f9b1f7570a13d076b94c20f2d20fe40782031c'
depends_on "diffutils"
depends_on "m4"
depends_on "autoconf"
depends_on "automake"
def self.build
system "./configure --prefix=/usr/local --without-x --without-makeinfo"
system "sed -i '/static void \\*/{ N; /static void \\*\\naligned_alloc/{ s/static //g}}' src/alloc.c"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Ffcall < Package
version '1.10'
source_url 'http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz'
source_sha1 '6b4fdc7bd38b434bbf3d65508a3d117fc8b349f3'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
system "make"
end
def self.install
system "make check"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Jdk8 < Package
version '8.0.25'
binary_url ({
i686: "https://www.dropbox.com/s/d1omw087ilkh5oq/jdk1.8.0_25_i686.tar.gz?dl=0",
x86_64: "https://www.dropbox.com/s/2zohwl033i6rol2/jdk1.8.0_25_x86_64.tar.gz?dl=0"
})
binary_sha1 ({
i686: "2f6fabc6e7b86fa2f21d19f9617d2641c5862a30",
x86_64: "601ab66006ade8bbac8dad465cf71aefe5266744"
})
end
require 'package'
class Libsigsegv < Package
version '2.10'
source_url 'ftp://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz'
source_sha1 'b75a647a9ebda70e7a3b33583efdd550e0eac094'
def self.build
system "./configure --libdir=/usr/local/lib64/ CC=\"gcc -m64\" CFLAGS=\" -fPIC\""
system "make"
end
def self.install
system "make check"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class M4 < Package
version '1.4.17'
source_url 'ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.xz'
source_sha1 '74ad71fa100ec8c13bc715082757eb9ab1e4bbb0'
depends_on 'libsigsegv'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Ncurses < Package
version '5.9-chromeos1'
binary_url ({
i686: 'https://dl.dropboxusercontent.com/s/aule5impm7ek644/ncurses-5.9-chromeos-i686.tar.gz?token_hash=AAH6Z34Dd17OeG_to_cD7z_1bc95AObrDrfU2mHGhZ-3bg&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/py8kz22dql0li8x/ncurses-5.9-chromeos1-chromeos-x86_64.tar.gz?token_hash=AAFMbTmK7iW16QidxzsQ7Y2CI96B33MpF9-9GBpqbOH4uw&dl=1'
})
binary_sha1 ({
i686: 'a46463be1b8f7cd3af8309e49fd6bc60cf0e5341',
x86_64: '691c4819c98a26da69136da04b57bed38aad775f'
})
version '5.9'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz'
source_sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'
depends_on "diffutils"
def self.build
system "./configure CFLAGS=\" -fPIC\" --without-debug --prefix=/usr/local"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Ncurses_so < Package
version '5.9'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz'
source_sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'
depends_on "ncurses"
def self.build
system "./configure --prefix=/usr/local \"CFLAGS= -fPIC\" --without-debug --without-normal --with-shared"
system "make"
end
def self.install
out = "#{CREW_DEST_DIR}/usr/local/lib"
system "mkdir -p #{out}"
["form", "menu", "ncurses", "panel"].each do |lib|
system "cp", "lib/lib#{lib}.so.5.9", out
FileUtils.cd(out) do
system "ln -s lib#{lib}.so.5.9 lib#{lib}.so"
system "ln -s lib#{lib}.so.5.9 lib#{lib}.so.5"
end
end
FileUtils.cd(out) do
system "ln -s libncurses.so.5.9 libtinfo.so.5.9"
system "ln -s libncurses.so.5 libtinfo.so.5"
system "ln -s libncurses.so libtinfo.so"
end
end
end
require 'package'
class Powerline_fonts < Package
version '1'
binary_url ({
i686: "https://www.dropbox.com/s/lkrnw3hu7yb88vt/powerline_fonts.tar.gz?dl=0",
x86_64: "https://www.dropbox.com/s/lkrnw3hu7yb88vt/powerline_fonts.tar.gz?dl=0"
})
binary_sha1 ({
i686: "c5bcd35c94feed9cb48bb821c2d08f3ddc36dc64",
x86_64: "c5bcd35c94feed9cb48bb821c2d08f3ddc36dc64"
})
puts "\nFonts will be available after restart or chrome:inducebrowsercrashforrealz"
puts "To change the font in crosh, enable developer tools in extensions and execute:"
puts "\tterm_.prefs_.set(\"font-family\", \"DejaVu Sans Mono for Powerline\")"
puts "in the Javascript Console to change the font to DejaVu Sans Mono, for example\n\n"
end
......@@ -5,8 +5,11 @@ class Python27 < Package
source_url 'https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz' # software source tarball url
source_sha1 '511960dd78451a06c9df76509635aeec05b2051a' # source tarball sha1 sum
depends_on 'bz2'
depends_on 'ncurses'
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
......
......@@ -4,20 +4,23 @@ class Vim < Package
version '7.4'
source_url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2'
source_sha1 '601abf7cc2b5ab186f40d8790e542f86afca86b7'
binary_url ({
i686: 'https://dl.dropboxusercontent.com/s/s6ya4cyeee7ywo9/vim-7.3-chromeos-i686.tar.gz?token_hash=AAEI_tXjoKfOGEWKN3fajxskcCxlOjxuANGIvu-nSABANQ&dl=1'
})
binary_sha1 ({
i686: '5ff6cf19c34582027092d342fc835b0f32c63be0'
})
depends_on 'ncurses'
depends_on 'perl'
depends_on 'python27'
depends_on 'ruby'
def self.build
system './configure --prefix=/usr/local --enable-gui=no --with-features=huge --without-x --disable-nls --with-tlib=ncurses --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/local/bin/ruby'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts "\nMake sure to put your .vim directory in a subdirectory of /usr/local so it has execute permissions"
puts "You can then symlink to your home directory so vim can see it"
puts "\tln -s /usr/local/vim ~/.vim"
puts "\tln -s ~/.vim/vimrc ~/.vimrc\n\n"
end
end
require 'package'
class Zsh < Package
version '5.0.2'
source_url 'http://downloads.sourceforge.net/project/zsh/zsh/5.0.2/zsh-5.0.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fzsh%2Ffiles%2F&ts=1384135329&use_mirror=heanet'
source_sha1 '9f55ecaaae7cdc1495f91237ba2ec087777a4ad9'
binary_url ({
x86_64: 'https://dl.dropboxusercontent.com/s/0m8ms5b97t0r0s8/zsh-5.0.2-chromeos-x86_64.tar.gz?dl=1&token_hash=AAHiOSakPQiU2zhohXT1dVZyl6zphvESvADcrhyMomniAA'
})
binary_sha1 ({
x86_64: 'b9f87032e60cd04ce7e709a94f1cf5a8a71d0090'
})
version '5.0.7'
source_url "http://softlayer-dal.dl.sourceforge.net/project/zsh/zsh/5.0.7/zsh-5.0.7.tar.gz"
source_sha1 "a77519d3a6c251c69b1f4924cacdac17cc8e6a9d"
depends_on "ncurses"
def self.build
system "./configure"
system "./configure --prefix=/usr/local"
system "make"
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