Skip to content

Commit

Permalink
sysutils/eza: Add new port
Browse files Browse the repository at this point in the history
eza is a modern, maintained replacement for the venerable
file-listing command-line program ls that ships with Unix
and Linux operating systems, giving it more features and
better defaults. It uses colours to distinguish file types
and metadata. It knows about symlinks, extended attributes,
and Git. And it's small, fast, and just one single binary.

By deliberately making some decisions differently, eza
attempts to be a more featureful, more user-friendly
version of ls.

PR:		273849
  • Loading branch information
kdeguchi authored and MikaelUrankar committed Oct 25, 2023
1 parent 21db449 commit e2536a7
Show file tree
Hide file tree
Showing 4 changed files with 526 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Expand Up @@ -374,6 +374,7 @@
SUBDIR += exa
SUBDIR += exfat-utils
SUBDIR += extipl
SUBDIR += eza
SUBDIR += ezjail
SUBDIR += f2
SUBDIR += f3
Expand Down
192 changes: 192 additions & 0 deletions sysutils/eza/Makefile
@@ -0,0 +1,192 @@
PORTNAME= eza
DISTVERSIONPREFIX= v
DISTVERSION= 0.15.0
CATEGORIES= sysutils

MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp
COMMENT= Modern, maintained replacement for ls
WWW= https://eza.rocks/

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENCE

USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= eza-community

CARGO_CRATES= aho-corasick-1.0.5 \
android-tzdata-0.1.1 \
android_system_properties-0.1.5 \
anes-0.1.6 \
ansiterm-0.12.2 \
anstream-0.6.4 \
anstyle-1.0.3 \
anstyle-parse-0.2.1 \
anstyle-query-1.0.0 \
anstyle-wincon-3.0.1 \
autocfg-1.1.0 \
bitflags-1.3.2 \
bitflags-2.4.0 \
bumpalo-3.13.0 \
byteorder-1.4.3 \
cast-0.3.0 \
cc-1.0.79 \
cfg-if-1.0.0 \
chrono-0.4.31 \
ciborium-0.2.1 \
ciborium-io-0.2.1 \
ciborium-ll-0.2.1 \
clap-4.4.3 \
clap_builder-4.4.2 \
clap_lex-0.5.1 \
colorchoice-1.0.0 \
content_inspector-0.2.4 \
core-foundation-sys-0.8.4 \
criterion-0.5.1 \
criterion-plot-0.5.0 \
crossbeam-channel-0.5.8 \
crossbeam-deque-0.8.3 \
crossbeam-epoch-0.9.15 \
crossbeam-utils-0.8.16 \
datetime-0.5.2 \
dunce-1.0.4 \
either-1.9.0 \
equivalent-1.0.1 \
errno-0.3.3 \
errno-dragonfly-0.1.2 \
fastrand-2.0.0 \
filetime-0.2.22 \
form_urlencoded-1.0.1 \
git2-0.18.1 \
glob-0.3.1 \
half-1.8.2 \
hashbrown-0.14.0 \
hermit-abi-0.3.2 \
humantime-2.1.0 \
humantime-serde-1.1.1 \
iana-time-zone-0.1.57 \
iana-time-zone-haiku-0.1.2 \
idna-0.2.3 \
indexmap-2.0.0 \
is-terminal-0.4.9 \
itertools-0.10.5 \
itoa-1.0.9 \
jobserver-0.1.22 \
js-sys-0.3.64 \
lazy_static-1.4.0 \
libc-0.2.149 \
libgit2-sys-0.16.1+1.7.1 \
libz-sys-1.1.2 \
linux-raw-sys-0.4.7 \
locale-0.2.2 \
log-0.4.20 \
matches-0.1.8 \
memchr-2.6.3 \
memoffset-0.9.0 \
natord-1.0.9 \
normalize-line-endings-0.3.0 \
num-traits-0.2.14 \
num_cpus-1.16.0 \
number_prefix-0.4.0 \
once_cell-1.18.0 \
oorandom-11.1.3 \
openssl-src-111.26.0+1.1.1u \
openssl-sys-0.9.61 \
os_pipe-1.1.4 \
partition-identity-0.3.0 \
percent-encoding-2.3.0 \
phf-0.11.2 \
phf_generator-0.11.2 \
phf_macros-0.11.2 \
phf_shared-0.11.2 \
pkg-config-0.3.19 \
plotters-0.3.5 \
plotters-backend-0.3.5 \
plotters-svg-0.3.5 \
proc-macro2-1.0.66 \
proc-mounts-0.3.0 \
quote-1.0.33 \
rand-0.8.5 \
rand_core-0.6.4 \
rayon-1.7.0 \
rayon-core-1.11.0 \
redox_syscall-0.1.57 \
redox_syscall-0.3.5 \
regex-1.9.5 \
regex-automata-0.3.8 \
regex-syntax-0.7.5 \
rustix-0.38.13 \
ryu-1.0.15 \
same-file-1.0.6 \
scoped_threadpool-0.1.9 \
scopeguard-1.2.0 \
serde-1.0.188 \
serde_derive-1.0.188 \
serde_json-1.0.107 \
serde_spanned-0.6.3 \
shlex-1.2.0 \
similar-2.2.1 \
siphasher-0.3.11 \
snapbox-0.4.14 \
snapbox-macros-0.3.6 \
syn-2.0.29 \
tempfile-3.8.0 \
terminal_size-0.3.0 \
thiserror-1.0.48 \
thiserror-impl-1.0.48 \
timeago-0.4.2 \
tinytemplate-1.2.1 \
tinyvec-1.2.0 \
tinyvec_macros-0.1.0 \
toml_datetime-0.6.3 \
toml_edit-0.20.1 \
trycmd-0.14.19 \
unicode-bidi-0.3.5 \
unicode-ident-1.0.11 \
unicode-normalization-0.1.17 \
unicode-width-0.1.11 \
url-2.2.1 \
utf8parse-0.2.1 \
uutils_term_grid-0.3.0 \
uzers-0.11.3 \
vcpkg-0.2.12 \
wait-timeout-0.2.0 \
walkdir-2.4.0 \
wasm-bindgen-0.2.87 \
wasm-bindgen-backend-0.2.87 \
wasm-bindgen-macro-0.2.87 \
wasm-bindgen-macro-support-0.2.87 \
wasm-bindgen-shared-0.2.87 \
web-sys-0.3.64 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.5 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
windows-0.48.0 \
windows-sys-0.48.0 \
windows-targets-0.48.5 \
windows_aarch64_gnullvm-0.48.5 \
windows_aarch64_msvc-0.48.5 \
windows_i686_gnu-0.48.5 \
windows_i686_msvc-0.48.5 \
windows_x86_64_gnu-0.48.5 \
windows_x86_64_gnullvm-0.48.5 \
windows_x86_64_msvc-0.48.5 \
winnow-0.5.15 \
zoneinfo_compiled-0.5.1

PLIST_FILES= bin/${PORTNAME} \
etc/bash_completion.d/${PORTNAME}.bash \
share/fish/completions/${PORTNAME}.fish \
share/zsh/site-functions/_${PORTNAME}

post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/completions/bash/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}.bash
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${WRKSRC}/completions/fish/${PORTNAME}.fish ${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/completions/zsh/_${PORTNAME} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>

0 comments on commit e2536a7

Please sign in to comment.