Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/splash-themes-livecd/, media-gfx/splash-themes-livecd/files/
Date: Sun, 21 Feb 2016 11:09:37
Message-Id: 1456007709.78c0879540f45a2aaaa08fe8f212a318a1b22223.mgorny@gentoo
1 commit: 78c0879540f45a2aaaa08fe8f212a318a1b22223
2 Author: Lara Maia <dev <AT> lara <DOT> click>
3 AuthorDate: Thu Feb 18 15:48:10 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 20 22:35:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c08795
7
8 media-gfx/splash-themes-livecd: Use functions.sh from gentoo-functions
9
10 Update rc_init-pre to use new path for functions.sh
11
12 https://bugs.gentoo.org/show_bug.cgi?id=504394
13
14 .../files/use-new-path-for-functions.sh.patch | 11 ++++++
15 .../splash-themes-livecd-2007.0-r3.ebuild | 42 ++++++++++++++++++++++
16 2 files changed, 53 insertions(+)
17
18 diff --git a/media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch b/media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch
19 new file mode 100644
20 index 0000000..67128fb
21 --- /dev/null
22 +++ b/media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch
23 @@ -0,0 +1,11 @@
24 +--- scripts/rc_init-pre.orig 2016-02-18 13:31:23.610276701 -0200
25 ++++ scripts/rc_init-pre 2016-02-18 13:31:57.405275206 -0200
26 +@@ -77,7 +77,7 @@
27 + return 0
28 + }
29 +
30 +-[ -r /etc/init.d/functions.sh ] && . /etc/init.d/functions.sh
31 ++[ -r /lib/gentoo/functions.sh ] && . /lib/gentoo/functions.sh
32 +
33 + if [ -z "${1}" ]; then
34 + log err "no internal runlevel provided"
35
36 diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild
37 new file mode 100644
38 index 0000000..ee8ffac
39 --- /dev/null
40 +++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild
41 @@ -0,0 +1,42 @@
42 +# Copyright 1999-2016 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +# $Id$
45 +
46 +EAPI="5"
47 +
48 +inherit eutils
49 +
50 +MY_P="gentoo-livecd-${PV}"
51 +MY_REV="0.9.6"
52 +DESCRIPTION="Gentoo theme for gensplash consoles"
53 +HOMEPAGE="https://www.gentoo.org/"
54 +SRC_URI="mirror://gentoo/${PN}/${MY_P}-${MY_REV}.tar.bz2"
55 +
56 +SLOT=${PV}
57 +LICENSE="Artistic GPL-2 BitstreamVera"
58 +KEYWORDS="amd64 ~ppc x86"
59 +IUSE=""
60 +RESTRICT="binchecks strip"
61 +
62 +RDEPEND=">=media-gfx/splashutils-1.5.4[png]
63 + sys-apps/gentoo-functions"
64 +DEPEND="${RDEPEND}"
65 +
66 +S="${WORKDIR}/${MY_P}"
67 +
68 +pkg_setup() {
69 + if ! built_with_use media-gfx/splashutils mng
70 + then
71 + ewarn "MNG support is missing from splashutils. You will not see the"
72 + ewarn "service icons as services are starting."
73 + fi
74 +}
75 +
76 +src_prepare() {
77 + epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
78 +}
79 +
80 +src_install() {
81 + dodir /etc/splash/livecd-${PV}
82 + cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV} || die
83 +}