Contents of /trunk/core/plymouth/plymouth-0.8.5.1-r1.smage2
Parent Directory | Revision Log
Revision 12753 -
(show annotations)
(download)
Mon Jul 2 14:37:15 2012 UTC (11 years, 10 months ago) by niro
File size: 3498 byte(s)
Mon Jul 2 14:37:15 2012 UTC (11 years, 10 months ago) by niro
File size: 3498 byte(s)
-marked unstable
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.8.5.1" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="plymouth plymouth-x11" |
8 | |
9 | PCAT="sys-apps" |
10 | STATE="unstable" |
11 | |
12 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" |
13 | |
14 | COMMON_DEPEND=">= dev-libs/glib2-2.32 |
15 | >= media-libs/libpng-1.5 |
16 | >= x11-libs/pango-1.30 |
17 | >= x11-libs/cairo-1.20 |
18 | >= x11-libs/libdrm-2.4.34" |
19 | |
20 | X11_DEPEND=">= x11-libs/gtk2+-2.24" |
21 | |
22 | SDEPEND="${COMMON_DEPEND} |
23 | ${X11_DEPEND} |
24 | >= dev-util/pkgconfig-0.25 |
25 | >= virtual/kernel-headers" |
26 | |
27 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
29 | |
30 | sminclude mtools 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/ | lasttarball" |
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=/usr/lib/systemd/system:g' \ |
63 | configure.ac || die |
64 | |
65 | # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird) |
66 | cat > scripts/plymouth-update-initrd << EOF |
67 | #!/bin/bash |
68 | /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r) |
69 | EOF |
70 | |
71 | # make charge to the default plugin |
72 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
73 | |
74 | # git - missing configure |
75 | mautoreconf || die |
76 | } |
77 | |
78 | src_compile() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | mconfigure \ |
83 | --localstatedir=/var \ |
84 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
85 | --enable-tracing \ |
86 | --disable-tests \ |
87 | --disable-gdm-transition \ |
88 | --enable-systemd-integration \ |
89 | --without-system-root-install \ |
90 | --without-log-viewer \ |
91 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
92 | --disable-static \ |
93 | --disable-libdrm_nouveau \ |
94 | || die |
95 | |
96 | mmake || die |
97 | } |
98 | |
99 | src_install_plymouth() |
100 | { |
101 | cd ${SRCDIR} |
102 | mmake DESTDIR=${BINDIR} install || die |
103 | |
104 | # install magellan-logo |
105 | minstalldir /usr/share/plymouth || die |
106 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die |
107 | |
108 | # install boot-duration for initrd |
109 | minstalldir /usr/share/plymouth || die |
110 | minstalldir /var/lib/plymouth || die |
111 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die |
112 | minstallfile -s boot-duration /var/lib/plymouth || die |
113 | |
114 | # install charge plugin from fedora |
115 | minstalldir /usr/share/plymouth/themes/charge || die |
116 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die |
117 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die |
118 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die |
119 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die |
120 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die |
121 | |
122 | # remove x11-renderer |
123 | rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die |
124 | |
125 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
126 | } |
127 | |
128 | src_install_plymouth-x11() |
129 | { |
130 | cd ${SRCDIR} |
131 | mmake DESTDIR=${BINDIR} install || die |
132 | zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die |
133 | } |