mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
29 lines
815 B
Ruby
29 lines
815 B
Ruby
require 'package'
|
|
|
|
class Gawk < Package
|
|
description 'The gawk utility interprets a special-purpose programming language that makes it possible to handle simple data-reformatting jobs with just a few lines of code.'
|
|
homepage 'https://www.gnu.org/software/gawk/'
|
|
version '4.1.4-1'
|
|
source_url 'http://ftp.gnu.org/gnu/gawk/gawk-4.1.4.tar.xz'
|
|
source_sha256 '53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266'
|
|
|
|
depends_on 'libsigsegv'
|
|
depends_on 'readline' => :build
|
|
depends_on 'ncurses'
|
|
depends_on 'mpfr'
|
|
depends_on 'gmp'
|
|
|
|
def self.build
|
|
system './configure', "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
end
|
|
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
end
|