# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils DESCRIPTION="Webkit-based greeter for LightDM" HOMEPAGE="https://launchpad.net/${PN}" SRC_URI="${HOMEPAGE}/trunk/${PV}/+download/${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="branding" DEPEND=" app-text/gnome-doc-utils dev-libs/dbus-glib dev-libs/gobject-introspection dev-util/intltool >=net-libs/webkit-gtk-2.4.11:3/25 x11-misc/lightdm[gtk,introspection] >=x11-libs/gtk+-3.0.0 " RDEPEND="${DEPEND}" src_prepare(){ # What is Ambiance? This should be a GTK+ 2.x theme, so we use Clearlooks here. sed -i '/^theme-name=/s/Ambiance/Clearlooks/' data/lightdm-webkit-greeter.conf # Theme 'default' does not exist... sed -i '/^webkit-theme=/s/default/webkit/' data/lightdm-webkit-greeter.conf # this is Ubuntu branding... Replace it with something useful. ;) sed -i '/^background=/s|/usr/share/backgrounds/warty-final-ubuntu.png||' data/lightdm-webkit-greeter.conf # Replace Ubuntu font with Dejavusans sed -i '/^font-name=/s|Ubuntu 11|DejaVuSans 11|' data/lightdm-webkit-greeter.conf epatch "${FILESDIR}/${PN}-2.0.0_api_add_error.patch" } src_compile(){ econf || die "econf failed" emake DESTDIR="${D}" || die "emake failed" } src_install(){ emake DESTDIR="${D}" install if use branding; then insinto /usr/share/lightdm-webkit/themes doins -r "${FILESDIR}/gentoo" fi } pkg_postinst(){ elog "Hi! Thanks for using the Webkit greeter for LightDM." elog "If you want to add your own themes, place them in:" elog "/usr/share/lightdm-webkit/themes/" }