From 43f23cd7f4170e6f19e07cfb6fb9ae675770dd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 17 Mar 2017 10:38:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20USE=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B5=D0=BC?= =?UTF-8?q?=D1=8B=20splashutils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../splash-themes-calculate-17-r1.ebuild | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/media-gfx/splash-themes-calculate/splash-themes-calculate-17-r1.ebuild b/media-gfx/splash-themes-calculate/splash-themes-calculate-17-r1.ebuild index 453c37ec7..f392128d6 100644 --- a/media-gfx/splash-themes-calculate/splash-themes-calculate-17-r1.ebuild +++ b/media-gfx/splash-themes-calculate/splash-themes-calculate-17-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=4 +EAPI=5 DESCRIPTION="Calculate Linux theme for gensplash" 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" SLOT="0" 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 - 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 - http://mirror.yandex.ru/calculate/themes/calculate/splash-verbose-17.jpg -> ${PN}-verbose-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-shutdown-17.jpg -> ${PN}-shutdown-17.jpg" +REQUIRED_USE="|| ( verbose silent silent-shutdown )" + +SRC_URI="silent? ( + ftp://ftp.calculate-linux.org/calculate/themes/calculate/splash-silent-17.jpg -> ${PN}-silent-17.jpg + http://mirror.yandex.ru/calculate/themes/calculate/splash-silent-17.jpg -> ${PN}-silent-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 media-fonts/droid @@ -31,8 +36,14 @@ S="${WORKDIR}" src_install() { insinto /usr/share/themes/Calculate/ - newins "${DISTDIR}"/${PN}-silent-${PV}.jpg splash-silent.jpg - newins "${DISTDIR}"/${PN}-shutdown-${PV}.jpg splash-shutdown.jpg + if use silent + 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 then newins "${DISTDIR}"/${PN}-verbose-${PV}.jpg splash-verbose.jpg