Contents of /trunk/extras/plymouth/plymouth-0.9.4-r1.smage2
Parent Directory | Revision Log
Revision 31729 -
(show annotations)
(download)
Thu Dec 6 12:09:23 2018 UTC (5 years, 9 months ago) by niro
File size: 3348 byte(s)
Thu Dec 6 12:09:23 2018 UTC (5 years, 9 months ago) by niro
File size: 3348 byte(s)
-dropped obsolete patch
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.9.4" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="plymouth plymouth-x11" |
8 | |
9 | PCAT="sys-apps" |
10 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" |
11 | |
12 | COMMON_DEPEND=">= dev-libs/glib2-2.58 |
13 | >= media-libs/libpng-1.5 |
14 | >= x11-libs/pango-1.42 |
15 | >= x11-libs/cairo-1.16 |
16 | >= x11-libs/libdrm-2.4.83" |
17 | |
18 | X11_DEPEND=">= x11-libs/gtk2+-2.24 |
19 | >= x11-libs/gtk3+-3.22" |
20 | |
21 | SDEPEND="${COMMON_DEPEND} |
22 | ${X11_DEPEND} |
23 | >= app-text/docbook-xsl-stylesheets-1.78 |
24 | >= dev-util/pkgconfig-0.25 |
25 | >= virtual/kernel-headers" |
26 | |
27 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
29 | |
30 | sminclude mtools systemd cleanutils |
31 | |
32 | SRC_URI=( |
33 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | mirror://${PNAME}/boot-duration |
36 | mirror://${PNAME}/charge.plymouth |
37 | mirror://${PNAME}/magellan-sign.png |
38 | ) |
39 | |
40 | UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | highesttarball xz" |
41 | |
42 | split_info_plymouth() |
43 | { |
44 | DESCRIPTION="Graphical Boot Animation and Logger." |
45 | DEPEND="${COMMON_DEPEND}" |
46 | } |
47 | |
48 | split_info_plymouth-x11() |
49 | { |
50 | DESCRIPTION="X11 renderer of plymouth, for development purposes only." |
51 | DEPEND="== sys-apps/plymouth-${PVER} |
52 | ${X11_DEPEND}" |
53 | } |
54 | |
55 | src_prepare() |
56 | { |
57 | munpack ${SRCFILE} || die |
58 | cd ${SRCDIR} |
59 | |
60 | # fix systemdunitdir location |
61 | sed -i \ |
62 | "s:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=$(mget-systemd-unit-dir):g" \ |
63 | configure.ac || die |
64 | |
65 | # make charge to the default plugin |
66 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
67 | |
68 | # git - missing configure |
69 | mautoreconf || die |
70 | } |
71 | |
72 | src_compile() |
73 | { |
74 | cd ${SRCDIR} |
75 | |
76 | # keep /usr/lib/plymouth as libexecdir to satisfy dracut |
77 | mconfigure \ |
78 | --localstatedir=/var \ |
79 | --libexecdir=/usr/lib/${PNAME} \ |
80 | --enable-tracing \ |
81 | --disable-tests \ |
82 | --disable-gdm-transition \ |
83 | --enable-systemd-integration \ |
84 | --without-system-root-install \ |
85 | --without-log-viewer \ |
86 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
87 | --disable-libkms \ |
88 | || die |
89 | |
90 | mmake || die |
91 | } |
92 | |
93 | src_install_plymouth() |
94 | { |
95 | cd ${SRCDIR} |
96 | mmake DESTDIR=${BINDIR} install || die |
97 | |
98 | # install magellan-logo |
99 | minstalldir /usr/share/plymouth || die |
100 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die |
101 | |
102 | # install boot-duration for initrd |
103 | minstalldir /usr/share/plymouth || die |
104 | minstalldir /var/lib/plymouth || die |
105 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die |
106 | minstallfile -s boot-duration /var/lib/plymouth || die |
107 | |
108 | # install charge plugin from fedora |
109 | minstalldir /usr/share/plymouth/themes/charge || die |
110 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die |
111 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die |
112 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die |
113 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die |
114 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die |
115 | |
116 | # remove x11-renderer |
117 | rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die |
118 | |
119 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
120 | } |
121 | |
122 | src_install_plymouth-x11() |
123 | { |
124 | cd ${SRCDIR} |
125 | mmake DESTDIR=${BINDIR} install || die |
126 | zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die |
127 | } |