
Package-Manager: Portage-2.3.24, Repoman-2.3.6 Manifest-Sign-Key: 01A82408BDE3C5613399B9F57B0F1A69527F615C
36 lines
819 B
Bash
36 lines
819 B
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
DESCRIPTION="Gajim plugin for OMEMO XMPP end-to-end encryption"
|
|
HOMEPAGE="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin"
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://dev.gajim.org/gajim/gajim-plugins.git"
|
|
|
|
if [[ "${PV}" = "9999" ]] ; then
|
|
KEYWORDS=""
|
|
else
|
|
EGIT_COMMIT="omemo_${PV}"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
DEPEND="dev-python/python-axolotl
|
|
dev-python/qrcode
|
|
dev-python/cryptography"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_install() {
|
|
local PLUGIN_DIR="/usr/share/gajim/plugins"
|
|
local OMEMO_PLUGIN_DIR="${PLUGIN_DIR}/omemo"
|
|
dodir "${PLUGIN_DIR}"
|
|
dodir "${OMEMO_PLUGIN_DIR}"
|
|
cp -pPR "${S}"/omemo/* "${D}/${OMEMO_PLUGIN_DIR}" || die "Installing files failed"
|
|
}
|