# Copyright 2015 awesome information technology, http://awesome-it.de # Distributed under the terms of the GNU General Public License v3 # $Header: $ EAPI=5 DESCRIPTION="This is a XMPP plugin for Roundcube Webmail based on converse.js." HOMEPAGE="https://github.com/priyadi/roundcube-converse.js-xmpp-plugin" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="www-apps/kolab-roundcube dev-lang/php" RDEPEND="${DEPEND}" ROUNDCUBE_DIR="/usr/share/kolab-roundcube" ROUNDCUBE_CONF_DIR="/etc/kolab-roundcube" EGIT_REPO_URI="https://github.com/priyadi/roundcube-converse.js-xmpp-plugin.git" [[ ${PV} == "9999" ]] || EGIT_COMMIT="v${PV}" inherit git-2 src_unpack() { git-2_src_unpack } src_install() { insinto "${ROUNDCUBE_CONF_DIR}" newins "config.inc.php.dist" "converse.inc.php" ln -s "${ROUNDCUBE_CONF_DIR}/converse.inc.php" "config.inc.php" insinto "${ROUNDCUBE_DIR}/plugins/converse" doins -r * }