Files
chromebrew/packages/neo_matrix.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

39 lines
1.0 KiB
Ruby

require 'package'
class Neo_matrix < Package
description 'Simulates the digital rain from "The Matrix" (A CMatrix clone with 32-bit color and Unicode support)'
homepage 'https://github.com/st3w/neo'
version '0.6.1'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/st3w/neo.git'
git_hashtag "v#{version}"
depends_on 'ttf_hanazono' # L
depends_on 'glibc' # R
depends_on 'ncurses' # R
def self.patch
# We like having a verbose autoreconf
system "sed -i 's:^autoreconf:autoreconf --verbose:' autogen.sh"
end
def self.build
system './autogen.sh'
# The program name is neo-matrix for us
# "neo" refers to different software that existed before this neo
system "./configure #{CREW_CONFIGURE_OPTIONS.sub '--program-suffix=\'\'', ''} \
--program-suffix='-matrix'"
system 'make'
end
def self.check
# At the time of writing (20 Oct 2022), neo has no checks
system 'make', 'check'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end