1 |
On 11:48 Sun 23 Sep , Michael Januszewski (spock) wrote: |
2 |
> spock 07/09/23 11:48:45 |
3 |
> |
4 |
> Modified: ChangeLog |
5 |
> Added: splashutils-1.5.2.1.ebuild |
6 |
> Log: |
7 |
> Version bump (bugfix release). |
8 |
> (Portage version: 2.1.3.9) |
9 |
|
10 |
> 1.1 media-gfx/splashutils/splashutils-1.5.2.1.ebuild |
11 |
> |
12 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/splashutils-1.5.2.1.ebuild?rev=1.1&view=markup |
13 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/splashutils/splashutils-1.5.2.1.ebuild?rev=1.1&content-type=text/plain |
14 |
> V_JPEG="6b" |
15 |
> V_PNG="1.2.18" |
16 |
> V_ZLIB="1.2.3" |
17 |
> V_FT="2.3.5" |
18 |
> |
19 |
> ZLIBSRC="libs/zlib-${V_ZLIB}" |
20 |
> LPNGSRC="libs/libpng-${V_PNG}" |
21 |
> JPEGSRC="libs/jpeg-${V_JPEG}" |
22 |
> FT2SRC="libs/freetype-${V_FT}" |
23 |
> |
24 |
> IUSE="hardened png truetype mng gpm" |
25 |
> |
26 |
> DESCRIPTION="Framebuffer splash utilities." |
27 |
> HOMEPAGE="http://fbsplash.berlios.de" |
28 |
> SRC_URI="mirror://berlios/fbsplash/${PN}-lite-${PV}.tar.bz2 |
29 |
> mirror://berlios/fbsplash/${GENTOOSPLASH}.tar.bz2 |
30 |
> mirror://gentoo/${MISCSPLASH}.tar.bz2 |
31 |
> mirror://sourceforge/libpng/libpng-${V_PNG}.tar.bz2 |
32 |
> ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${V_JPEG}.tar.gz |
33 |
> mirror://sourceforge/freetype/freetype-${V_FT}.tar.bz2 |
34 |
> http://www.gzip.org/zlib/zlib-${V_ZLIB}.tar.bz2" |
35 |
|
36 |
Is there some way to avoid using bundled libs here? It really turns into |
37 |
a PITA for security issues etc. |
38 |
|
39 |
> [ ! -d ${S}/libs ] && mkdir ${S}/libs |
40 |
> [ ! -d ${S}/objs ] && mkdir ${S}/objs |
41 |
> mv ${WORKDIR}/{libpng-${V_PNG},jpeg-${V_JPEG},zlib-${V_ZLIB},freetype-${V_FT}} ${S}/libs |
42 |
|
43 |
> rm ${S}/libs/zlib-${V_ZLIB}/Makefile |
44 |
> |
45 |
> cd ${S} |
46 |
> ln -sf ${S} ${WORKDIR}/core |
47 |
|
48 |
> sed -e 's@K_CFLAGS =@K_CFLAGS = -fno-stack-protector@' -i ${S}/Makefile |
49 |
|
50 |
> sed -i -e 's/fbtruetype kbd/kbd/' ${SM}/Makefile |
51 |
|
52 |
> sed -i -e "s#/lib/splash#/$(get_libdir)/splash#" ${S}/scripts/{splash_manager,splash_geninitramfs} |
53 |
|
54 |
> cd ${SM} |
55 |
|
56 |
> cd ${S} |
57 |
|
58 |
> cd ${SG} |
59 |
|
60 |
> cd ${SM} |
61 |
> make DESTDIR=${D} LIB=${LIB} install || die |
62 |
> |
63 |
> export ZLIBSRC LPNGSRC JPEGSRC FT2SRC |
64 |
> cd ${S} |
65 |
> make DESTDIR=${D} LIB=${LIB} install || die |
66 |
> |
67 |
> mv ${D}/usr/${LIB}/libfbsplash.so* ${D}/${LIB}/ |
68 |
|
69 |
> newinitd ${SG}/init-fbcondecor fbcondecor |
70 |
> newconfd ${SG}/splash.conf splash |
71 |
> newconfd ${SG}/fbcondecor.conf fbcondecor |
72 |
|
73 |
> doins ${SG}/initrd.splash |
74 |
|
75 |
> doins ${SM}/fbtruetype/luxisri.ttf |
76 |
|
77 |
> cd ${SG} |
78 |
> make DESTDIR=${D} LIB=${LIB} install || die "failed to install the splash plugin" |
79 |
> else |
80 |
> cp ${SG}/splash-functions-bl1.sh ${D}/sbin/splash-functions.sh |
81 |
> fi |
82 |
> |
83 |
> sed -i -e "s#/lib/splash#/${LIB}/splash#" ${D}/sbin/splash-functions.sh |
84 |
|
85 |
Lots of places here where quotes should be added around variables that |
86 |
can contain spaces. |
87 |
|
88 |
Thanks, |
89 |
Donnie |
90 |
-- |
91 |
gentoo-dev@g.o mailing list |