diff options
author | Peter Levine <plevine457@gmail.com> | 2023-09-01 23:19:30 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-06 09:36:00 +0100 |
commit | 8c854b026c8fe98f0563fdda0589aa1922d78cea (patch) | |
tree | be257c94e088eb24f27804261ebfd8da19a399ae /sys-block | |
parent | sys-block/thin-provisioning-tools: remove unsupported archs (diff) | |
download | gentoo-8c854b026c8fe98f0563fdda0589aa1922d78cea.tar.gz gentoo-8c854b026c8fe98f0563fdda0589aa1922d78cea.tar.bz2 gentoo-8c854b026c8fe98f0563fdda0589aa1922d78cea.zip |
sys-block/thin-provisioning-tools: add CRATES for non-live ebuilds
Add CRATES to make it easier to use the 9999 ebuild as a general
template while only updating the crate versions when needed.
Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild | 137 |
1 files changed, 135 insertions, 2 deletions
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild index 0b28b89c3ea4..9e5c860dcdca 100644 --- a/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild +++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild @@ -3,6 +3,136 @@ EAPI=8 +if [[ ${PV} != *9999 ]]; then + CRATES=" + adler@1.0.2 + aho-corasick@1.0.2 + anstyle@1.0.1 + anyhow@1.0.72 + atty@0.2.14 + autocfg@1.1.0 + base64@0.21.2 + bitflags@1.3.2 + bitflags@2.3.3 + bytemuck@1.13.1 + byteorder@1.4.3 + cassowary@0.3.0 + cc@1.0.81 + cfg-if@1.0.0 + clap@4.3.19 + clap_builder@4.3.19 + clap_lex@0.5.0 + console@0.15.7 + crc32c@0.6.4 + crc32fast@1.3.2 + data-encoding@2.4.0 + difflib@0.4.0 + downcast@0.11.0 + duct@0.13.6 + either@1.9.0 + encode_unicode@0.3.6 + env_logger@0.8.4 + errno@0.3.2 + errno-dragonfly@0.1.2 + exitcode@1.1.2 + fastrand@2.0.0 + fixedbitset@0.4.2 + flate2@1.0.26 + float-cmp@0.9.0 + fragile@2.0.0 + getrandom@0.2.10 + hermit-abi@0.1.19 + hermit-abi@0.3.2 + indicatif@0.17.6 + instant@0.1.12 + iovec@0.1.4 + itertools@0.10.5 + lazy_static@1.4.0 + libc@0.2.147 + linux-raw-sys@0.4.5 + log@0.4.19 + memchr@2.5.0 + minimal-lexical@0.2.1 + miniz_oxide@0.7.1 + mockall@0.11.4 + mockall_derive@0.11.4 + nom@7.1.3 + normalize-line-endings@0.3.0 + num-derive@0.4.0 + num-traits@0.2.16 + num_cpus@1.16.0 + number_prefix@0.4.0 + numtoa@0.1.0 + once_cell@1.18.0 + os_pipe@1.1.4 + portable-atomic@1.4.2 + ppv-lite86@0.2.17 + predicates@2.1.5 + predicates-core@1.0.6 + predicates-tree@1.0.9 + proc-macro2@1.0.66 + quick-xml@0.29.0 + quickcheck@1.0.3 + quickcheck_macros@1.0.0 + quote@1.0.32 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rangemap@1.3.0 + redox_syscall@0.2.16 + redox_syscall@0.3.5 + redox_termios@0.1.2 + regex@1.9.1 + regex-automata@0.3.4 + regex-syntax@0.7.4 + retain_mut@0.1.7 + roaring@0.10.2 + rustc_version@0.4.0 + rustix@0.38.6 + safemem@0.3.3 + semver@1.0.18 + shared_child@1.0.0 + strsim@0.10.0 + syn@1.0.109 + syn@2.0.28 + tempfile@3.7.0 + termion@1.5.6 + termtree@0.4.1 + thiserror@1.0.44 + thiserror-impl@1.0.44 + threadpool@1.8.1 + tui@0.19.0 + unicode-ident@1.0.11 + unicode-segmentation@1.10.1 + unicode-width@0.1.10 + wasi@0.11.0+wasi-snapshot-preview1 + winapi@0.3.9 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-x86_64-pc-windows-gnu@0.4.0 + windows-sys@0.45.0 + windows-sys@0.48.0 + windows-targets@0.42.2 + windows-targets@0.48.1 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.0 + " + declare -A GIT_CRATES=( + [rio]="https://github.com/jthornber/rio;2979a720f671e836302c01546f9cc9f7988610c8" + ) +fi + inherit cargo DESCRIPTION="A suite of tools for thin provisioning on Linux" @@ -12,7 +142,10 @@ if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/jthornber/thin-provisioning-tools.git" inherit git-r3 else - SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI=" + https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} + " KEYWORDS="~amd64 ~arm64 ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" fi @@ -27,7 +160,7 @@ src_unpack() { git-r3_src_unpack cargo_live_src_unpack else - default + cargo_src_unpack fi } |