Commit 431d3229 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #716 from jam7/strip-some-common-packages

Strip some common packages
parents 31b2f7a4 1e112049
......@@ -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
......@@ -3,7 +3,7 @@ require 'package'
class Expect < Package
description 'Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc.'
homepage 'http://expect.sourceforge.net/'
version '5.45'
version '5.45-1'
source_url 'http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz'
source_sha1 'e634992cab35b7c6931e1f21fbb8f74d464bd496'
......@@ -12,9 +12,15 @@ class Expect < Package
def self.build
system "./configure", "--prefix=/usr/local"
system "make"
system "find . -name '*.so' -print | xargs strip -S"
system "strip expect"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make test"
end
end
......@@ -3,24 +3,36 @@ require 'package'
class Ncurses < Package
description 'The ncurses (new curses) library is a free software emulation of curses in System V Release 4.0 (SVr4), and more.'
homepage 'https://www.gnu.org/software/ncurses/'
version '6.0-1'
version '6.0-2'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on "diffutils"
depends_on "diffutils" => :build
depends_on "ncursesw"
def self.build
system './configure ' \
'CFLAGS=" -fPIC" ' \
'--without-debug ' \
'--prefix=/usr/local ' \
'--with-shared ' \
'--with-cxx-shared '
system './configure',
'--prefix=/usr/local',
'--without-normal',
'--with-shared',
'--with-cxx-shared',
'--without-debug'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# strip binaries
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/clear"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/infocmp"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tabs"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tic"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tput"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tset"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system "find #{CREW_DEST_DIR}/usr/local -name 'lib*.so.*' -print | xargs strip -S"
end
end
require 'package'
class Ncursesw < Package
version '6.0'
version '6.0-2'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on "diffutils"
depends_on "diffutils" => :build
def self.build
# Check ncurses doesn't conflict with ncrusesw
......@@ -18,17 +18,29 @@ class Ncursesw < Package
end
end
# Build ncursesw
system './configure ' \
'CFLAGS=" -fPIC" ' \
'--without-debug ' \
'--prefix=/usr/local ' \
'--with-shared ' \
'--with-cxx-shared ' \
system './configure',
'--prefix=/usr/local',
'--without-normal',
'--with-shared',
'--with-cxx-shared',
'--without-debug',
'--enable-widec'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# remove binary files which are installed by ncurses also
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/clear"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/infocmp"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/tabs"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/tic"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/tput"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/tset"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system "find #{CREW_DEST_DIR}/usr/local -name 'lib*.so.*' -print | xargs strip -S"
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