Annotation of /trunk/extras/plymouth/plymouth-0.9.2-r1.smage2
Parent Directory | Revision Log
Revision 26233 -
(hide annotations)
(download)
Sun Jun 21 17:14:23 2015 UTC (9 years, 3 months ago) by niro
File size: 3296 byte(s)
Sun Jun 21 17:14:23 2015 UTC (9 years, 3 months ago) by niro
File size: 3296 byte(s)
-replaced libxslt with missing docbook-xsl-stylesheets dep
1 | niro | 26232 | # $Id$ |
2 | |||
3 | PNAME="plymouth" | ||
4 | PVER="0.9.2" | ||
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.44 | ||
13 | >= media-libs/libpng-1.5 | ||
14 | >= x11-libs/pango-1.36 | ||
15 | >= x11-libs/cairo-1.14 | ||
16 | >= x11-libs/libdrm-2.4.61" | ||
17 | |||
18 | X11_DEPEND=">= x11-libs/gtk2+-2.24 | ||
19 | >= x11-libs/gtk3+-3.16" | ||
20 | |||
21 | SDEPEND="${COMMON_DEPEND} | ||
22 | ${X11_DEPEND} | ||
23 | niro | 26233 | >= app-text/docbook-xsl-stylesheets-1.78 |
24 | niro | 26232 | >= 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/?C=M;O=A' | highesttarball" | ||
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 | # 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 | mconfigure \ | ||
77 | --localstatedir=/var \ | ||
78 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
79 | --enable-tracing \ | ||
80 | --disable-tests \ | ||
81 | --disable-gdm-transition \ | ||
82 | --enable-systemd-integration \ | ||
83 | --without-system-root-install \ | ||
84 | --without-log-viewer \ | ||
85 | --with-logo=/usr/share/plymouth/magellan-logo.png \ | ||
86 | --disable-libkms \ | ||
87 | || die | ||
88 | |||
89 | mmake || die | ||
90 | } | ||
91 | |||
92 | src_install_plymouth() | ||
93 | { | ||
94 | cd ${SRCDIR} | ||
95 | mmake DESTDIR=${BINDIR} install || die | ||
96 | |||
97 | # install magellan-logo | ||
98 | minstalldir /usr/share/plymouth || die | ||
99 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die | ||
100 | |||
101 | # install boot-duration for initrd | ||
102 | minstalldir /usr/share/plymouth || die | ||
103 | minstalldir /var/lib/plymouth || die | ||
104 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die | ||
105 | minstallfile -s boot-duration /var/lib/plymouth || die | ||
106 | |||
107 | # install charge plugin from fedora | ||
108 | minstalldir /usr/share/plymouth/themes/charge || die | ||
109 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die | ||
110 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die | ||
111 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die | ||
112 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die | ||
113 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die | ||
114 | |||
115 | # remove x11-renderer | ||
116 | rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die | ||
117 | |||
118 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die | ||
119 | } | ||
120 | |||
121 | src_install_plymouth-x11() | ||
122 | { | ||
123 | cd ${SRCDIR} | ||
124 | mmake DESTDIR=${BINDIR} install || die | ||
125 | zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die | ||
126 | } |