# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit autotools mount-boot DESCRIPTION="Graphical boot animation (splash) and logger" HOMEPAGE="http://cgit.freedesktop.org/plymouth/" SRC_URI="http://cgit.freedesktop.org/${PN}/snapshot/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="pango gdm" DEPEND=">=media-libs/libpng-1.2.16 pango? ( >=x11-libs/pango-1.21 ) >=x11-libs/gtk+-2.12.0 x11-libs/libdrm" RDEPEND="${DEPEND} sys-kernel/dracut" src_prepare() { epatch ${FILESDIR}/${PV}-gentoo-fb.patch eautoreconf || die "eautoreconf failed" } src_configure() { econf $(use_enable pango) $(use_enable gdm gdm-transition) } src_install() { emake install DESTDIR="${D}" || die "install failed" cd ${S}/scripts mkdir -p ${D}/boot chmod a+x ./plymouth-generate-initrd PLYMOUTH_DESTDIR="${D}/boot" ./plymouth-generate-initrd cd ${S} #work around qa warning find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed" # rm "${D}"/lib/libply.la rm "${D}"/lib/libply.a # rm "${D}"/lib/libply-splash-core.la rm "${D}"/lib/libply-splash-core.a } pkg_postinst() { elog "This version of ${PN} has stopped installing .la files. This may" elog "cause compilation failures in other packages. To fix this problem," elog "install dev-util/lafilefixer and run:" elog "lafilefixer --justfixit" }