mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-portage/carnage: fix style, add 9999
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -10,11 +10,17 @@ inherit distutils-r1 optfeature desktop xdg
|
||||
|
||||
DESCRIPTION="TUI front-end for Portage and eix"
|
||||
HOMEPAGE="https://github.com/dsafxP/carnage"
|
||||
SRC_URI="https://github.com/dsafxP/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/dsafxP/carnage.git"
|
||||
else
|
||||
SRC_URI="https://github.com/dsafxP/carnage/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/lxml-6.0.2[${PYTHON_USEDEP}]
|
||||
@@ -35,10 +41,4 @@ src_install() {
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "package & use flag browsing" app-portage/eix
|
||||
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
}
|
||||
|
||||
44
app-portage/carnage/carnage-9999.ebuild
Normal file
44
app-portage/carnage/carnage-9999.ebuild
Normal file
@@ -0,0 +1,44 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1 optfeature desktop xdg
|
||||
|
||||
DESCRIPTION="TUI front-end for Portage and eix"
|
||||
HOMEPAGE="https://github.com/dsafxP/carnage"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/dsafxP/carnage.git"
|
||||
else
|
||||
SRC_URI="https://github.com/dsafxP/carnage/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/lxml-6.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-1.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/textual-6.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tomlkit-0.13.3[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
domenu assets/carnage.desktop
|
||||
|
||||
doicon -s scalable assets/carnage.svg
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "package & use flag browsing" app-portage/eix
|
||||
}
|
||||
Reference in New Issue
Block a user