# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup cargo 1.0 github.setup ogham exa 0.10.1 v revision 5 categories sysutils platforms darwin maintainers {catlett.info:chad @chadcatlett} \ {harens @harens} \ openmaintainer license MIT description a modern replacement for ls long_description ${name} is an improved file lister with 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. github.tarball_from archive homepage https://the.exa.website/ checksums exa-${version}.tar.gz \ rmd160 5809f633e71881eff721d2de34c1d0d8312d5f80 \ sha256 ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c \ size 574807 depends_lib-append port:libiconv \ path:lib/pkgconfig/libgit2.pc:libgit2 \ port:zlib installs_libs no # cargo.lock sets version as 0.11.0-pre, which causes a build failure # Remove this in a future update build.pre_args-replace --frozen --offline variant git description {Build with git functionality} {} variant doc description {Build man pages} { if {${os.platform} eq "darwin" && ${os.major} < 17 || \ ${configure.build_arch} eq "arm64"} { depends_build-append port:go-md2man post-build { system -W ${worksrcpath}/man "${prefix}/bin/go-md2man \ -in=${name}.1.md -out=${name}.1" system -W ${worksrcpath}/man "${prefix}/bin/go-md2man \ -in=${name}_colors.5.md -out=${name}_colors.5" } notes " The man pages for macOS 10.12 and below or Apple Silicon have\ minor formatting errors as they were built with go-md2man instead\ of pandoc. " } else { depends_build-append port:pandoc post-build { system -W ${worksrcpath}/man "${prefix}/bin/pandoc --standalone \ -f markdown -t man exa.1.md > exa.1" system -W ${worksrcpath}/man "${prefix}/bin/pandoc --standalone \ -f markdown -t man exa_colors.5.md > exa_colors.5" } } } default_variants +git +doc if {![variant_isset git]} { build.args --no-default-features } cargo.crates \ ansi_term 0.12.1 d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2 \ autocfg 1.0.1 cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a \ bitflags 1.2.1 cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693 \ byteorder 1.4.3 14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610 \ cc 1.0.67 e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd \ cfg-if 1.0.0 baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd \ datetime 0.5.2 44c3f7a77f3e57fedf80e09136f2d8777ebf621207306f6d96d610af048354bc \ form_urlencoded 1.0.1 5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191 \ git2 0.13.17 1d250f5f82326884bd39c2853577e70a121775db76818ffa452ed1e80de12986 \ glob 0.3.0 9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574 \ hermit-abi 0.1.18 322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c \ idna 0.2.2 89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21 \ jobserver 0.1.21 5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2 \ lazy_static 1.4.0 e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646 \ libc 0.2.93 9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41 \ libgit2-sys 0.12.18+1.1.0 3da6a42da88fc37ee1ecda212ffa254c25713532980005d5f7c0b0fbe7e6e885 \ libz-sys 1.1.2 602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655 \ locale 0.2.2 5fdbe492a9c0238da900a1165c42fc5067161ce292678a6fe80921f30fe307fd \ log 0.4.14 51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710 \ matches 0.1.8 7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08 \ natord 1.0.9 308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c \ num_cpus 1.13.0 05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3 \ number_prefix 0.4.0 830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3 \ openssl-src 111.15.0+1.1.1k b1a5f6ae2ac04393b217ea9f700cd04fa9bf3d93fae2872069f3d15d908af70a \ openssl-sys 0.9.61 313752393519e876837e09e1fa183ddef0be7735868dced3196f4472d536277f \ pad 0.1.6 d2ad9b889f1b12e0b9ee24db044b5129150d5eada288edc800f789928dc8c0e3 \ percent-encoding 2.1.0 d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e \ pkg-config 0.3.19 3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c \ redox_syscall 0.1.57 41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce \ scoped_threadpool 0.1.9 1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8 \ term_grid 0.1.7 230d3e804faaed5a39b08319efb797783df2fd9671b39b7596490cb486d702cf \ term_size 0.3.2 1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9 \ tinyvec 1.2.0 5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342 \ tinyvec_macros 0.1.0 cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c \ unicode-bidi 0.3.5 eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0 \ unicode-normalization 0.1.17 07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef \ unicode-width 0.1.8 9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3 \ url 2.2.1 9ccd964113622c8e9322cfac19eb1004a07e636c545f325da085d5cdde6f1f8b \ users 0.11.0 24cc0f6d6f267b73e5a2cadf007ba8f9bc39c6a6f9666f8cf25ea809a153b032 \ vcpkg 0.2.11 b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb \ winapi 0.3.9 5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419 \ winapi-i686-pc-windows-gnu 0.4.0 ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6 \ winapi-x86_64-pc-windows-gnu 0.4.0 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f \ zoneinfo_compiled 0.5.1 64fbebe65e899530f43bd760b23fda8f141118f4db49952b02998cbd0907a5de destroot { xinstall -m 755 ${worksrcpath}/target/[cargo.rust_platform]/release/${name} ${destroot}${prefix}/bin/ if {[variant_isset doc]} { xinstall -m 444 ${worksrcpath}/man/${name}.1 ${destroot}${prefix}/share/man/man1/ xinstall -m 444 ${worksrcpath}/man/${name}_colors.5 ${destroot}${prefix}/share/man/man5/ } xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} \ README.md LICENCE \ ${destroot}${prefix}/share/doc/${name} xinstall -d ${destroot}${prefix}/share/bash-completion/completions xinstall -m 644 ${worksrcpath}/completions/completions.bash \ ${destroot}${prefix}/share/bash-completion/completions/exa xinstall -d ${destroot}${prefix}/share/zsh/site-functions xinstall -m 644 ${worksrcpath}/completions/completions.zsh \ ${destroot}${prefix}/share/zsh/site-functions/_exa xinstall -d ${destroot}${prefix}/share/fish/completions xinstall -m 644 ${worksrcpath}/completions/completions.fish \ ${destroot}${prefix}/share/fish/completions/exa.fish } test.run yes test.cmd ${cargo.bin} test test.args --target [cargo.rust_platform]