mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
Chagne bison.rb to install stripped binaries and add check methods
This commit is contained in:
@@ -3,19 +3,27 @@ require 'package'
|
||||
class Bison < Package
|
||||
description 'Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables.'
|
||||
homepage 'http://www.gnu.org/software/bison/'
|
||||
version '3.0.4'
|
||||
source_url 'http://mirror.keystealth.org/gnu/bison/bison-3.0.4.tar.gz'
|
||||
source_sha1 'ec1f2706a7cfedda06d29dc394b03e092a1e1b74'
|
||||
version '3.0.4-1'
|
||||
source_url 'http://mirror.keystealth.org/gnu/bison/bison-3.0.4.tar.xz'
|
||||
source_sha1 '8270497aad88c7dd4f2c317298c50513fb0c3c8e'
|
||||
|
||||
depends_on 'diffutils'
|
||||
depends_on 'm4'
|
||||
depends_on 'diffutils' => :build
|
||||
depends_on 'm4' => :build
|
||||
depends_on 'perl' => :build
|
||||
# `make check` requires flex, but it causes dependency loop. so, commenting it out.
|
||||
# depends_on 'flex' => :build
|
||||
|
||||
def self.build
|
||||
system './configure --prefix=/usr/local'
|
||||
system "make"
|
||||
system "find . -name '*.a' -print | xargs strip -S"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
|
||||
end
|
||||
|
||||
def self.check
|
||||
system "make check"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user