Gentoo Archives: gentoo-commits

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