Create pcre2.rb

This commit is contained in:
lovedheart
2018-02-09 01:52:59 +01:00
committed by GitHub
parent 3f81a7b78b
commit ede909cf19

31
packages/pcre2.rb Normal file
View File

@@ -0,0 +1,31 @@
require 'package'
class Pcre2 < Package
description 'The PCRE2 package contains a new generation of the Perl Compatible Regular Expression libraries.'
homepage 'http://pcre.org/'
version '10.30'
source_url 'https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz'
source_sha256 'b549873a39f804480c2e6145a78adcba53e38162d90ef6ea92384f6ecf2fde76'
depends_on 'libtool' => :build
def self.build
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-unicode \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-pcre2test-libreadline \
--enable-jit \
--disable-static"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end