Commit 6eb74863 authored by satmandu's avatar satmandu Committed by GitHub

ninja and re2c update (#5711)

* ninja and re2c update

* don't need to run ninja in build section
parent 2f0c1fe4
......@@ -3,30 +3,39 @@ require 'package'
class Ninja < Package
description 'a small build system with a focus on speed'
homepage 'https://ninja-build.org'
version '1.10.0'
version '1.10.2'
license 'GPL-2'
compatibility 'all'
source_url 'https://github.com/ninja-build/ninja/archive/v1.10.0.tar.gz'
source_sha256 '3810318b08489435f8efc19c05525e80a993af5a55baa0dfeae0465a9d45f99f'
source_url 'https://github.com/ninja-build/ninja/archive/v1.10.2.tar.gz'
source_sha256 'ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.0_armv7l/ninja-1.10.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.0_armv7l/ninja-1.10.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.0_i686/ninja-1.10.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.0_x86_64/ninja-1.10.0-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.2_armv7l/ninja-1.10.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.2_armv7l/ninja-1.10.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.2_i686/ninja-1.10.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ninja/1.10.2_x86_64/ninja-1.10.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '5e2ef70ad213e86a4a32e48bb4783face0bff6f3b079080d3d668bb35ba83088',
armv7l: '5e2ef70ad213e86a4a32e48bb4783face0bff6f3b079080d3d668bb35ba83088',
i686: 'ec2996217bdf7c57d0528a8ba0eefabda15c17e59f958daebc3fe1eda6a8a9bc',
x86_64: 'e74f2b1d374edd0ff0877939b3afb8fa80240774bf3c9126278e5a965c7a5d0b',
binary_sha256({
aarch64: 'd6fe1cfab1c8c0c9a4865fcc1918ebe86a4effd17a28d9fc7b90401e550e2b90',
armv7l: 'd6fe1cfab1c8c0c9a4865fcc1918ebe86a4effd17a28d9fc7b90401e550e2b90',
i686: '36f809229fd7779f0783742a579043c9b8a69ec9454efcb1ff7655fd621d5e45',
x86_64: '40ee7476d70e15874acb59b43e4e379c67cc65793ead2af6fbd67331f06193ff'
})
depends_on 're2c' => :build
def self.patch
system 'filefix'
end
def self.build
system 'python3 configure.py --bootstrap'
system "env #{CREW_ENV_OPTIONS} \
AR=gcc-ar \
python3 configure.py --bootstrap"
end
def self.install
system "install -Dm755 ninja #{CREW_DEST_PREFIX}/bin/ninja"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'ninja', "#{CREW_DEST_PREFIX}/bin/ninja", mode: 0o755
end
end
......@@ -3,27 +3,28 @@ require 'package'
class Re2c < Package
description 're2c is a free and open-source lexer generator for C and C++.'
homepage 'http://re2c.org/'
version '1.3'
version '2.1.1'
license 'public-domain'
compatibility 'all'
source_url 'https://github.com/skvadrik/re2c/releases/download/1.3/re2c-1.3.tar.xz'
source_sha256 'f37f25ff760e90088e7d03d1232002c2c2672646d5844fdf8e0d51a5cd75a503'
source_url 'https://github.com/skvadrik/re2c/releases/download/2.1.1/re2c-2.1.1.tar.lz'
source_sha256 '635860abc1c611dc5f7ab85581fa65bfa9b447946763b073d38e51620467539b'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/1.3_armv7l/re2c-1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/1.3_armv7l/re2c-1.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/1.3_i686/re2c-1.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/1.3_x86_64/re2c-1.3-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/2.1.1_armv7l/re2c-2.1.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/2.1.1_armv7l/re2c-2.1.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/2.1.1_i686/re2c-2.1.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/re2c/2.1.1_x86_64/re2c-2.1.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '1ee30785ba83b9ed00258fa126f18a14e687cd4902a20f10b9bf1ce322f4692f',
armv7l: '1ee30785ba83b9ed00258fa126f18a14e687cd4902a20f10b9bf1ce322f4692f',
i686: '0fefae6d421dbe3166a1cefd28473264423d158ee52b41b3aec3cfb7ccfb5526',
x86_64: 'a4639d6224bf8537e25703f03161a3f849e05160d40282b274b91611a674b069',
binary_sha256({
aarch64: 'f83c472ffa93b475b4fe715cbf05e131d8f9865d516af8d45a9ef3d5f029d1fd',
armv7l: 'f83c472ffa93b475b4fe715cbf05e131d8f9865d516af8d45a9ef3d5f029d1fd',
i686: '8f2ce53ecda3396e3fb199955a5803fd1ac695590a838a73f80cf1ce684680d5',
x86_64: '527b1e15f7c58f7725d04d0f025b630af76564ae42b14d979d6d958f221f92cd'
})
def self.build
system "./configure --prefix=#{CREW_PREFIX}"
system "env #{CREW_ENV_OPTIONS} \
./configure #{CREW_OPTIONS}"
system 'make'
system 'make bootstrap'
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