# Copyright 2015 awesome information technology, http://awesome-it.de # Distributed under the terms of the GNU General Public License v3 # $Header: $ DESCRIPTION="Roundcube plugin to quickly add new contacts to address books" HOMEPAGE="https://github.com/namesco/Roundcube-Plugin-Recipient-To-Contact" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="dev-lang/php" RDEPEND="${DEPEND}" ROUNDCUBE_DIR="/usr/share/kolab-roundcube" ROUNDCUBE_CONF_DIR="/etc/kolab-roundcube" EGIT_REPO_URI="https://github.com/namesco/Roundcube-Plugin-Recipient-To-Contact.git" [[ ${PV} == "9999" ]] || EGIT_COMMIT="v${PV}" inherit git-2 src_unpack() { git-2_src_unpack } src_install() { insinto "${ROUNDCUBE_CONF_DIR}" newins "recipient_to_contact/config/config.inc.php.dist" "recipient_to_contact.inc.php" ln -s "${ROUNDCUBE_CONF_DIR}/recipient_to_contact.inc.php" "recipient_to_contact/config/config.inc.php" insinto "${ROUNDCUBE_DIR}/plugins/" doins -r "recipient_to_contact" }