x11-terms/alacritty-graphics: QA fixes

- removed leftovers from overlay (SPDX Header, Copyright notice, ...)
- removed arches that haven't been tested recently with the fork
- removed doc USE flag
- updated live ebuild to match 0.16.1 (RUST_MIN_VERSION, LICENSES)
- syntax
- add use of EAPI9's ver_replacing

Signed-off-by: Jason André Charles Gantner <jason@gantner.pw>
This commit is contained in:
Jason André Charles Gantner
2026-02-17 20:49:33 +01:00
parent 871313f514
commit ee51b98efb
2 changed files with 34 additions and 44 deletions

View File

@@ -1,6 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright 2017-2025 Gentoo Authors
# Copyright 2024-2025 Jason André Charles Gantner
# Copyright 2017-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -297,7 +295,7 @@ CRATES="
RUST_MIN_VERSION="1.85.0"
inherit cargo desktop shell-completion
inherit cargo desktop shell-completion eapi9-ver
DESCRIPTION="GPU-accelerated terminal emulator with sixel support"
HOMEPAGE="https://alacritty.org"
@@ -307,7 +305,7 @@ if [ ${PV} == "9999" ] ; then
else
SRC_URI="https://github.com/ayosec/alacritty/archive/refs/tags/v${PV}-graphics.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
KEYWORDS="~amd64"
fi
S="${WORKDIR}/alacritty-${PV}-graphics"
@@ -321,7 +319,7 @@ LICENSE+="
SLOT="0"
IUSE="+wayland X doc"
IUSE="+wayland X"
REQUIRED_USE="|| ( wayland X )"
RESTRICT="mirror"
@@ -349,7 +347,6 @@ RDEPEND="${DEPEND}
BDEPEND="
dev-build/cmake
app-text/scdoc
${RUST_DEPEND}
"
src_unpack() {
@@ -365,7 +362,7 @@ src_unpack() {
src_configure() {
local myfeatures=(
$(usex X x11 '')
$(usev X x11)
$(usev wayland)
)
cargo_src_configure --no-default-features
@@ -381,6 +378,11 @@ src_compile() {
cargo_src_compile
}
src_test() {
cd alacritty || die
cargo_src_test
}
src_install() {
cargo_src_install --path alacritty
@@ -403,22 +405,15 @@ src_install() {
insinto /usr/share/alacritty
doins -r scripts
if use doc; then
local DOCS=(
CHANGELOG.md
README.md
)
einstalldocs
fi
}
src_test() {
cd alacritty || die
cargo_src_test
local DOCS=(
CHANGELOG.md
README.md
)
einstalldocs
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
if ver_replacing -ne "${PV}" ; then
einfo "Configuration files for ${CATEGORY}/${PN}"
einfo "in \$HOME often need to be updated after a version change"
einfo ""

View File

@@ -1,13 +1,11 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright 2017-2024 Gentoo Authors
# Copyright 2024 Jason André Charles Gantner
# Copyright 2017-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VERSION="1.74.0"
RUST_MIN_VERSION="1.85.0"
inherit cargo desktop shell-completion
inherit cargo desktop shell-completion eapi9-ver
DESCRIPTION="GPU-accelerated terminal emulator with sixel support"
HOMEPAGE="https://alacritty.org"
@@ -17,7 +15,7 @@ if [ ${PV} == "9999" ] ; then
else
SRC_URI="https://github.com/ayosec/alacritty/archive/refs/tags/v${PV}-graphics.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
KEYWORDS="~amd64"
fi
S="${WORKDIR}/alacritty-${PV}-graphics"
@@ -26,12 +24,12 @@ LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0
Unicode-DFS-2016
Unicode-DFS-2016 Unicode-3.0
"
SLOT="0"
IUSE="+wayland X doc"
IUSE="+wayland X"
REQUIRED_USE="|| ( wayland X )"
RESTRICT="mirror"
@@ -59,7 +57,6 @@ RDEPEND="${DEPEND}
BDEPEND="
dev-build/cmake
app-text/scdoc
${RUST_DEPEND}
"
src_unpack() {
@@ -75,7 +72,7 @@ src_unpack() {
src_configure() {
local myfeatures=(
$(usex X x11 '')
$(usev X x11)
$(usev wayland)
)
cargo_src_configure --no-default-features
@@ -91,6 +88,11 @@ src_compile() {
cargo_src_compile
}
src_test() {
cd alacritty || die
cargo_src_test
}
src_install() {
cargo_src_install --path alacritty
@@ -113,22 +115,15 @@ src_install() {
insinto /usr/share/alacritty
doins -r scripts
if use doc; then
local DOCS=(
CHANGELOG.md
README.md
)
einstalldocs
fi
}
src_test() {
cd alacritty || die
cargo_src_test
local DOCS=(
CHANGELOG.md
README.md
)
einstalldocs
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
if ver_replacing -ne "${PV}" ; then
einfo "Configuration files for ${CATEGORY}/${PN}"
einfo "in \$HOME often need to be updated after a version change"
einfo ""