Change expect.rb to strip binary and library.

Also add check method.
parent a28d1e34
...@@ -3,7 +3,7 @@ require 'package' ...@@ -3,7 +3,7 @@ require 'package'
class Expect < Package class Expect < Package
description 'Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc.' description 'Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc.'
homepage 'http://expect.sourceforge.net/' homepage 'http://expect.sourceforge.net/'
version '5.45' version '5.45-1'
source_url 'http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz' source_url 'http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz'
source_sha1 'e634992cab35b7c6931e1f21fbb8f74d464bd496' source_sha1 'e634992cab35b7c6931e1f21fbb8f74d464bd496'
...@@ -12,9 +12,15 @@ class Expect < Package ...@@ -12,9 +12,15 @@ class Expect < Package
def self.build def self.build
system "./configure", "--prefix=/usr/local" system "./configure", "--prefix=/usr/local"
system "make" system "make"
system "find . -name '*.so' -print | xargs strip -S"
system "strip expect"
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end end
def self.check
system "make test"
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