mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
@@ -2,3 +2,5 @@ DIST zellij-0.44.3-crates.tar.xz 46609636 BLAKE2B 7a7fefc95e9780aea5db5d2bfac646
|
||||
DIST zellij-0.44.3.gh.tar.gz 13340102 BLAKE2B 6e190af6006275b2404b8cba8306916198e33d839024b5273596a32bcc04f30722228f0e9b2a773bbe3c031d155e5173d05ecea1ad3905fad5eeb6d0dbb877ae SHA512 5b5f14f8ed6ae9aea962e163b05504b8f999f004ddbf61f7ed789670e234d829b86d000385aec052d73097cbe0dfb23cff6beb191c7291b525b6e9f52f908863
|
||||
DIST zellij-0.45.0-crates.tar.xz 47563744 BLAKE2B 5175c1d0640f4cff4be27f18703e383f6586dfd53c75daea395f4e1d7f65cf840f80ab59bd8ddae7d582d0ba243f92d3371f6b6b2b5a4f98fffaefec2e2e6a91 SHA512 3423a1db44162ab825b1a22bf61fafaea1cd4424dcaee33e837348c8987e8cf9892d930431ae69dc79f2fbae31807bac1e2b1b1cc2cc7ddc393a217f2a2d3a1b
|
||||
DIST zellij-0.45.0.gh.tar.gz 13034224 BLAKE2B 5e73cb160503ab9fefddf6d81d358f837c50f038c6571e4bcb77dfc9f86817b74543baadeef4ed1bb044b2ddb2a0ea7ef7cae2878e5d57f962f97d0ada78662f SHA512 09d7de6550b0826a7f925ec5ec28dab601beaad78a627d1c074f7141eb30d13948e173f13acfbe5000d99479d22efed08b35f342bb87809526b4f1a26e7752cd
|
||||
DIST zellij-0.45.1-crates.tar.xz 47563744 BLAKE2B 5175c1d0640f4cff4be27f18703e383f6586dfd53c75daea395f4e1d7f65cf840f80ab59bd8ddae7d582d0ba243f92d3371f6b6b2b5a4f98fffaefec2e2e6a91 SHA512 3423a1db44162ab825b1a22bf61fafaea1cd4424dcaee33e837348c8987e8cf9892d930431ae69dc79f2fbae31807bac1e2b1b1cc2cc7ddc393a217f2a2d3a1b
|
||||
DIST zellij-0.45.1.gh.tar.gz 13054485 BLAKE2B 24714e84330e478265ba76a0a69f133b18f5f789ae6f690bb11dcce090e56e86447be96834bb7684a2ef95515aea8bce13a0bc94984aeba7987cddc8a0a4d8f3 SHA512 1fa550fe243d8b18a87ff1983631a9a76eb9dde9d1d2c59f0aa6e1bb8b1a677168c469e143de7cc4fcc9ff3a0799c1dc566553ed74bcadab345282b81c105fc8
|
||||
|
||||
98
app-misc/zellij/zellij-0.45.1.ebuild
Normal file
98
app-misc/zellij/zellij-0.45.1.ebuild
Normal file
@@ -0,0 +1,98 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.95.0"
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
inherit cargo desktop shell-completion xdg
|
||||
|
||||
DESCRIPTION="A terminal workspace with batteries included"
|
||||
HOMEPAGE="
|
||||
https://zellij.dev/
|
||||
https://github.com/zellij-org/zellij
|
||||
"
|
||||
SRC_URI="https://github.com/zellij-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
SRC_URI+=" https://github.com/gentoo-crate-dist/zellij/releases/download/v${PV}/${P}-crates.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC MIT
|
||||
MPL-2.0 Unicode-3.0 ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv"
|
||||
IUSE="system-sqlite"
|
||||
|
||||
# libnghttp2 still bundled
|
||||
# https://github.com/alexcrichton/nghttp2-rs/pull/5
|
||||
RDEPEND="
|
||||
system-sqlite? ( >=dev-db/sqlite-3.45.3:3 )
|
||||
net-misc/curl
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# rust does not use *FLAGS from make.conf, silence portage warning
|
||||
# update with proper path to binaries this crate installs, omit leading /
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
QA_PRESTRIPPED="usr/bin/${PN}"
|
||||
|
||||
DOCS=(
|
||||
CHANGELOG.md
|
||||
CODE_OF_CONDUCT.md
|
||||
CONTRIBUTING.md
|
||||
GOVERNANCE.md
|
||||
README.md
|
||||
docs/
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# libsqlite3-sys https://wiki.gentoo.org/wiki/Project:Rust/sys_crates
|
||||
use system-sqlite && export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myfeatures=(
|
||||
plugins_from_target
|
||||
web_server_capability
|
||||
)
|
||||
# disable vendored_curl
|
||||
cargo_src_configure --no-default-features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cargo_src_compile
|
||||
pushd ${PN}-utils 2>/dev/null || die
|
||||
cargo_src_compile
|
||||
popd 2>/dev/null || die
|
||||
|
||||
"$(cargo_target_dir)"/zellij setup --generate-completion bash > zellij.bash || die
|
||||
"$(cargo_target_dir)"/zellij setup --generate-completion fish > zellij.fish || die
|
||||
"$(cargo_target_dir)"/zellij setup --generate-completion zsh > zellij.zsh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
|
||||
dodoc example/*.*
|
||||
|
||||
insinto /usr/share/zellij
|
||||
doins -r example/{themes,layouts}
|
||||
doins -r ${PN}-utils/assets/{layouts,plugins,config,shell} \
|
||||
${PN}-utils/assets/README.md
|
||||
|
||||
domenu assets/zellij.desktop
|
||||
newicon assets/logo.png zellij.png
|
||||
|
||||
newbashcomp zellij.bash zellij
|
||||
newfishcomp zellij.fish zellij.fish
|
||||
newzshcomp zellij.zsh _zellij
|
||||
}
|
||||
Reference in New Issue
Block a user