You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-themes/greybird/greybird-9999.ebuild

53 lines
1.4 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 meson
DESCRIPTION="The default theme from Xubuntu"
HOMEPAGE="http://shimmerproject.org/project/greybird/ https://github.com/shimmerproject/Greybird"
EGIT_REPO_URI="https://github.com/shimmerproject/${PN^}"
# README says "dual-licensed as GPLv2 or later and CC-BY-SA 3.0 or later"
LICENSE="CC-BY-SA-3.0 GPL-2+"
SLOT="0"
KEYWORDS=""
IUSE="ayatana gnome gtk2 gtk3 xfce"
REQUIRED_USE="
|| ( ayatana gnome gtk2 gtk3 xfce )
"
RDEPEND="
>=x11-libs/gtk+-3.22:3
>=x11-themes/gtk-engines-murrine-0.90
"
DEPEND="
${RDEPEND}
dev-lang/sassc
dev-libs/glib:2
dev-ruby/sass:3.5
"
src_install() {
meson_src_install
pushd "${ED}"/usr/share/themes > /dev/null || die
use ayatana || { rm -r ${PN^}*/unity || die; }
use gnome || { rm -r ${PN^}*/metacity-1 || die; }
use gtk2 || { rm -r ${PN^}*/gtk-2.0 || die; }
use gtk3 || { rm -r ${PN^}*/gtk-3.0 || die; }
use xfce || { rm -r ${PN^}*/xfce* ${PN^}*/xfwm4* || die; }
popd > /dev/null || die
}
pkg_postinst() {
if ! has_version x11-themes/elementary-xfce-icon-theme ; then
elog "For upstream's default icon theme, please emerge"
elog "x11-themes/elementary-xfce-icon-theme"
fi
if ! has_version x11-themes/vanilla-dmz-xcursors ; then
elog "For upstream's default cursor theme, please emerge"
elog "x11-themes/vanilla-dmz-xcursors"
fi
}