Files
chromebrew/packages/redis.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

43 lines
1.6 KiB
Ruby

require 'package'
class Redis < Package
description 'Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.'
homepage 'https://redis.io/'
version '4.0.6'
license 'BSD'
compatibility 'all'
source_url 'http://download.redis.io/releases/redis-4.0.6.tar.gz'
source_sha256 '769b5d69ec237c3e0481a262ff5306ce30db9b5c8ceb14d1023491ca7be5f6fa'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/redis/4.0.6_armv7l/redis-4.0.6-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/redis/4.0.6_armv7l/redis-4.0.6-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/redis/4.0.6_i686/redis-4.0.6-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/redis/4.0.6_x86_64/redis-4.0.6-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '42719b23596a9340ae1e87321b91ec810fd6a3f5c69b540036674ce56c78d0e8',
armv7l: '42719b23596a9340ae1e87321b91ec810fd6a3f5c69b540036674ce56c78d0e8',
i686: 'c0b2c01f64fe02f922488d766047de9d40b8dd0b8409c4d840a7f52d6886ce8a',
x86_64: 'a52137729d4194dab6b1a164f9e3a984a121a44c4812c548d2e8e921329f9edd'
})
depends_on 'tcl' => :build
def self.build
system "CC='gcc' make"
system './runtest'
end
def self.install
system 'make', "PREFIX=#{CREW_DEST_PREFIX}", 'install'
end
def self.postinstall
puts
puts 'To start the redis server: redis-server --daemonize yes'.lightblue
puts 'To connect to the server: redis-cli'.lightblue
puts
end
end