Magellan Linux

Annotation of /branches/R11-stable/extras/plymouth/plymouth-0.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21828 - (hide annotations) (download)
Mon Jul 21 09:56:46 2014 UTC (9 years, 9 months ago) by niro
File size: 3227 byte(s)
-release branches/R11-stable
1 niro 21452 # $Id$
2    
3     PNAME="plymouth"
4     PVER="0.9.0"
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.40
13     >= media-libs/libpng-1.5
14     >= x11-libs/pango-1.36
15     >= x11-libs/cairo-1.12
16     >= x11-libs/libdrm-2.4.54"
17    
18     X11_DEPEND=">= x11-libs/gtk2+-2.24"
19    
20     SDEPEND="${COMMON_DEPEND}
21     ${X11_DEPEND}
22     >= dev-util/pkgconfig-0.25
23     >= virtual/kernel-headers"
24    
25     SRCFILE="${PNAME}-${PVER}.tar.bz2"
26     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27    
28     sminclude mtools cleanutils
29    
30     SRC_URI=(
31     http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
32     mirror://${PNAME}/${SRCFILE}
33     mirror://${PNAME}/boot-duration
34     mirror://${PNAME}/charge.plymouth
35     mirror://${PNAME}/magellan-sign.png
36     )
37    
38     UP2DATE="updatecmd 'http://www.freedesktop.org/software/plymouth/releases/?C=M;O=A' | lasttarball"
39    
40     split_info_plymouth()
41     {
42     DESCRIPTION="Graphical Boot Animation and Logger."
43     DEPEND="${COMMON_DEPEND}"
44     }
45    
46     split_info_plymouth-x11()
47     {
48     DESCRIPTION="X11 renderer of plymouth, for development purposes only."
49     DEPEND="== sys-apps/plymouth-${PVER}
50     ${X11_DEPEND}"
51     }
52    
53     src_prepare()
54     {
55     munpack ${SRCFILE} || die
56     cd ${SRCDIR}
57    
58     # fix systemdunitdir location
59     sed -i \
60     's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \
61     configure.ac || die
62    
63     # make charge to the default plugin
64     sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
65    
66     # git - missing configure
67     mautoreconf || die
68     }
69    
70     src_compile()
71     {
72     cd ${SRCDIR}
73    
74     mconfigure \
75     --localstatedir=/var \
76     --libexecdir=/usr/$(mlibdir)/${PNAME} \
77     --enable-tracing \
78     --disable-tests \
79     --disable-gdm-transition \
80     --enable-systemd-integration \
81     --without-system-root-install \
82     --without-log-viewer \
83     --with-logo=/usr/share/plymouth/magellan-logo.png \
84     --disable-libkms \
85     || die
86    
87     mmake || die
88     }
89    
90     src_install_plymouth()
91     {
92     cd ${SRCDIR}
93     mmake DESTDIR=${BINDIR} install || die
94    
95     # install magellan-logo
96     minstalldir /usr/share/plymouth || die
97     minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
98    
99     # install boot-duration for initrd
100     minstalldir /usr/share/plymouth || die
101     minstalldir /var/lib/plymouth || die
102     minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
103     minstallfile -s boot-duration /var/lib/plymouth || die
104    
105     # install charge plugin from fedora
106     minstalldir /usr/share/plymouth/themes/charge || die
107     minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
108     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
109     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
110     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
111     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
112    
113     # remove x11-renderer
114     rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die
115    
116     minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
117     }
118    
119     src_install_plymouth-x11()
120     {
121     cd ${SRCDIR}
122     mmake DESTDIR=${BINDIR} install || die
123     zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die
124     }