mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* crew: Simplify + cleanup * Bump version * Express newlines in a more clear way * Fix bugs * Remove CREW_LA_RENAME_ENABLED logic completely * Fix typo * Add no_shrink to xwayland * Add no_shrink to sommelier * Use rmtree in lieu of rmdir * Add crew change from ruby 3.2 PR. * Need Dir.exist? in lieu of Dir.empty since dir may not exist * rmdir is fine since we are checking for the dir, also check for empty dir before deleting the dir * Make rubocop happy * Handle SKIP package install failure * merge conditionals * Rubocop changes * Allow for only ruby getting upgraded when it is in the upgrade list * Revert filelist generation change as it creates a filelist with "/filelist" for empty packages like ruby_mdl * remove trailing space * Adjust messages when ruby is upgraded. * Ruby => 3.2.0 + update other gem packages * update rubocop * adjust postinstall to avoid breakage during ruby upgrade * remove binaries from some gem packages * remove install section from no_compile_needed gems * remove binaries from ruby_debug * update rubocop config file setup * simplify rubocop package further * revert rubocop changes * Use source_url for rubocop config * suggested changes * Fix paths for message and remove unnecessary rm from self.remove Co-authored-by: supechicken <supechicken666@gmail.com>
40 lines
1.7 KiB
Ruby
40 lines
1.7 KiB
Ruby
require 'package'
|
|
|
|
class Ruby_webrick < Package
|
|
description 'WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server.'
|
|
homepage 'https://github.com/ruby/webrick/'
|
|
version '1.7.0-ruby-3.2'
|
|
license 'BSD-2'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/ruby/webrick/archive/refs/tags/v1.7.0.tar.gz'
|
|
source_sha256 '25df35c696301deddec8cc929954284fa3dfaa86ad90c0cce2ecc5740c476545'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ruby_webrick/1.7.0-ruby-3.2_armv7l/ruby_webrick-1.7.0-ruby-3.2-chromeos-armv7l.tar.zst',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ruby_webrick/1.7.0-ruby-3.2_armv7l/ruby_webrick-1.7.0-ruby-3.2-chromeos-armv7l.tar.zst',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ruby_webrick/1.7.0-ruby-3.2_i686/ruby_webrick-1.7.0-ruby-3.2-chromeos-i686.tar.zst',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ruby_webrick/1.7.0-ruby-3.2_x86_64/ruby_webrick-1.7.0-ruby-3.2-chromeos-x86_64.tar.zst'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '4e5d6a1bd3bc479226f138fbb41ddb9bf785c1c1027cd8d679bf6fe41f2b5c73',
|
|
armv7l: '4e5d6a1bd3bc479226f138fbb41ddb9bf785c1c1027cd8d679bf6fe41f2b5c73',
|
|
i686: 'd9567362271e89eff931f8affcc05d156f4afcbb48e5c02b9a665e6bd3872168',
|
|
x86_64: '95858ae4902127b8ec7790bc7b4d287e27ec20409a5dcd789460e7a3fa74fc22'
|
|
})
|
|
|
|
depends_on 'libyaml'
|
|
depends_on 'ruby'
|
|
|
|
def self.build
|
|
system 'rake', 'build'
|
|
end
|
|
|
|
def self.check
|
|
system 'rake', 'test'
|
|
end
|
|
|
|
def self.install
|
|
system 'gem', 'install', "--build=#{CREW_DEST_DIR}", 'pkg/webrick-1.7.0.gem'
|
|
end
|
|
end
|