Добавлены USE для темы splashutils

rasdark
parent 7a88c01144
commit 43f23cd7f4

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
EAPI=4 EAPI=5
DESCRIPTION="Calculate Linux theme for gensplash" DESCRIPTION="Calculate Linux theme for gensplash"
HOMEPAGE="http://www.calculate-linux.org/packages/media-gfx/calculate-splash-themes" HOMEPAGE="http://www.calculate-linux.org/packages/media-gfx/calculate-splash-themes"
@ -10,14 +10,19 @@ HOMEPAGE="http://www.calculate-linux.org/packages/media-gfx/calculate-splash-the
LICENSE="Apache-2.0" LICENSE="Apache-2.0"
SLOT="0" SLOT="0"
KEYWORDS="amd64 x86" KEYWORDS="amd64 x86"
IUSE="+verbose" IUSE="+verbose +silent +silent-shutdown"
SRC_URI="ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-silent-17.jpg -> ${PN}-silent-17.jpg REQUIRED_USE="|| ( verbose silent silent-shutdown )"
http://mirror.yandex.ru/calculate/themes/calculate/splash-silent-17.jpg -> ${PN}-silent-17.jpg
ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-verbose-17.jpg -> ${PN}-verbose-17.jpg SRC_URI="silent? (
http://mirror.yandex.ru/calculate/themes/calculate/splash-verbose-17.jpg -> ${PN}-verbose-17.jpg ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-silent-17.jpg -> ${PN}-silent-17.jpg
ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-shutdown-17.jpg -> ${PN}-shutdown-17.jpg http://mirror.yandex.ru/calculate/themes/calculate/splash-silent-17.jpg -> ${PN}-silent-17.jpg )
http://mirror.yandex.ru/calculate/themes/calculate/splash-shutdown-17.jpg -> ${PN}-shutdown-17.jpg" verbose? (
ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-verbose-17.jpg -> ${PN}-verbose-17.jpg
http://mirror.yandex.ru/calculate/themes/calculate/splash-verbose-17.jpg -> ${PN}-verbose-17.jpg )
silent-shutdown? (
ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-shutdown-17.jpg -> ${PN}-shutdown-17.jpg
http://mirror.yandex.ru/calculate/themes/calculate/splash-shutdown-17.jpg -> ${PN}-shutdown-17.jpg )"
DEPEND="media-gfx/splashutils DEPEND="media-gfx/splashutils
media-fonts/droid media-fonts/droid
@ -31,8 +36,14 @@ S="${WORKDIR}"
src_install() { src_install() {
insinto /usr/share/themes/Calculate/ insinto /usr/share/themes/Calculate/
newins "${DISTDIR}"/${PN}-silent-${PV}.jpg splash-silent.jpg if use silent
newins "${DISTDIR}"/${PN}-shutdown-${PV}.jpg splash-shutdown.jpg then
newins "${DISTDIR}"/${PN}-silent-${PV}.jpg splash-silent.jpg
fi
if use silent-shutdown
then
newins "${DISTDIR}"/${PN}-shutdown-${PV}.jpg splash-shutdown.jpg
fi
if use verbose if use verbose
then then
newins "${DISTDIR}"/${PN}-verbose-${PV}.jpg splash-verbose.jpg newins "${DISTDIR}"/${PN}-verbose-${PV}.jpg splash-verbose.jpg

Loading…
Cancel
Save