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