# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit multilib eutils DESCRIPTION="CardDAV plugin for mail-client/thunderbird" HOMEPAGE="http://www.sogo.nu/downloads/frontends.html" THUNDERBIRD_VERSION="24" KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="GPL-2" IUSE="" SRC_URI="https://github.com/inverse-inc/${PN}.tb${THUNDERBIRD_VERSION}/archive/${P}.zip" RDEPEND="=mail-client/thunderbird-${THUNDERBIRD_VERSION}*[lightning]" DEPEND="${RDEPEND}" S="${WORKDIR}/${PN}.tb${THUNDERBIRD_VERSION}-${P}" src_prepare() { epatch "${FILESDIR}/version.patch" } src_compile() { emake -j1 } src_install() { declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/thunderbird" declare emid emid=$(sed -n '//!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die unzip "${S}/${P}.xpi" || die }