src_prepare-overlay/x11-misc/vala-panel/vala-panel-0.4.92.ebuild
Maciej Barć 00f309f269
x11-misc/vala-panel: new package; add version 0.4.92 and 9999 (live)
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-10-28 14:56:06 +01:00

60 lines
1.0 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnome2-utils meson vala xdg
DESCRIPTION="Vala rewrite of SimplePanel"
HOMEPAGE="https://gitlab.com/vala-panel-project/vala-panel"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="
https://gitlab.com/vala-panel-project/${PN}.git
https://github.com/rilian-la-te/${PN}.git
"
else
SRC_URI="
https://gitlab.com/vala-panel-project/${PN}/-/archive/${PV}/${P}.tar.gz
https://github.com/rilian-la-te/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
"
KEYWORDS="~amd64"
fi
RESTRICT="mirror"
LICENSE="LGPL-3"
SLOT="0"
DEPEND="
>=dev-libs/glib-2.56.0
>=x11-libs/gtk+-3.22.0:3
>=x11-libs/libwnck-3.4.7:3
dev-libs/gobject-introspection
x11-libs/libX11
"
RDEPEND="
${DEPEND}
"
src_prepare() {
vala_src_prepare
xdg_environment_reset
default
}
pkg_preinst() {
gnome2_schemas_savelist
xdg_pkg_preinst
}
pkg_postinst() {
gnome2_schemas_update
xdg_pkg_postinst
}
pkg_postrm() {
gnome2_schemas_update
xdg_pkg_postrm
}