Commit 9f63e360 authored by supechicken666's avatar supechicken666 Committed by GitHub

Add re2 library (#5346)

* Add files via upload

* Update re2.rb
Co-authored-by: default avatarsupechicken <73414985+supechicken@users.noreply.github.com>
parent 76578892
require 'package'
class Re2 < Package
description 'RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python.'
homepage 'https://github.com/google/re2/'
compatibility 'all'
@_ver = '2021-02-02'
version @_ver
source_url "https://github.com/google/re2/archive/#{@_ver}.tar.gz"
source_sha256 '1396ab50c06c1a8885fb68bf49a5ecfd989163015fd96699a180d6414937f33f'
def self.build
# cmake version doesn't provide libre2 library, use make instead
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} #{CREW_OPTIONS.gsub('--', '')} install"
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