Обновление пакета calculate-icon-theme

atratsevskiy
Mike Khiretskiy 9 years ago
parent 3bfdae81e7
commit 04a88f66d2

@ -0,0 +1,11 @@
# Calculate multiline path=/usr/share/icons/Calculate name=index.theme
<reg>Inherits=.*</reg>
#?pkg(kde-apps/oxygen-icons)!=#
<text>Inherits=oxygen,hicolor</text>
#pkg#
#?pkg(kde-apps/oxygen-icons)==&&pkg(x11-themes/mate-icon-theme)!=#
<text>Inherits=mate,hicolor</text>
#pkg#
#?pkg(kde-apps/oxygen-icons)==&&pkg(x11-themes/mate-icon-theme)==&&pkg(x11-themes/elementary-icon-theme)!=#
<text>Inherits=elementary,hicolor</text>
#pkg#

@ -0,0 +1,5 @@
# Calculate exec=/bin/bash ac_install_disk==off
echo "Updating icon cache"
for i in /usr/share/icons/*;do gtk-update-icon-cache -ft $i &>/dev/null; done
true

@ -0,0 +1,56 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit gnome2-utils
DESCRIPTION="Icons theme for Calculate Linux"
HOMEPAGE="http://www.calculate-linux.org/packages/media-gfx/dm-themes-calculate"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="kde"
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/themes/icon/icon-calculate-14-r2.tar.bz2
http://mirror.yandex.ru/calculate/themes/icon/icon-calculate-14-r2.tar.bz2"
RDEPEND="kde? ( kde-apps/oxygen-icons )
!kde? ( || ( x11-themes/elementary-icon-theme
x11-themes/gnome-icon-theme
)
)
!media-gfx/cldx-themes
!media-gfx/cld-themes
!media-gfx/cldg-themes
!media-gfx/cls-themes"
DEPEND="${RDEPEND}"
src_install() {
if use kde
then
rm -r usr/share/pixmaps/gnome
mv usr/share/pixmaps/oxygen usr/share/pixmaps/faces
else
rm -r usr/share/pixmaps/oxygen
mv usr/share/pixmaps/gnome usr/share/pixmaps/faces
fi
insinto /
doins -r .
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
Loading…
Cancel
Save