mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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:
@@ -1,6 +1,4 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# Copyright 2017-2026 Gentoo Authors
|
||||||
# Copyright 2017-2025 Gentoo Authors
|
|
||||||
# Copyright 2024-2025 Jason André Charles Gantner
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@@ -297,7 +295,7 @@ CRATES="
|
|||||||
|
|
||||||
RUST_MIN_VERSION="1.85.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"
|
DESCRIPTION="GPU-accelerated terminal emulator with sixel support"
|
||||||
HOMEPAGE="https://alacritty.org"
|
HOMEPAGE="https://alacritty.org"
|
||||||
@@ -307,7 +305,7 @@ if [ ${PV} == "9999" ] ; then
|
|||||||
else
|
else
|
||||||
SRC_URI="https://github.com/ayosec/alacritty/archive/refs/tags/v${PV}-graphics.tar.gz -> ${P}.tar.gz
|
SRC_URI="https://github.com/ayosec/alacritty/archive/refs/tags/v${PV}-graphics.tar.gz -> ${P}.tar.gz
|
||||||
${CARGO_CRATE_URIS}"
|
${CARGO_CRATE_URIS}"
|
||||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
S="${WORKDIR}/alacritty-${PV}-graphics"
|
S="${WORKDIR}/alacritty-${PV}-graphics"
|
||||||
@@ -321,7 +319,7 @@ LICENSE+="
|
|||||||
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="+wayland X doc"
|
IUSE="+wayland X"
|
||||||
REQUIRED_USE="|| ( wayland X )"
|
REQUIRED_USE="|| ( wayland X )"
|
||||||
|
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
@@ -349,7 +347,6 @@ RDEPEND="${DEPEND}
|
|||||||
BDEPEND="
|
BDEPEND="
|
||||||
dev-build/cmake
|
dev-build/cmake
|
||||||
app-text/scdoc
|
app-text/scdoc
|
||||||
${RUST_DEPEND}
|
|
||||||
"
|
"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
@@ -365,7 +362,7 @@ src_unpack() {
|
|||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local myfeatures=(
|
local myfeatures=(
|
||||||
$(usex X x11 '')
|
$(usev X x11)
|
||||||
$(usev wayland)
|
$(usev wayland)
|
||||||
)
|
)
|
||||||
cargo_src_configure --no-default-features
|
cargo_src_configure --no-default-features
|
||||||
@@ -381,6 +378,11 @@ src_compile() {
|
|||||||
cargo_src_compile
|
cargo_src_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd alacritty || die
|
||||||
|
cargo_src_test
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cargo_src_install --path alacritty
|
cargo_src_install --path alacritty
|
||||||
|
|
||||||
@@ -403,22 +405,15 @@ src_install() {
|
|||||||
insinto /usr/share/alacritty
|
insinto /usr/share/alacritty
|
||||||
doins -r scripts
|
doins -r scripts
|
||||||
|
|
||||||
if use doc; then
|
local DOCS=(
|
||||||
local DOCS=(
|
CHANGELOG.md
|
||||||
CHANGELOG.md
|
README.md
|
||||||
README.md
|
)
|
||||||
)
|
einstalldocs
|
||||||
einstalldocs
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
cd alacritty || die
|
|
||||||
cargo_src_test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
if ver_replacing -ne "${PV}" ; then
|
||||||
einfo "Configuration files for ${CATEGORY}/${PN}"
|
einfo "Configuration files for ${CATEGORY}/${PN}"
|
||||||
einfo "in \$HOME often need to be updated after a version change"
|
einfo "in \$HOME often need to be updated after a version change"
|
||||||
einfo ""
|
einfo ""
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# Copyright 2017-2026 Gentoo Authors
|
||||||
# Copyright 2017-2024 Gentoo Authors
|
|
||||||
# Copyright 2024 Jason André Charles Gantner
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
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"
|
DESCRIPTION="GPU-accelerated terminal emulator with sixel support"
|
||||||
HOMEPAGE="https://alacritty.org"
|
HOMEPAGE="https://alacritty.org"
|
||||||
@@ -17,7 +15,7 @@ if [ ${PV} == "9999" ] ; then
|
|||||||
else
|
else
|
||||||
SRC_URI="https://github.com/ayosec/alacritty/archive/refs/tags/v${PV}-graphics.tar.gz -> ${P}.tar.gz
|
SRC_URI="https://github.com/ayosec/alacritty/archive/refs/tags/v${PV}-graphics.tar.gz -> ${P}.tar.gz
|
||||||
${CARGO_CRATE_URIS}"
|
${CARGO_CRATE_URIS}"
|
||||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
S="${WORKDIR}/alacritty-${PV}-graphics"
|
S="${WORKDIR}/alacritty-${PV}-graphics"
|
||||||
@@ -26,12 +24,12 @@ LICENSE="Apache-2.0"
|
|||||||
# Dependent crate licenses
|
# Dependent crate licenses
|
||||||
LICENSE+="
|
LICENSE+="
|
||||||
Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0
|
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"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="+wayland X doc"
|
IUSE="+wayland X"
|
||||||
REQUIRED_USE="|| ( wayland X )"
|
REQUIRED_USE="|| ( wayland X )"
|
||||||
|
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
@@ -59,7 +57,6 @@ RDEPEND="${DEPEND}
|
|||||||
BDEPEND="
|
BDEPEND="
|
||||||
dev-build/cmake
|
dev-build/cmake
|
||||||
app-text/scdoc
|
app-text/scdoc
|
||||||
${RUST_DEPEND}
|
|
||||||
"
|
"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
@@ -75,7 +72,7 @@ src_unpack() {
|
|||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local myfeatures=(
|
local myfeatures=(
|
||||||
$(usex X x11 '')
|
$(usev X x11)
|
||||||
$(usev wayland)
|
$(usev wayland)
|
||||||
)
|
)
|
||||||
cargo_src_configure --no-default-features
|
cargo_src_configure --no-default-features
|
||||||
@@ -91,6 +88,11 @@ src_compile() {
|
|||||||
cargo_src_compile
|
cargo_src_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd alacritty || die
|
||||||
|
cargo_src_test
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cargo_src_install --path alacritty
|
cargo_src_install --path alacritty
|
||||||
|
|
||||||
@@ -113,22 +115,15 @@ src_install() {
|
|||||||
insinto /usr/share/alacritty
|
insinto /usr/share/alacritty
|
||||||
doins -r scripts
|
doins -r scripts
|
||||||
|
|
||||||
if use doc; then
|
local DOCS=(
|
||||||
local DOCS=(
|
CHANGELOG.md
|
||||||
CHANGELOG.md
|
README.md
|
||||||
README.md
|
)
|
||||||
)
|
einstalldocs
|
||||||
einstalldocs
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
cd alacritty || die
|
|
||||||
cargo_src_test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
if ver_replacing -ne "${PV}" ; then
|
||||||
einfo "Configuration files for ${CATEGORY}/${PN}"
|
einfo "Configuration files for ${CATEGORY}/${PN}"
|
||||||
einfo "in \$HOME often need to be updated after a version change"
|
einfo "in \$HOME often need to be updated after a version change"
|
||||||
einfo ""
|
einfo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user