Commit 4125f0a7 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #649 from jam7/update/flex

Update flex to 2.6.4 and change to strip binaries
parents 554aa5f0 f9bfeb16
require 'package' require 'package'
class Flex < Package class Flex < Package
version '2.6.3' version '2.6.4'
source_url 'https://fossies.org/linux/misc/flex-2.6.3.tar.gz' source_url 'https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz'
source_sha1 '8008eb0e4ccc634c334ac1d9e04716be2ba527a9' source_sha1 'fafece095a0d9890ebd618adb1f242d8908076e1'
depends_on 'm4' depends_on 'm4'
depends_on 'bison' depends_on 'bison' => :build
def self.build def self.build
system "./configure CFLAGS=\" -fPIC\"" system "./configure", "--with-pic", "--disable-static", "--enable-shared"
system "make" system "make"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end end
def self.install 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
end 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