# Copyright 2015 awesome information technology, http://awesome-it.de # Distributed under the terms of the GNU General Public License v3 # $Header: $ EAPI=5 inherit eutils git-2 DESCRIPTION="Roundcube plugin to setup identities with different smtp servers than the servers default." HOMEPAGE="https://github.com/elm/Roundcube-SMTP-per-Identity-Plugin" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="www-apps/kolab-roundcube dev-lang/php" RDEPEND="${DEPEND}" ROUNDCUBE_DIR="/usr/share/kolab-roundcube" EGIT_REPO_URI="https://github.com/elm/Roundcube-SMTP-per-Identity-Plugin.git" EGIT_COMMIT="fb3a37b3f20aa05d1ab3938599518575b997c357" [[ ${PV} == "20121002" ]] && EGIT_COMMIT="3e383c3e18f6d52d2ba6103e7beed30a67b3b043" src_prepare() { cd ${S} # Apply patches for patch in $(find ${FILESDIR} -iname "${PF}-*.patch") ; do epatch "${patch}" done } src_install() { insinto "${ROUNDCUBE_DIR}/plugins/identity_smtp" doins -r * }