Gentoo Archives: gentoo-commits

From: "Michael Januszewski (spock)" <spock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/splashutils: ChangeLog splashutils-1.5.4-r1.ebuild
Date: Sun, 02 Mar 2008 12:23:24
Message-Id: E1JVnDt-0001Y8-Dm@stork.gentoo.org
1 spock 08/03/02 12:23:21
2
3 Modified: ChangeLog
4 Added: splashutils-1.5.4-r1.ebuild
5 Log:
6 Revision bump (fixes bugs #211643, #211598).
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.132 media-gfx/splashutils/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/ChangeLog?rev=1.132&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/ChangeLog?rev=1.132&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/ChangeLog?r1=1.131&r2=1.132
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/splashutils/ChangeLog,v
19 retrieving revision 1.131
20 retrieving revision 1.132
21 diff -u -r1.131 -r1.132
22 --- ChangeLog 25 Feb 2008 23:16:00 -0000 1.131
23 +++ ChangeLog 2 Mar 2008 12:23:20 -0000 1.132
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-gfx/splashutils
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/ChangeLog,v 1.131 2008/02/25 23:16:00 spock Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/ChangeLog,v 1.132 2008/03/02 12:23:20 spock Exp $
29 +
30 +*splashutils-1.5.4-r1 (02 Mar 2008)
31 +
32 + 02 Mar 2008; Michał Januszewski <spock@g.o>
33 + +splashutils-1.5.4-r1.ebuild:
34 + Revision bump (fixes bugs #211643, #211598).
35
36 25 Feb 2008; Michał Januszewski <spock@g.o>
37 -files/splashutils-1.4.2-getcfg.patch,
38
39
40
41 1.1 media-gfx/splashutils/splashutils-1.5.4-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/splashutils-1.5.4-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/splashutils-1.5.4-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: splashutils-1.5.4-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/splashutils-1.5.4-r1.ebuild,v 1.1 2008/03/02 12:23:20 spock Exp $
51
52 EAPI="1"
53
54 inherit eutils multilib toolchain-funcs
55
56 MISCSPLASH="miscsplashutils-0.1.8"
57 GENTOOSPLASH="splashutils-gentoo-1.0.13"
58 V_JPEG="6b"
59 V_PNG="1.2.18"
60 V_ZLIB="1.2.3"
61 V_FT="2.3.5"
62
63 ZLIBSRC="libs/zlib-${V_ZLIB}"
64 LPNGSRC="libs/libpng-${V_PNG}"
65 JPEGSRC="libs/jpeg-${V_JPEG}"
66 FT2SRC="libs/freetype-${V_FT}"
67
68 RESTRICT="test"
69 IUSE="hardened +png +truetype +mng gpm fbcondecor"
70
71 DESCRIPTION="Framebuffer splash utilities."
72 HOMEPAGE="http://fbsplash.berlios.de"
73 SRC_URI="mirror://berlios/fbsplash/${PN}-lite-${PV}.tar.bz2
74 mirror://berlios/fbsplash/${GENTOOSPLASH}.tar.bz2
75 mirror://gentoo/${MISCSPLASH}.tar.bz2
76 mirror://sourceforge/libpng/libpng-${V_PNG}.tar.bz2
77 ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${V_JPEG}.tar.gz
78 mirror://sourceforge/freetype/freetype-${V_FT}.tar.bz2
79 http://www.gzip.org/zlib/zlib-${V_ZLIB}.tar.bz2"
80
81 LICENSE="GPL-2"
82 SLOT="0"
83 KEYWORDS="~amd64 ~ppc ~x86"
84 RDEPEND="gpm? ( sys-libs/gpm )
85 truetype? ( >=media-libs/freetype-2 )
86 png? ( >=media-libs/libpng-1.2.7 )
87 mng? ( media-libs/lcms media-libs/libmng )
88 >=media-libs/jpeg-6b
89 >=sys-apps/baselayout-1.9.4-r5
90 app-arch/cpio
91 media-gfx/fbgrab"
92 DEPEND="${RDEPEND}
93 >=dev-libs/klibc-1.5
94 dev-util/pkgconfig"
95
96 S="${WORKDIR}/${P/_/-}"
97 SG="${WORKDIR}/${GENTOOSPLASH}"
98 SM="${WORKDIR}/${MISCSPLASH}"
99
100 pkg_setup() {
101 if use hardened; then
102 ewarn "Due to problems with klibc, it is currently impossible to compile splashutils"
103 ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with"
104 ewarn "-fno-stack-protector. Hardened GCC features will not be used while building"
105 ewarn "the splash kernel helper."
106 fi
107 }
108
109 src_unpack() {
110 unpack ${A}
111
112 mv "${WORKDIR}"/{libpng-${V_PNG},jpeg-${V_JPEG},zlib-${V_ZLIB},freetype-${V_FT}} "${S}/libs"
113 # We need to delete the Makefile and let it be rebuilt when splashutils
114 # is being configured. Either that, or we end up with a segfaulting kernel
115 # helper.
116 rm "${S}/libs/zlib-${V_ZLIB}/Makefile"
117
118 cd "${S}"
119 ln -sf "${S}/src" "${WORKDIR}/core"
120
121 if built_with_use sys-devel/gcc vanilla ; then
122 ewarn "Your GCC was built with the 'vanilla' flag set. If you can't compile"
123 ewarn "splashutils, you're on your own, as this configuration is not supported."
124 else
125 # This should make splashutils compile on systems with hardened GCC.
126 sed -e 's@K_CFLAGS =@K_CFLAGS = -fno-stack-protector@' -i "${S}/Makefile.in"
127 fi
128
129 if ! use truetype ; then
130 sed -i -e 's/fbtruetype kbd/kbd/' "${SM}/Makefile"
131 fi
132 }
133
134 src_compile() {
135 cd "${SM}"
136 emake LIB=$(get_libdir) STRIP=true || die "failed to build miscsplashutils"
137
138 cd "${S}"
139 econf \
140 $(use_with png) \
141 $(use_with mng) \
142 $(use_with gpm) \
143 $(use_with truetype ttf) \
144 $(use_with truetype ttf-kernel) \
145 $(use_enable fbcondecor) \
146 --with-freetype2-src=${FT2SRC} \
147 --with-jpeg-src=${JPEGSRC} \
148 --with-lpng-src=${LPNGSRC} \
149 --with-zlib-src=${ZLIBSRC} || die "failed to configure splashutils"
150
151 emake -j1 || die "failed to build splashutils"
152
153 if has_version ">=sys-apps/baselayout-1.13.99"; then
154 cd "${SG}"
155 emake LIB=$(get_libdir) || die "failed to build the splash plugin"
156 fi
157 }
158
159 src_install() {
160 local LIB=$(get_libdir)
161
162 cd "${SM}"
163 make DESTDIR="${D}" LIB=${LIB} install || die
164
165 cd "${S}"
166 make DESTDIR="${D}" install || die
167
168 mv "${D}"/usr/${LIB}/libfbsplash.so* "${D}"/${LIB}/
169 gen_usr_ldscript libfbsplash.so
170
171 echo 'CONFIG_PROTECT_MASK="/etc/splash"' > 99splash
172 doenvd 99splash
173
174 if use fbcondecor ; then
175 newinitd "${SG}"/init-fbcondecor fbcondecor
176 newconfd "${SG}"/fbcondecor.conf fbcondecor
177 fi
178 newconfd "${SG}"/splash.conf splash
179
180 insinto /usr/share/${PN}
181 doins "${SG}"/initrd.splash
182
183 insinto /etc/splash
184 doins "${SM}"/fbtruetype/luxisri.ttf
185
186 if has_version ">=sys-apps/baselayout-1.13.99"; then
187 cd "${SG}"
188 make DESTDIR="${D}" LIB=${LIB} install || die "failed to install the splash plugin"
189 else
190 cp "${SG}"/splash-functions-bl1.sh "${D}"/sbin/
191 fi
192
193 sed -i -e "s#/lib/splash#/${LIB}/splash#" "${D}"/sbin/splash-functions.sh
194 keepdir /${LIB}/splash/{tmp,cache,bin}
195 dosym /${LIB}/splash/bin/fbres /sbin/fbres
196 }
197
198 pkg_postinst() {
199 if has_version sys-fs/devfsd || ! has_version sys-fs/udev ; then
200 elog "This package has been designed with udev in mind. Other solutions, such as"
201 elog "devfs or a static /dev tree might work, but are generally discouraged and"
202 elog "not supported. If you decide to switch to udev, you might want to have a"
203 elog "look at 'The Gentoo udev Guide', which can be found at"
204 elog " http://www.gentoo.org/doc/en/udev-guide.xml"
205 elog ""
206 fi
207
208 if has_version '<media-gfx/splashutils-1.0' ; then
209 elog "Since you are upgrading from a pre-1.0 version, please make sure that you"
210 elog "rebuild your initrds. You can use the splash_geninitramfs script to do that."
211 elog ""
212 fi
213
214 if has_version '<media-gfx/splashutils-1.5.3' && ! use fbcondecor ; then
215 elog "Starting with splashutils-1.5.3, support for the fbcondecor kernel patch"
216 elog "is optional and dependent on the the 'fbcondecor' USE flag. If you wish"
217 elog "to use fbcondecor, run:"
218 elog " echo \"media-gfx/splashutils fbcondecor\" >> /etc/portage/package.use"
219 elog "and re-emerge splashutils."
220 fi
221
222 if ! test -f /proc/cmdline ||
223 ! egrep -q '(console|CONSOLE)=(tty1|/dev/tty1)' /proc/cmdline ; then
224 elog "It is required that you add 'console=tty1' to your kernel"
225 elog "command line parameters."
226 elog ""
227 elog "After these modifications, the relevant part of the kernel command"
228 elog "line might look like:"
229 elog " splash=silent,fadein,theme:emergence console=tty1"
230 elog ""
231 fi
232
233 if ! has_version 'media-gfx/splash-themes-livecd' &&
234 ! has_version 'media-gfx/splash-themes-gentoo'; then
235 elog "The sample Gentoo themes (emergence, gentoo) have been removed from the"
236 elog "core splashutils package. To get some themes you might want to emerge:"
237 elog " media-gfx/splash-themes-livecd"
238 elog " media-gfx/splash-themes-gentoo"
239 fi
240
241 elog "Please note that the 'fbsplash' kernel patch has now been renamed to"
242 elog "'fbcondecor'. Accordingly, the old 'splash' initscript is now called"
243 elog "'fbcondecor'. Make sure you update your system. See:"
244 elog " http://dev.gentoo.org/~spock/projects/fbcondecor/#history"
245 elog "for further info about the name changes."
246 elog ""
247 elog "Also note that splash_util has now been split into splash_util, fbsplashd"
248 elog "and fbcondecor_ctl."
249 }
250
251
252
253 --
254 gentoo-commits@l.g.o mailing list