mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Add navi package and tealdeer dependency (#13121)
This commit is contained in:
2
manifest/armv7l/n/navi.filelist
Normal file
2
manifest/armv7l/n/navi.filelist
Normal file
@@ -0,0 +1,2 @@
|
||||
# Total size: 3220136
|
||||
/usr/local/bin/navi
|
||||
2
manifest/armv7l/t/tealdeer.filelist
Normal file
2
manifest/armv7l/t/tealdeer.filelist
Normal file
@@ -0,0 +1,2 @@
|
||||
# Total size: 2649588
|
||||
/usr/local/bin/tldr
|
||||
2
manifest/i686/n/navi.filelist
Normal file
2
manifest/i686/n/navi.filelist
Normal file
@@ -0,0 +1,2 @@
|
||||
# Total size: 4176988
|
||||
/usr/local/bin/navi
|
||||
2
manifest/i686/t/tealdeer.filelist
Normal file
2
manifest/i686/t/tealdeer.filelist
Normal file
@@ -0,0 +1,2 @@
|
||||
# Total size: 3097228
|
||||
/usr/local/bin/tldr
|
||||
2
manifest/x86_64/n/navi.filelist
Normal file
2
manifest/x86_64/n/navi.filelist
Normal file
@@ -0,0 +1,2 @@
|
||||
# Total size: 4264224
|
||||
/usr/local/bin/navi
|
||||
2
manifest/x86_64/t/tealdeer.filelist
Normal file
2
manifest/x86_64/t/tealdeer.filelist
Normal file
@@ -0,0 +1,2 @@
|
||||
# Total size: 3426392
|
||||
/usr/local/bin/tldr
|
||||
@@ -1 +1,2 @@
|
||||
# Total size: 14139
|
||||
/usr/local/bin/tldr
|
||||
|
||||
25
packages/navi.rb
Normal file
25
packages/navi.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
require 'buildsystems/rust'
|
||||
|
||||
class Navi < RUST
|
||||
description 'An interactive cheatsheet tool for the command-line'
|
||||
homepage 'https://github.com/denisidoro/navi'
|
||||
version '2.24.0'
|
||||
license 'Apache-2.0'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/denisidoro/navi.git'
|
||||
git_hashtag "v#{version}"
|
||||
binary_compression 'tar.zst'
|
||||
|
||||
binary_sha256({
|
||||
aarch64: '3d38b2e94028057c3e82a65ce1c442c33909f09e2dc19d343d0184ef74200801',
|
||||
armv7l: '3d38b2e94028057c3e82a65ce1c442c33909f09e2dc19d343d0184ef74200801',
|
||||
i686: 'cd09c6f3aba3d702ea648b78701a8947b48cf214bc4a836bac3d46820309124e',
|
||||
x86_64: 'd0ac52a0b7969f49c2a9a11e70b7a988c7a01a71beda2f69f5ba78d88d41c01a'
|
||||
})
|
||||
|
||||
depends_on 'fzf' # R
|
||||
depends_on 'gcc_lib' # R
|
||||
depends_on 'glibc' # R
|
||||
depends_on 'rust' => :build
|
||||
depends_on 'tealdeer' # R
|
||||
end
|
||||
33
packages/tealdeer.rb
Normal file
33
packages/tealdeer.rb
Normal file
@@ -0,0 +1,33 @@
|
||||
require 'buildsystems/rust'
|
||||
|
||||
class Tealdeer < RUST
|
||||
description 'A very fast implementation of tldr in Rust.'
|
||||
homepage 'https://tealdeer-rs.github.io/tealdeer/'
|
||||
version '1.8.0'
|
||||
license 'Apache-2.0, MIT'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/tealdeer-rs/tealdeer.git'
|
||||
git_hashtag "v#{version}"
|
||||
binary_compression 'tar.zst'
|
||||
|
||||
binary_sha256({
|
||||
aarch64: '814f8deaec35a3c0947f320d9db6835cba9a189da48fc55db0201c0186d31ca8',
|
||||
armv7l: '814f8deaec35a3c0947f320d9db6835cba9a189da48fc55db0201c0186d31ca8',
|
||||
i686: '8f0b10662ebd2fcebb3d1ca3650ef5dc3299eb35b18e9d8c04a599139a6d332e',
|
||||
x86_64: '8f116680132091b4a84646214cc639b28038c52dd9c2f79341f9b742abb5e812'
|
||||
})
|
||||
|
||||
depends_on 'gcc_lib' # R
|
||||
depends_on 'glibc' # R
|
||||
depends_on 'rust' => :build
|
||||
|
||||
def self.preflight
|
||||
if Package.installed('tldr')
|
||||
abort <<~EOM.orange
|
||||
|
||||
tldr is installed. To install this package, execute:
|
||||
crew remove tldr && crew install tealdeer
|
||||
EOM
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -11,6 +11,16 @@ class Tldr < Package
|
||||
|
||||
no_compile_needed
|
||||
|
||||
def self.preflight
|
||||
if Package.installed('tealdeer')
|
||||
abort <<~EOM.orange
|
||||
|
||||
tealdeer is installed. To install this package, execute:
|
||||
crew remove tealdeer && crew install tldr
|
||||
EOM
|
||||
end
|
||||
end
|
||||
|
||||
def self.patch
|
||||
# Fix /usr/local/bin/tldr: 97: /usr/local/bin/tldr: cannot create /dev/stderr: Permission denied
|
||||
system "sed -i 's, > /dev/stderr,,g' tldr"
|
||||
|
||||
@@ -6325,6 +6325,11 @@ url: https://gitlab.gnome.org/GNOME/nautilus/-/tags
|
||||
activity: high
|
||||
---
|
||||
kind: url
|
||||
name: navi
|
||||
url: https://github.com/denisidoro/navi/releases
|
||||
activity: low
|
||||
---
|
||||
kind: url
|
||||
name: ncat
|
||||
url: https://nmap.org/dist/
|
||||
activity: low
|
||||
@@ -9255,6 +9260,11 @@ url: https://www.samba.org/ftp/tdb/
|
||||
activity: medium
|
||||
---
|
||||
kind: url
|
||||
name: tealdeer
|
||||
url: https://github.com/tealdeer-rs/tealdeer/releases
|
||||
activity: low
|
||||
---
|
||||
kind: url
|
||||
name: teams
|
||||
url: https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/
|
||||
activity: medium
|
||||
|
||||
Reference in New Issue
Block a user