Files
chromebrew/packages/acquia_cli.rb
Maximilian Downey Twiss 267f8d4087 Rename some packages starting with a (#8831)
* Change arping homepage to match Anitya

* Rename acli to acquia_cli

* Rename agrind to angle_grinder

* Rename apriconv to apr_iconv

* Rename aprutil to apr_util
2023-10-26 06:48:42 -04:00

26 lines
1008 B
Ruby

require 'package'
class Acquia_cli < Package
description 'Acquia CLI - The official command-line tool for interacting with the Drupal Cloud Platform and services.'
homepage 'https://github.com/acquia/cli'
version '2.15.1'
license 'GPL-2.0'
compatibility 'all'
source_url 'https://github.com/acquia/cli/releases/download/2.15.1/acli.phar'
source_sha256 '057e24cb711e0f011db4919d7c54d0de2dd38fe1905d19a5fbb94a76cbe9bade'
depends_on 'php81' unless File.exist? "#{CREW_PREFIX}/bin/php"
no_compile_needed
def self.preflight
major = `php -v 2> /dev/null | head -1 | cut -d' ' -f2 | cut -d'.' -f1`
minor = `php -v 2> /dev/null | head -1 | cut -d' ' -f2 | cut -d'.' -f2`
abort "acli requires php >= 8.0. php#{major.chomp}#{minor.chomp} does not meet the minimum requirement.".lightred unless major.empty? || minor.empty? || ((major.to_i >= 8) && (minor.to_i >= 0))
end
def self.install
FileUtils.install 'acli.phar', "#{CREW_DEST_PREFIX}/bin/acli", mode: 0o755
end
end