Files
guru/sci-mathematics/rink/rink-0.9.0.ebuild
Vivian Heisz (vhz) 6b3a21752c sci-mathematics/rink: update MANIFEST and S in 0.9.0
Codeberg appears to have changed the way they created the tarball here,
breaking the existing ebuild and causing verification errors.

The code hasn't changed, but the folder structure has, so this addresses
that.

Closes: https://bugs.gentoo.org/975825
Signed-off-by: Vivian Heisz (vhz) <demize@unstable.systems>
2026-05-29 11:56:30 -04:00

356 lines
7.2 KiB
Bash

# Copyright 2024-2025 demize
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.3
EAPI=8
CRATES="
addr2line@0.21.0
adler@1.0.2
aho-corasick@1.1.3
android-tzdata@0.1.1
android_system_properties@0.1.5
anstream@0.6.13
anstyle-parse@0.2.3
anstyle-query@1.0.2
anstyle-wincon@3.0.2
anstyle@1.0.6
arrayref@0.3.7
arrayvec@0.5.2
ascii@1.1.0
assert-json-diff@2.0.2
assert_cmd@2.0.17
async-channel@1.9.0
async-channel@2.2.1
async-executor@1.11.0
async-global-executor@2.4.1
async-io@1.13.0
async-io@2.3.2
async-lock@2.8.0
async-lock@3.3.0
async-std@1.12.0
async-task@4.7.0
atomic-waker@1.1.2
autocfg@1.2.0
backtrace@0.3.71
base64@0.13.1
bincode@1.3.3
bitflags@1.3.2
bitflags@2.5.0
blake2b_simd@0.5.11
blocking@1.5.1
bstr@0.2.17
bstr@1.12.0
bumpalo@3.16.0
bytes@1.6.0
cc@1.0.95
cfg-if@0.1.10
cfg-if@1.0.0
cfg_aliases@0.2.1
chrono@0.4.38
chunked_transfer@1.5.0
clap@4.5.4
clap_builder@4.5.2
clap_lex@0.7.0
clipboard-win@4.5.0
colorchoice@1.0.0
concurrent-queue@2.4.0
console@0.15.8
console_error_panic_hook@0.1.7
constant_time_eq@0.1.5
core-foundation-sys@0.8.6
core-foundation@0.9.4
crossbeam-utils@0.8.19
ctrlc@3.4.7
curl-sys@0.4.72+curl-8.6.0
curl@0.4.46
difflib@0.4.0
dirs-sys@0.3.7
dirs@1.0.5
dirs@4.0.0
doc-comment@0.3.3
encode_unicode@0.3.6
encoding-index-japanese@1.20141219.5
encoding-index-korean@1.20141219.5
encoding-index-simpchinese@1.20141219.5
encoding-index-singlebyte@1.20141219.5
encoding-index-tradchinese@1.20141219.5
encoding@0.2.33
encoding_index_tests@0.1.4
endian-type@0.1.2
equivalent@1.0.1
errno@0.3.13
error-code@2.3.1
event-listener-strategy@0.4.0
event-listener-strategy@0.5.1
event-listener@2.5.3
event-listener@4.0.3
event-listener@5.3.0
eyre@0.6.12
fastrand@1.9.0
fastrand@2.0.2
fd-lock@3.0.13
float-cmp@0.10.0
foreign-types-shared@0.1.1
foreign-types@0.3.2
futures-channel@0.3.30
futures-core@0.3.30
futures-executor@0.3.30
futures-io@0.3.30
futures-lite@1.13.0
futures-lite@2.3.0
futures-macro@0.3.30
futures-sink@0.3.30
futures-task@0.3.30
futures-util@0.3.30
futures@0.3.30
getrandom@0.1.16
getrandom@0.2.14
gimli@0.28.1
gloo-timers@0.2.6
hashbrown@0.14.3
hermit-abi@0.3.9
httpdate@1.0.3
humantime-serde@1.1.1
humantime@2.1.0
iana-time-zone-haiku@0.1.2
iana-time-zone@0.1.60
indenter@0.3.3
indexmap@2.2.6
instant@0.1.12
io-lifetimes@1.0.11
irc-proto@1.0.0
irc@1.0.0
itoa@1.0.11
jiff-static@0.2.15
jiff-tzdb-platform@0.1.3
jiff-tzdb@0.1.4
jiff@0.2.15
js-sys@0.3.69
kv-log-macro@1.0.7
lazy_static@1.4.0
libc@0.2.174
libredox@0.1.3
libz-sys@1.1.16
linux-raw-sys@0.3.8
linux-raw-sys@0.4.13
lock_api@0.4.12
log@0.4.21
memchr@2.7.2
memoffset@0.6.5
memory_units@0.4.0
miniz_oxide@0.7.2
mio@0.8.11
native-tls@0.2.11
nibble_vec@0.1.0
nix@0.23.2
nix@0.30.1
normalize-line-endings@0.3.0
nu-ansi-term@0.50.0
num-bigint@0.4.4
num-integer@0.1.46
num-rational@0.4.1
num-traits@0.2.18
num_cpus@1.16.0
object@0.32.2
once_cell@1.19.0
openssl-macros@0.1.1
openssl-probe@0.1.5
openssl-sys@0.9.109
openssl@0.10.73
parking@2.2.0
parking_lot@0.12.2
parking_lot_core@0.9.10
pin-project-internal@1.1.5
pin-project-lite@0.2.14
pin-project@1.1.5
pin-utils@0.1.0
piper@0.2.1
pkg-config@0.3.30
polling@2.8.0
polling@3.7.0
portable-atomic-util@0.2.4
portable-atomic@1.11.1
predicates-core@1.0.9
predicates-tree@1.0.12
predicates@3.1.3
proc-macro2@1.0.95
quote@1.0.40
radix_trie@0.2.1
redox_syscall@0.1.57
redox_syscall@0.5.1
redox_users@0.3.5
redox_users@0.4.5
regex-automata@0.1.10
regex-automata@0.4.9
regex-syntax@0.8.5
regex@1.11.1
rust-argon2@0.8.3
rustc-demangle@0.1.23
rustix@0.37.27
rustix@0.38.34
rustyline@9.1.2
ryu@1.0.17
schannel@0.1.23
scoped-tls@1.0.1
scopeguard@1.2.0
security-framework-sys@2.10.0
security-framework@2.10.0
serde-wasm-bindgen@0.6.5
serde@1.0.219
serde_derive@1.0.219
serde_json@1.0.116
serde_spanned@0.6.5
signal-hook-registry@1.4.2
similar-asserts@1.5.0
similar@2.5.0
slab@0.4.9
smallvec@1.13.2
socket2@0.4.10
socket2@0.5.6
str-buf@1.0.6
strsim@0.10.0
strsim@0.11.1
syn@2.0.104
tempfile@3.10.1
termtree@0.5.1
thiserror-impl@1.0.59
thiserror@1.0.59
tiny_http@0.12.0
tokio-macros@2.3.0
tokio-native-tls@0.3.1
tokio-stream@0.1.15
tokio-util@0.7.10
tokio@1.38.2
toml@0.5.11
toml@0.7.8
toml@0.8.12
toml_datetime@0.6.5
toml_edit@0.19.15
toml_edit@0.22.12
tracing-core@0.1.32
tracing@0.1.40
ubyte@0.10.4
unicode-ident@1.0.12
unicode-segmentation@1.11.0
unicode-width@0.1.11
utf8parse@0.2.1
value-bag@1.8.1
vcpkg@0.2.15
wait-timeout@0.2.1
waker-fn@1.1.1
wasi@0.11.0+wasi-snapshot-preview1
wasi@0.9.0+wasi-snapshot-preview1
wasm-bindgen-backend@0.2.92
wasm-bindgen-futures@0.4.42
wasm-bindgen-macro-support@0.2.92
wasm-bindgen-macro@0.2.92
wasm-bindgen-shared@0.2.92
wasm-bindgen-test-macro@0.3.42
wasm-bindgen-test@0.3.42
wasm-bindgen@0.2.92
web-sys@0.3.69
wee_alloc@0.4.5
winapi-i686-pc-windows-gnu@0.4.0
winapi-x86_64-pc-windows-gnu@0.4.0
winapi@0.3.9
windows-core@0.52.0
windows-sys@0.48.0
windows-sys@0.52.0
windows-sys@0.59.0
windows-targets@0.48.5
windows-targets@0.52.6
windows_aarch64_gnullvm@0.48.5
windows_aarch64_gnullvm@0.52.6
windows_aarch64_msvc@0.48.5
windows_aarch64_msvc@0.52.6
windows_i686_gnu@0.48.5
windows_i686_gnu@0.52.6
windows_i686_gnullvm@0.52.6
windows_i686_msvc@0.48.5
windows_i686_msvc@0.52.6
windows_x86_64_gnu@0.48.5
windows_x86_64_gnu@0.52.6
windows_x86_64_gnullvm@0.48.5
windows_x86_64_gnullvm@0.52.6
windows_x86_64_msvc@0.48.5
windows_x86_64_msvc@0.52.6
winnow@0.5.40
winnow@0.6.7
"
inherit cargo desktop
DESCRIPTION="Unit conversion tool, similar to frink"
HOMEPAGE="https://rinkcalc.app/about/"
SRC_URI="
https://codeberg.org/tiffany/rink/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://files.demize.dev/gentoo/${CATEGORY}/${PN}/${PN}-docs-${PV}.tar.gz
${CARGO_CRATE_URIS}
"
S="${WORKDIR}/rink"
LICENSE="MPL-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 MIT MPL-2.0 Unicode-DFS-2016
"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="doc"
# restrict mirror while in ::guru for faster downloads
# (and to avoid needing a volunteer to host the dep tarball)
RESTRICT="mirror"
DEPEND+="
net-misc/curl
dev-libs/openssl
virtual/zlib:=
"
RDEPEND+="net-misc/curl"
QA_FLAGS_IGNORED="usr/bin/rink"
src_configure() {
# RINK_PATH is used in the build process to define the data file location
export RINK_PATH=/usr/share/rink
cargo_src_configure --no-default-features
}
src_install() {
cargo_src_install --path cli
insinto /usr/share/rink
doins core/definitions.units
doins core/currency.units
doins core/datepatterns.txt
newicon -s 192 "${S}/web/site/images/icons/icon-192x192.png" rink.png
newicon -s 512 "${S}/web/site/images/icons/icon-512x512.png" rink.png
# rink.desktop is in the tree, but not part of 0.8.0
# newmenu "cli/rink.desktop" "rink.desktop"
make_desktop_entry "/usr/bin/rink" Rink rink "Utility;Calculator;ConsoleOnly"
doman build/rink.1
doman build/rink.5
doman build/rink.7
doman build/rink-defs.5
doman build/rink-dates.5
if use doc; then
local DOCS=( README.md )
local HTML_DOCS=(
build/rink.1.html
build/rink.5.html
build/rink.7.html
build/rink-defs.5.html
build/rink-dates.5.html
)
einstalldocs
fi
}