# $Id$ PNAME="plymouth" PVER="0.9.0" PBUILD="r1" SPLIT_PACKAGES="plymouth plymouth-x11" PCAT="sys-apps" HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" COMMON_DEPEND=">= dev-libs/glib2-2.40 >= media-libs/libpng-1.5 >= x11-libs/pango-1.36 >= x11-libs/cairo-1.12 >= x11-libs/libdrm-2.4.54" X11_DEPEND=">= x11-libs/gtk2+-2.24" SDEPEND="${COMMON_DEPEND} ${X11_DEPEND} >= dev-util/pkgconfig-0.25 >= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools cleanutils SRC_URI=( http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/boot-duration mirror://${PNAME}/charge.plymouth mirror://${PNAME}/magellan-sign.png ) UP2DATE="updatecmd 'http://www.freedesktop.org/software/plymouth/releases/?C=M;O=A' | lasttarball" split_info_plymouth() { DESCRIPTION="Graphical Boot Animation and Logger." DEPEND="${COMMON_DEPEND}" } split_info_plymouth-x11() { DESCRIPTION="X11 renderer of plymouth, for development purposes only." DEPEND="== sys-apps/plymouth-${PVER} ${X11_DEPEND}" } src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix systemdunitdir location sed -i \ 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \ configure.ac || die # make charge to the default plugin sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die # git - missing configure mautoreconf || die } src_compile() { cd ${SRCDIR} mconfigure \ --localstatedir=/var \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --enable-tracing \ --disable-tests \ --disable-gdm-transition \ --enable-systemd-integration \ --without-system-root-install \ --without-log-viewer \ --with-logo=/usr/share/plymouth/magellan-logo.png \ --disable-libkms \ || die mmake || die } src_install_plymouth() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install magellan-logo minstalldir /usr/share/plymouth || die minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die # install boot-duration for initrd minstalldir /usr/share/plymouth || die minstalldir /var/lib/plymouth || die minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die minstallfile -s boot-duration /var/lib/plymouth || die # install charge plugin from fedora minstalldir /usr/share/plymouth/themes/charge || die minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die # remove x11-renderer rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die } src_install_plymouth-x11() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die }