1 |
commit: ca56165a09c0a0c43f2591434ae4930acb4198d9 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 30 11:56:17 2018 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 30 11:56:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca56165a |
7 |
|
8 |
media-gfx/splashutils: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
.../splashutils/splashutils-1.5.4.4-r7.ebuild | 239 --------------------- |
13 |
1 file changed, 239 deletions(-) |
14 |
|
15 |
diff --git a/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild b/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild |
16 |
deleted file mode 100644 |
17 |
index 06730c58140..00000000000 |
18 |
--- a/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,239 +0,0 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
-inherit autotools eutils multilib toolchain-funcs |
26 |
- |
27 |
-MISCSPLASH="miscsplashutils-0.1.8" |
28 |
-GENTOOSPLASH="splashutils-gentoo-1.0.17" |
29 |
-V_JPEG="8a" |
30 |
-V_PNG="1.4.3" |
31 |
-V_ZLIB="1.2.3" |
32 |
-V_FT="2.3.12" |
33 |
- |
34 |
-ZLIBSRC="libs/zlib-${V_ZLIB}" |
35 |
-LPNGSRC="libs/libpng-${V_PNG}" |
36 |
-JPEGSRC="libs/jpeg-${V_JPEG}" |
37 |
-FT2SRC="libs/freetype-${V_FT}" |
38 |
- |
39 |
-RESTRICT="test" |
40 |
-IUSE="hardened +png +truetype gpm fbcondecor" |
41 |
- |
42 |
-DESCRIPTION="Framebuffer splash utilities" |
43 |
-HOMEPAGE="https://sourceforge.net/projects/fbsplash.berlios/" |
44 |
-SRC_URI=" |
45 |
- mirror://sourceforge/fbsplash.berlios/${PN}-lite-${PV}.tar.bz2 |
46 |
- mirror://sourceforge/fbsplash.berlios/${GENTOOSPLASH}.tar.bz2 |
47 |
- mirror://gentoo/${MISCSPLASH}.tar.bz2 |
48 |
- mirror://sourceforge/libpng/libpng-${V_PNG}.tar.bz2 |
49 |
- ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${V_JPEG}.tar.gz |
50 |
- mirror://sourceforge/freetype/freetype-${V_FT}.tar.bz2 |
51 |
- http://www.gzip.org/zlib/zlib-${V_ZLIB}.tar.bz2 |
52 |
-" |
53 |
- |
54 |
-LICENSE="GPL-2" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" |
57 |
- |
58 |
-RDEPEND=" |
59 |
- gpm? ( sys-libs/gpm[static-libs(+)] ) |
60 |
- truetype? ( |
61 |
- >=media-libs/freetype-2[static-libs] |
62 |
- app-arch/bzip2[static-libs(+)] |
63 |
- sys-libs/zlib[static-libs(+)] |
64 |
- ) |
65 |
- png? ( |
66 |
- >=media-libs/libpng-1.4.3[static-libs] |
67 |
- sys-libs/zlib[static-libs(+)] |
68 |
- ) |
69 |
- virtual/jpeg:0[static-libs] |
70 |
- app-arch/cpio |
71 |
- media-gfx/fbgrab |
72 |
- !sys-apps/lcdsplash |
73 |
- sys-apps/openrc" |
74 |
- |
75 |
-DEPEND="${RDEPEND} |
76 |
- >=dev-libs/klibc-1.5 |
77 |
- virtual/pkgconfig |
78 |
-" |
79 |
- |
80 |
-S="${WORKDIR}/${P/_/-}" |
81 |
-SG="${WORKDIR}/${GENTOOSPLASH}" |
82 |
-SM="${WORKDIR}/${MISCSPLASH}" |
83 |
- |
84 |
-pkg_setup() { |
85 |
- if use hardened; then |
86 |
- ewarn "Due to problems with klibc, it is currently impossible to compile splashutils" |
87 |
- ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with" |
88 |
- ewarn "-fno-stack-protector. Hardened GCC features will not be used while building" |
89 |
- ewarn "the splash kernel helper." |
90 |
- fi |
91 |
-} |
92 |
- |
93 |
-src_prepare() { |
94 |
- mv "${WORKDIR}"/{libpng-${V_PNG},jpeg-${V_JPEG},zlib-${V_ZLIB},freetype-${V_FT}} "${S}/libs" |
95 |
- |
96 |
- # We need to delete the Makefile and let it be rebuilt when splashutils |
97 |
- # is being configured. Either that, or we end up with a segfaulting kernel |
98 |
- # helper. |
99 |
- rm "${S}/libs/zlib-${V_ZLIB}/Makefile" |
100 |
- |
101 |
- cd "${SG}" |
102 |
- epatch "${FILESDIR}/splashutils-1.5.4.4-gentoo-typo-fix.patch" |
103 |
- epatch "${FILESDIR}/splashutils-1.5.4.4-sys-queue.patch" |
104 |
- |
105 |
- if use truetype ; then |
106 |
- cd "${SM}" |
107 |
- epatch "${FILESDIR}/splashutils-1.5.4.4-freetype-bz2.patch" |
108 |
- cd "${WORKDIR}" |
109 |
- epatch "${FILESDIR}/splashutils-1.5.4.4-ft25.patch" |
110 |
- fi |
111 |
- |
112 |
- cd "${S}" |
113 |
- ln -sf "${S}/src" "${WORKDIR}/core" |
114 |
- |
115 |
- #epatch "${FILESDIR}/${P}-bzip2.patch" |
116 |
- epatch "${FILESDIR}/${P}-multi-keyboard.patch" |
117 |
- # Bug #557126 |
118 |
- epatch "${FILESDIR}/${P}-no-la.patch" |
119 |
- |
120 |
- if ! tc-is-cross-compiler && \ |
121 |
- has_version "sys-devel/gcc:$(gcc-version)[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 |
- # Latest version of klibc defined its own version of ferror, so there is |
134 |
- # not need for the hack in klibc_compat.h |
135 |
- if has_version ">=dev-libs/klibc-1.5.20"; then |
136 |
- echo > "libs/klibc_compat.h" |
137 |
- fi |
138 |
- |
139 |
- rm -f m4/* |
140 |
- epatch_user |
141 |
- export PKG_CONFIG="pkg-config --static" |
142 |
- eautoreconf |
143 |
-} |
144 |
- |
145 |
-src_configure() { |
146 |
- tc-export CC |
147 |
- cd "${SM}" |
148 |
- emake CC="${CC}" LIB=$(get_libdir) STRIP=true |
149 |
- |
150 |
- cd "${S}" |
151 |
- econf \ |
152 |
- $(use_with png) \ |
153 |
- --without-mng \ |
154 |
- $(use_with gpm) \ |
155 |
- $(use_with truetype ttf) \ |
156 |
- $(use_with truetype ttf-kernel) \ |
157 |
- $(use_enable fbcondecor) \ |
158 |
- --docdir=/usr/share/doc/${PF} \ |
159 |
- --with-freetype2-src=${FT2SRC} \ |
160 |
- --with-jpeg-src=${JPEGSRC} \ |
161 |
- --with-lpng-src=${LPNGSRC} \ |
162 |
- --with-zlib-src=${ZLIBSRC} \ |
163 |
- --with-essential-libdir=/$(get_libdir) |
164 |
-} |
165 |
- |
166 |
-src_compile() { |
167 |
- emake CC="${CC}" STRIP="true" |
168 |
- |
169 |
- cd "${SG}" |
170 |
- emake LIB=$(get_libdir) |
171 |
-} |
172 |
- |
173 |
-src_install() { |
174 |
- local LIB=$(get_libdir) |
175 |
- |
176 |
- cd "${SM}" |
177 |
- emake DESTDIR="${D}" LIB=${LIB} install |
178 |
- |
179 |
- cd "${S}" |
180 |
- emake DESTDIR="${D}" STRIP="true" install |
181 |
- |
182 |
- mv "${D}"/usr/${LIB}/libfbsplash.so* "${D}"/${LIB}/ |
183 |
- gen_usr_ldscript libfbsplash.so |
184 |
- |
185 |
- echo 'CONFIG_PROTECT_MASK="/etc/splash"' > 99splash |
186 |
- doenvd 99splash |
187 |
- |
188 |
- if use fbcondecor ; then |
189 |
- newinitd "${SG}"/init-fbcondecor fbcondecor |
190 |
- newconfd "${SG}"/fbcondecor.conf fbcondecor |
191 |
- fi |
192 |
- newconfd "${SG}"/splash.conf splash |
193 |
- |
194 |
- insinto /usr/share/${PN} |
195 |
- doins "${SG}"/initrd.splash |
196 |
- |
197 |
- insinto /etc/splash |
198 |
- doins "${SM}"/fbtruetype/luxisri.ttf |
199 |
- |
200 |
- cd "${SG}" |
201 |
- make DESTDIR="${D}" LIB=${LIB} install |
202 |
- prune_libtool_files |
203 |
- |
204 |
- sed -i -e "s#/lib/splash#/${LIB}/splash#" "${D}"/sbin/splash-functions.sh |
205 |
- keepdir /${LIB}/splash/{tmp,cache,bin,sys} |
206 |
- dosym /${LIB}/splash/bin/fbres /sbin/fbres |
207 |
-} |
208 |
- |
209 |
-pkg_preinst() { |
210 |
- has_version "<${CATEGORY}/${PN}-1.0" |
211 |
- previous_less_than_1_0=$? |
212 |
- |
213 |
- has_version "<${CATEGORY}/${PN}-1.5.3" |
214 |
- previous_less_than_1_5_3=$? |
215 |
-} |
216 |
- |
217 |
-pkg_postinst() { |
218 |
- if has_version sys-fs/devfsd || ! has_version virtual/udev ; then |
219 |
- elog "This package has been designed with udev in mind. Other solutions, such as" |
220 |
- elog "devfs or a static /dev tree might work, but are generally discouraged and" |
221 |
- elog "not supported. If you decide to switch to udev, you might want to have a" |
222 |
- elog "look at 'The Gentoo udev Guide', which can be found at" |
223 |
- elog " https://wiki.gentoo.org/wiki/Udev" |
224 |
- elog "" |
225 |
- fi |
226 |
- |
227 |
- if [[ $previous_less_than_1_0 = 0 ]] ; then |
228 |
- elog "Since you are upgrading from a pre-1.0 version, please make sure that you" |
229 |
- elog "rebuild your initrds. You can use the splash_geninitramfs script to do that." |
230 |
- elog "" |
231 |
- fi |
232 |
- |
233 |
- if [[ $previous_less_than_1_5_3 = 0 ]] && ! use fbcondecor ; then |
234 |
- elog "Starting with splashutils-1.5.3, support for the fbcondecor kernel patch" |
235 |
- elog "is optional and dependent on the the 'fbcondecor' USE flag. If you wish" |
236 |
- elog "to use fbcondecor, run:" |
237 |
- elog " echo \"media-gfx/splashutils fbcondecor\" >> /etc/portage/package.use" |
238 |
- elog "and re-emerge splashutils." |
239 |
- fi |
240 |
- |
241 |
- if ! test -f /proc/cmdline || |
242 |
- ! egrep -q '(console=tty1|CONSOLE=/dev/tty1)' /proc/cmdline ; then |
243 |
- elog "It is required that you add 'console=tty1' to your kernel" |
244 |
- elog "command line parameters." |
245 |
- elog "" |
246 |
- elog "After these modifications, the relevant part of the kernel command" |
247 |
- elog "line might look like:" |
248 |
- elog " splash=silent,fadein,theme:emergence console=tty1" |
249 |
- elog "" |
250 |
- fi |
251 |
- |
252 |
- if ! has_version 'media-gfx/splash-themes-livecd' && |
253 |
- ! has_version 'media-gfx/splash-themes-gentoo'; then |
254 |
- elog "The sample Gentoo themes (emergence, gentoo) have been removed from the" |
255 |
- elog "core splashutils package. To get some themes you might want to emerge:" |
256 |
- elog " media-gfx/splash-themes-livecd" |
257 |
- elog " media-gfx/splash-themes-gentoo" |
258 |
- fi |
259 |
-} |