58 lines
1.4 KiB
Bash
58 lines
1.4 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/x11-themes/gnome-colors-common/gnome-colors-common-5.5.1.ebuild,v 1.5 2013/02/07 22:49:26 ulm Exp $
|
|
|
|
EAPI=2
|
|
inherit gnome2-utils
|
|
|
|
DESCRIPTION="Colorized icons shared between all gnome-colors iconsets"
|
|
HOMEPAGE="http://code.google.com/p/gnome-colors/"
|
|
|
|
SRC_URI="http://gnome-colors.googlecode.com/files/gnome-colors-${PV}.tar.gz
|
|
branding? ( http://www.mail-archive.com/tango-artists@lists.freedesktop.org/msg00043/tango-gentoo-v1.1.tar.gz )"
|
|
|
|
LICENSE="GPL-2
|
|
branding? ( CC-Sampling-Plus-1.0 )"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="+branding"
|
|
|
|
RDEPEND="x11-themes/gnome-icon-theme"
|
|
DEPEND=""
|
|
RESTRICT="binchecks strip"
|
|
|
|
src_prepare() {
|
|
if use branding; then
|
|
for i in 16 22 24 32 ; do
|
|
cp tango-gentoo-v1.1/${i}x${i}/gentoo.png \
|
|
gnome-colors-common/${i}x${i}/places/start-here.png \
|
|
|| die "Copying gentoo logos failed"
|
|
done
|
|
cp tango-gentoo-v1.1/scalable/gentoo.svg \
|
|
gnome-colors-common/scalable/places/start-here.svg \
|
|
|| die "Copying scalable logo failed"
|
|
fi
|
|
}
|
|
|
|
src_compile() {
|
|
einfo "Nothing to compile"
|
|
}
|
|
|
|
src_install() {
|
|
dodir /usr/share/icons
|
|
insinto /usr/share/icons
|
|
doins -r "${WORKDIR}/${PN}" || die "Installing icons failed"
|
|
dodoc AUTHORS ChangeLog README
|
|
}
|
|
|
|
pkg_preinst() {
|
|
gnome2_icon_savelist
|
|
}
|
|
|
|
pkg_postinst() {
|
|
gnome2_icon_cache_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
gnome2_icon_cache_update
|
|
}
|