update gettext to 0.19.8.1 and add source compile method.

change to strip binary and libraries also.
parent 3995b637
require 'package' require 'package'
class Gettext < Package class Gettext < Package
version '0.18.3.1' version '0.19.8.1'
binary_url ({ source_url 'ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz'
aarch64: 'https://dl.dropboxusercontent.com/s/wmfctz7x8bj6cwe/gettext-0.18.3.1-chromeos-armv7l.tar.xz', source_sha1 'e0fe90ede22f7f16bbde7bdea791a835f2773fc9'
armv7l: 'https://dl.dropboxusercontent.com/s/wmfctz7x8bj6cwe/gettext-0.18.3.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/xmsfr7q9r99dhcs/gettext-0.18.3.1-chromeos-i686.tar.gz?token_hash=AAGJo0pqudCOkGU3NHOcBuFG2zLwWpapNXLX-zUJLcS3aA&dl=1', depends_on 'diffutils' => :build
x86_64: 'https://dl.dropboxusercontent.com/s/nidj0ehxwserhz6/gettext-0.18.3.1-chromeos-x86_64.tar.gz?token_hash=AAFn-kdXlB23HDVDCKTn9n_U-i9LFNCIB6HU0jSUiJTctA&dl=1', depends_on 'ncurses'
}) depends_on 'libxml2'
binary_sha1 ({
aarch64: '5224004048dd80bb523cd0091ad577b21448790b', def self.build
armv7l: '5224004048dd80bb523cd0091ad577b21448790b', system "./configure", "--enable-shared", "--disable-static", "--with-pic"
i686: '1ecbff59d6134c7f8804bcf18fb2b1b7a9a6d4c0', system "make"
x86_64: '22174347defa4f034a360078c248a61710c5f854', system "find . -name '*.so.*' -print | xargs strip -S"
}) end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
end
def self.check
system "make", "check"
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