Add readline7.rb to install readline 7.0p3

This commit is contained in:
Kazushi (Jam) Marukawa
2017-05-14 11:05:05 +09:00
parent 3995b63797
commit f3bc7ca671

24
packages/readline7.rb Normal file
View File

@@ -0,0 +1,24 @@
require 'package'
class Readline7 < Package
version '7.0p3'
source_url 'ftp://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz'
source_sha1 'd9095fa14a812495052357e1d678b3f2ac635463'
depends_on 'buildessential' => :build
depends_on 'patch' => :build
depends_on 'ncurses'
def self.build
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches -P readline-7.0-patches"
# system "for i in readline-7.0-patches/*.sig; do gpg $i; done"
system "for i in readline-7.0-patches/readline70-???; do patch < $i; done"
system "CC='gcc' ./configure --disable-static --with-curses"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end