Files
chromebrew/packages/phpsysinfo.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

27 lines
959 B
Ruby

require 'package'
class Phpsysinfo < Package
description 'phpSysInfo is a customizable PHP Script that parses /proc, and formats information nicely.'
homepage 'https://phpsysinfo.github.io/phpsysinfo/'
version '3.4.1'
license 'GPL-2+'
compatibility 'all'
source_url 'https://github.com/phpsysinfo/phpsysinfo/archive/v3.4.1.tar.gz'
source_sha256 '377bafea4dc4f1f705cd35df5b95e55034045ab3e7971dc934d1f599157dc3aa'
depends_on 'php74' unless File.exist? "#{CREW_PREFIX}/bin/php"
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/phpsysinfo"
FileUtils.cp 'phpsysinfo.ini.new', 'phpsysinfo.ini'
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/phpsysinfo/"
end
def self.postinstall
puts "\nTo get started, execute the following:".lightblue
puts "cd #{CREW_PREFIX}/share/phpsysinfo".lightblue
puts 'php -S localhost:9000'.lightblue
puts "Visit localhost:9000 in your browser.\n".lightblue
end
end