mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
31 lines
902 B
Ruby
31 lines
902 B
Ruby
require 'package'
|
|
|
|
class Clisp < Package
|
|
description 'ANSI Common Lisp compiler, interpreter and debugger.'
|
|
homepage 'http://www.gnu.org/software/clisp/'
|
|
version '2.49-2'
|
|
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", "--disable-static", "--enable-static", "--with-pic"
|
|
FileUtils.cd('src') do
|
|
# disable unavailable "-R" option
|
|
# modifying configure options doesn't work for this
|
|
system "sed", "-i", "Makefile", "-e", "s:-R/usr/local/lib ::"
|
|
|
|
# force to compile in sequential since clisp Makefile doesn't work in parallel
|
|
system "make", "-j1"
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.cd('src') do
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
end
|
|
end
|
|
end
|