From 364ef546a5723ee4dc6f1dcb4efead797d57a0fa Mon Sep 17 00:00:00 2001 From: Lucio Sauer Date: Mon, 26 Jun 2023 22:36:53 +0200 Subject: [PATCH] app-misc/onefetch: add 2.18.1 Signed-off-by: Lucio Sauer --- app-misc/onefetch/Manifest | 1 + .../onefetch-2.18.1-zstd-pkg-config.patch | 31 ++ app-misc/onefetch/onefetch-2.18.1.ebuild | 474 ++++++++++++++++++ 3 files changed, 506 insertions(+) create mode 100644 app-misc/onefetch/files/onefetch-2.18.1-zstd-pkg-config.patch create mode 100644 app-misc/onefetch/onefetch-2.18.1.ebuild diff --git a/app-misc/onefetch/Manifest b/app-misc/onefetch/Manifest index 1d345af4dd..e51b51ccc2 100644 --- a/app-misc/onefetch/Manifest +++ b/app-misc/onefetch/Manifest @@ -231,6 +231,7 @@ DIST num_threads-0.1.6.crate 7334 BLAKE2B 416efdf395b0299b6b01e1508823afdda08cf6 DIST object-0.30.3.crate 258901 BLAKE2B 73e190fcbf7c47950ac036306ca8e6e03bd1772466cd580fc51e246868cc69c4e49c712601759533ea650c806a8363d0d77582e1363ce2b5f92d4b7439fde91b SHA512 61414475d3fcc7c4c3ad8c1316f6ada7801e28590d98bd425fa246f091d464de4eff7eba7cd74904517dee95ae0673e3d581400adb971306955a0aefa814172c DIST once_cell-1.17.1.crate 32856 BLAKE2B 8bde2aaaf9ef45d1f6b8458686179f1fe9295ee8faea269e9b49779583ce26ab9dafe988c3584e841a9e5d05e28430ca967ef3b25e755f48f0120d9c99cdb7bc SHA512 1302d51801e38bfee23e74c0046f1ecb1d3c27309b5fe11c2b6c99553b357db502ce1718695602f9d8b10429e8ff03f91c016d5d604957083728293824c05904 DIST onefetch-2.18.0.gh.tar.gz 1932087 BLAKE2B 4c0e09d68dba351db42006079c71b39623531138f3f0c9fae1b1e1e9fa0480c2bbe04b7b800f5d4d87e1721121f1a9241819cd23597c0b278e2757ddd74a6851 SHA512 4ab8c5da8ac2c14146c7a775fadf2f329b5846ac5bd47b6d71ee1599ee8e74d613ba72f7ccdad7b1303ff1246fc3c9131dadff30c9e05f89eb04b61dc1e03289 +DIST onefetch-2.18.1.gh.tar.gz 1934244 BLAKE2B 014dbc553db2eed997b33a3a791ea5ff7719b266c43a4aea9c915ee63b3d2981100f990ce546cf862a7883fbccaaef388d579ba2700ae52617f3ea3cd5cde1bb SHA512 4ce4bc860264d8ac645b21b8593a02bf6d1ffd4e8c170552ca3c42d05989dbe77f37b1a6c0d1520efc6f3dd79b66a659735c21a7bc3df06a41a0d21596242031 DIST oorandom-11.1.3.crate 10068 BLAKE2B 443ced49f63015823866257a36a88e566f75adaa79511c1c73f1190ec8855ca590d2b6ece07c2ad5e9e47a89f7891af6e9e43b7d74d9ac57cb3551e60b50aca1 SHA512 51ae60ef51da56d7673f36a6c5b99b743580c5f5be54fdcb54b69e5e2f6bbba3267f96b74e7cd6dee6962dfa6696fd9ed073f22726a2861b8f2601946a8efab9 DIST os_info-3.7.0.crate 24133 BLAKE2B 321f1c47fbb4425bb7a779a45cbd4edd0c8e57bc97739b80ff28ed19144913af775aabc0f328fafad6afb75f2a54c8b0132c943eaa713b469138144a68497e4f SHA512 46945e48e10677fed222a6f34e428a7fbbadc4535b929f141d98483246d1f3cfc45eee905f1bd75123a101d04c5111b6376233a5cc50df2caa482a461fa49d06 DIST output_vt100-0.1.3.crate 4473 BLAKE2B 8c75dbcd413e1273ddf077f3b57996953d70376be6e438ee1a4de83a8c3c535d4cc866849aed91df74aa9b22d41d428b1142cefe035dab7404ec89af9efaa832 SHA512 ccca3b4c582e860b0643dea78302fbcb96f8f86b356041ae9c685e7c48f1721fd3366dd1bea39afc1bcef03b298d0f6c87918a1ba92a56e6b06bc8b4123c0d89 diff --git a/app-misc/onefetch/files/onefetch-2.18.1-zstd-pkg-config.patch b/app-misc/onefetch/files/onefetch-2.18.1-zstd-pkg-config.patch new file mode 100644 index 0000000000..ceb8de956b --- /dev/null +++ b/app-misc/onefetch/files/onefetch-2.18.1-zstd-pkg-config.patch @@ -0,0 +1,31 @@ +Force usage of pkg-config to probe for system library. +If unset, zstd-sys builds libzstd from source and statically links it. + +Beginning with zstd-sys-2.0.7 you may alternatively +export ZSTD_SYS_USE_PKG_CONFIG=1 to unbundle the library. +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -2534,6 +2534,7 @@ dependencies = [ + "typetag", + "winres", + "yaml-rust", ++ "zstd", + ] + + [[package]] +@@ -4113,4 +4114,5 @@ checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b" + dependencies = [ + "cc", + "libc", ++ "pkg-config", + ] +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -51,6 +51,7 @@ tokei = "12.1.2" + typetag = "0.2" + yaml-rust = "0.4.5" + parking_lot = "0.12" ++zstd = { version="*", features = ["pkg-config"] } + + [dev-dependencies] + criterion = "0.5.1" diff --git a/app-misc/onefetch/onefetch-2.18.1.ebuild b/app-misc/onefetch/onefetch-2.18.1.ebuild new file mode 100644 index 0000000000..1a923abb8e --- /dev/null +++ b/app-misc/onefetch/onefetch-2.18.1.ebuild @@ -0,0 +1,474 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.7 + +EAPI=8 + +CRATES=" + addr2line@0.19.0 + adler@1.0.2 + ahash@0.8.1 + aho-corasick@0.7.18 + aho-corasick@1.0.1 + android_system_properties@0.1.4 + anes@0.1.6 + ansi_term@0.12.1 + anstream@0.3.1 + anstyle-parse@0.2.0 + anstyle-query@1.0.0 + anstyle-wincon@1.0.1 + anstyle@1.0.0 + anyhow@1.0.71 + arc-swap@1.5.0 + arrayvec@0.7.2 + askalono@0.4.6 + atty@0.2.14 + autocfg@1.1.0 + backtrace@0.3.67 + base64@0.21.2 + bit_field@0.10.1 + bitflags@1.3.2 + bitflags@2.2.1 + block-buffer@0.10.3 + bstr@0.2.17 + bstr@1.3.0 + btoi@0.4.3 + bumpalo@3.12.0 + byte-unit@4.0.19 + bytecount@0.6.3 + bytemuck@1.13.1 + byteorder@1.4.3 + cargo_toml@0.15.3 + cast@0.3.0 + cc@1.0.73 + cfg-if@1.0.0 + chrono-tz-build@0.0.2 + chrono-tz@0.6.1 + chrono@0.4.22 + ciborium-io@0.2.0 + ciborium-ll@0.2.0 + ciborium@0.2.0 + clap@2.34.0 + clap@4.3.4 + clap_builder@4.3.4 + clap_complete@4.3.1 + clap_derive@4.3.2 + clap_lex@0.5.0 + clru@0.6.1 + cmake@0.1.48 + color_quant@1.1.0 + colorchoice@1.0.0 + console@0.15.5 + core-foundation-sys@0.8.3 + cpufeatures@0.2.5 + crc-catalog@2.1.0 + crc32fast@1.3.2 + crc@3.0.0 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-channel@0.5.8 + crossbeam-deque@0.8.1 + crossbeam-epoch@0.9.8 + crossbeam-queue@0.3.8 + crossbeam-utils@0.8.8 + crossbeam@0.8.2 + crunchy@0.2.2 + crypto-common@0.1.6 + ctor@0.1.22 + dashmap@4.0.2 + deunicode@0.4.3 + diff@0.1.13 + digest@0.10.5 + dirs-sys@0.3.7 + dirs@3.0.2 + dunce@1.0.3 + either@1.6.1 + enable-ansi-support@0.2.1 + encode_unicode@0.3.6 + encoding_rs@0.8.31 + encoding_rs_io@0.1.7 + env_logger@0.8.4 + erased-serde@0.3.24 + errno-dragonfly@0.1.2 + errno@0.2.8 + errno@0.3.1 + exr@1.5.2 + fastrand@1.9.0 + filetime@0.2.16 + flate2@1.0.25 + flume@0.10.12 + fnv@1.0.7 + form_urlencoded@1.0.1 + fs_extra@1.2.0 + futures-channel@0.3.28 + futures-core@0.3.28 + futures-executor@0.3.28 + futures-io@0.3.28 + futures-macro@0.3.28 + futures-sink@0.3.28 + futures-task@0.3.28 + futures-timer@3.0.2 + futures-util@0.3.28 + futures@0.3.28 + generic-array@0.14.6 + getrandom@0.2.8 + ghost@0.1.7 + gif@0.12.0 + gimli@0.27.2 + git2@0.17.2 + gix-actor@0.20.0 + gix-actor@0.21.0 + gix-attributes@0.12.0 + gix-attributes@0.13.1 + gix-bitmap@0.2.4 + gix-chunk@0.4.2 + gix-command@0.2.5 + gix-commitgraph@0.16.0 + gix-config-value@0.12.1 + gix-config@0.23.0 + gix-credentials@0.15.0 + gix-date@0.5.1 + gix-diff@0.30.1 + gix-discover@0.18.0 + gix-discover@0.19.0 + gix-features@0.29.0 + gix-features@0.30.0 + gix-fs@0.1.1 + gix-fs@0.2.0 + gix-glob@0.7.0 + gix-glob@0.8.0 + gix-hash@0.11.2 + gix-hashtable@0.2.1 + gix-ignore@0.2.0 + gix-ignore@0.3.0 + gix-index@0.16.0 + gix-index@0.18.0 + gix-lock@5.0.1 + gix-lock@6.0.0 + gix-mailmap@0.13.0 + gix-negotiate@0.2.1 + gix-object@0.29.1 + gix-object@0.30.0 + gix-odb@0.47.0 + gix-pack@0.37.0 + gix-path@0.8.1 + gix-prompt@0.5.1 + gix-quote@0.4.4 + gix-ref@0.29.0 + gix-ref@0.30.0 + gix-refspec@0.11.0 + gix-revision@0.15.2 + gix-revwalk@0.1.0 + gix-sec@0.8.1 + gix-tempfile@5.0.3 + gix-tempfile@6.0.0 + gix-testtools@0.12.0 + gix-traverse@0.25.0 + gix-traverse@0.27.0 + gix-url@0.19.0 + gix-utils@0.1.2 + gix-validate@0.7.5 + gix-worktree@0.17.0 + gix-worktree@0.19.0 + gix@0.46.0 + globset@0.4.8 + globwalk@0.8.1 + grep-matcher@0.1.5 + grep-searcher@0.1.8 + half@1.8.2 + half@2.1.0 + hashbrown@0.12.3 + hashbrown@0.13.1 + heck@0.4.1 + hermit-abi@0.1.19 + hermit-abi@0.3.1 + hex@0.4.3 + home@0.5.5 + human-panic@1.1.5 + humansize@1.1.1 + humantime@2.1.0 + iana-time-zone@0.1.46 + idna@0.2.3 + ignore@0.4.18 + image@0.24.6 + imara-diff@0.1.5 + indexmap@1.9.1 + insta@1.29.0 + instant@0.1.12 + inventory@0.3.3 + io-close@0.3.7 + io-lifetimes@1.0.10 + is-terminal@0.4.7 + is_ci@1.1.1 + itertools@0.10.5 + itoa@1.0.4 + jobserver@0.1.24 + jpeg-decoder@0.3.0 + js-sys@0.3.60 + jwalk@0.8.1 + kstring@2.0.0 + lazy_static@1.4.0 + lebe@0.5.2 + libc@0.2.142 + libgit2-sys@0.15.2+1.6.4 + libz-ng-sys@1.1.8 + libz-sys@1.1.8 + linked-hash-map@0.5.6 + linux-raw-sys@0.1.3 + linux-raw-sys@0.3.4 + lock_api@0.4.7 + log@0.4.17 + lzma-sys@0.1.19 + matches@0.1.9 + memchr@2.5.0 + memmap2@0.3.1 + memmap2@0.5.3 + memoffset@0.6.5 + minimal-lexical@0.2.1 + miniz_oxide@0.6.2 + nanorand@0.7.0 + nom@7.1.1 + npm-package-json@0.1.3 + num-format@0.4.4 + num-integer@0.1.45 + num-rational@0.4.0 + num-traits@0.2.15 + num_cpus@1.13.1 + num_threads@0.1.6 + object@0.30.3 + once_cell@1.17.1 + oorandom@11.1.3 + os_info@3.7.0 + output_vt100@0.1.3 + owo-colors@3.5.0 + parking_lot@0.11.2 + parking_lot@0.12.1 + parking_lot_core@0.8.5 + parking_lot_core@0.9.3 + parse-zoneinfo@0.3.0 + paste@1.0.7 + percent-encoding@2.1.0 + pest@2.4.0 + pest_derive@2.4.0 + pest_generator@2.4.0 + pest_meta@2.4.0 + phf@0.10.1 + phf_codegen@0.10.0 + phf_generator@0.10.0 + phf_shared@0.10.0 + pin-project-internal@1.0.10 + pin-project-lite@0.2.9 + pin-project@1.0.10 + pin-utils@0.1.0 + pkg-config@0.3.25 + plotters-backend@0.3.4 + plotters-svg@0.3.3 + plotters@0.3.4 + png@0.17.7 + ppv-lite86@0.2.16 + pretty_assertions@1.3.0 + proc-macro2@1.0.56 + prodash@23.1.2 + prodash@25.0.0 + qoi@0.4.1 + quote@1.0.26 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.3 + rayon-core@1.9.3 + rayon@1.5.3 + redox_syscall@0.2.13 + redox_users@0.4.3 + regex-automata@0.1.10 + regex-syntax@0.7.2 + regex@1.8.4 + rmp-serde@0.14.4 + rmp@0.8.11 + rstest@0.17.0 + rstest_macros@0.17.0 + rustc-demangle@0.1.21 + rustc_version@0.4.0 + rustix@0.36.4 + rustix@0.37.15 + rustversion@1.0.6 + ryu@1.0.10 + same-file@1.0.6 + scopeguard@1.1.0 + semver@1.0.17 + serde@1.0.160 + serde_derive@1.0.160 + serde_json@1.0.96 + serde_spanned@0.6.1 + serde_yaml@0.9.21 + sha1@0.10.5 + sha1_smol@1.0.0 + signal-hook-registry@1.4.0 + signal-hook@0.3.14 + similar@2.2.0 + siphasher@0.3.10 + slab@0.4.8 + slug@0.1.4 + smallvec@1.10.0 + spin@0.9.8 + static_assertions@1.1.0 + strsim@0.10.0 + strsim@0.8.0 + strum@0.25.0 + strum_macros@0.25.0 + syn@1.0.109 + syn@2.0.13 + tar@0.4.38 + tempfile@3.4.0 + tera@1.17.1 + term_size@0.3.2 + termcolor@1.1.3 + textwrap@0.11.0 + thiserror-impl@1.0.40 + thiserror@1.0.40 + thread_local@1.1.4 + threadpool@1.8.1 + tiff@0.8.1 + time-core@0.1.1 + time-humanize@0.1.3 + time-macros@0.2.9 + time@0.3.22 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.0 + tokei@12.1.2 + toml@0.5.9 + toml@0.7.3 + toml_datetime@0.6.1 + toml_edit@0.19.6 + typenum@1.15.0 + typetag-impl@0.2.8 + typetag@0.2.8 + ucd-trie@0.1.3 + uluru@3.0.0 + uncased@0.9.7 + unic-char-property@0.9.0 + unic-char-range@0.9.0 + unic-common@0.9.0 + unic-segment@0.9.0 + unic-ucd-segment@0.9.0 + unic-ucd-version@0.9.0 + unicode-bidi@0.3.8 + unicode-bom@2.0.2 + unicode-ident@1.0.9 + unicode-normalization@0.1.19 + unicode-width@0.1.9 + unsafe-libyaml@0.2.7 + url@2.2.2 + utf8-width@0.1.6 + utf8parse@0.2.1 + uuid@1.3.1 + vcpkg@0.2.15 + vec_map@0.8.2 + version_check@0.9.4 + walkdir@2.3.2 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.83 + wasm-bindgen-macro-support@0.2.83 + wasm-bindgen-macro@0.2.83 + wasm-bindgen-shared@0.2.83 + wasm-bindgen@0.2.83 + web-sys@0.3.60 + weezl@0.1.6 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.36.1 + windows-sys@0.42.0 + windows-sys@0.48.0 + windows-targets@0.48.0 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.0 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.36.1 + windows_aarch64_msvc@0.42.0 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.36.1 + windows_i686_gnu@0.42.0 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.36.1 + windows_i686_msvc@0.42.0 + windows_i686_msvc@0.48.0 + windows_x86_64_gnu@0.36.1 + windows_x86_64_gnu@0.42.0 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnullvm@0.42.0 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_msvc@0.36.1 + windows_x86_64_msvc@0.42.0 + windows_x86_64_msvc@0.48.0 + winnow@0.3.5 + winres@0.1.12 + xz2@0.1.7 + yaml-rust@0.4.5 + yansi@0.5.1 + zstd-safe@5.0.2+zstd.1.5.2 + zstd-sys@2.0.1+zstd.1.5.2 + zstd@0.11.2+zstd.1.5.2 +" + +inherit cargo shell-completion + +DESCRIPTION="Command-line Git information tool" +HOMEPAGE="https://onefetch.dev" +SRC_URI="https://github.com/o2sh/onefetch/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} +" +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB + || ( CC0-1.0 MIT-0 ) +" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=" + ${FILESDIR}/${P}-zstd-pkg-config.patch +" + +DEPEND="app-arch/zstd + >=dev-libs/libgit2-1.6.4 completions/${PN} || die + $_completion fish > completions/${PN}.fish || die + $_completion zsh > completions/_${PN} || die +} + +src_install() { + doman docs/${PN}.1 + + dobashcomp completions/${PN} + dofishcomp completions/${PN}.fish + dozshcomp completions/_${PN} + + cargo_src_install + dodoc {CHANGELOG,README}.md +}