mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 00:05:54 +03:00
app-containers/distrobox: sync live 9999 version
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,25 +1,28 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit xdg-utils
|
||||
|
||||
DESCRIPTION="Use any Linux distribution inside your terminal (powered by docker/podman)"
|
||||
HOMEPAGE="https://distrobox.privatedns.org/
|
||||
HOMEPAGE="https://distrobox.it/
|
||||
https://github.com/89luca89/distrobox/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/89luca89/${PN}.git"
|
||||
EGIT_REPO_URI="https://github.com/89luca89/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/89luca89/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
-> ${P}.gh.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3" # GPL-3.0-only !
|
||||
SLOT="0"
|
||||
IUSE="gui"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
@@ -31,5 +34,25 @@ RDEPEND="
|
||||
src_install() {
|
||||
sh ./install --prefix "${ED}/usr" || die "${PN} install script failed"
|
||||
|
||||
if use gui ; then
|
||||
:
|
||||
else
|
||||
rm -r "${ED}/usr/share/icons" || die
|
||||
fi
|
||||
|
||||
dodoc *.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gui ; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gui ; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user