# Copyright 2015 awesome information technology, http://awesome-it.de # Distributed under the terms of the GNU General Public License v3 # $Header: $ EAPI=5 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/JohnDoh/Roundcube-Plugin-Mark-as-Junk-2.git" [[ ${PV} == "9999" ]] || EGIT_COMMIT="${PV}" inherit git-2 src_unpack() { git-2_src_unpack } src_install() { insinto "${ROUNDCUBE_CONF_DIR}" newins "config.inc.php.dist" "markasjunk2.inc.php" ln -s "${ROUNDCUBE_CONF_DIR}/markasjunk2.inc.php" "config.inc.php" insinto "${ROUNDCUBE_DIR}/plugins/markasjunk2" doins -r * }