net-im/gajim-omemo: adjust to gajim >=1.1
This commit is contained in:
parent
0227e92d83
commit
81aa0b62d4
2 changed files with 32 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=6
|
EAPI=6
|
||||||
|
@ -6,7 +6,9 @@ EAPI=6
|
||||||
DESCRIPTION="Gajim plugin for OMEMO XMPP end-to-end encryption"
|
DESCRIPTION="Gajim plugin for OMEMO XMPP end-to-end encryption"
|
||||||
HOMEPAGE="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin"
|
HOMEPAGE="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin"
|
||||||
|
|
||||||
inherit git-r3
|
PYTHON_COMPAT=( python3_{5,6} )
|
||||||
|
|
||||||
|
inherit git-r3 python-r1 python-utils-r1
|
||||||
|
|
||||||
EGIT_REPO_URI="https://dev.gajim.org/gajim/gajim-plugins.git"
|
EGIT_REPO_URI="https://dev.gajim.org/gajim/gajim-plugins.git"
|
||||||
|
|
||||||
|
@ -23,14 +25,21 @@ IUSE=""
|
||||||
|
|
||||||
DEPEND="dev-python/python-axolotl
|
DEPEND="dev-python/python-axolotl
|
||||||
dev-python/qrcode
|
dev-python/qrcode
|
||||||
dev-python/cryptography"
|
dev-python/cryptography
|
||||||
|
>=net-im/gajim-1.1"
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
src_install() {
|
install_omemo() {
|
||||||
local PLUGIN_DIR="/usr/share/gajim/plugins"
|
python_export PYTHON_SITEDIR
|
||||||
|
local GAJIM_SITEPACKAGE="$PYTHON_SITEDIR/gajim/)"
|
||||||
|
local PLUGIN_DIR="${GAJIM_SITEPACKAGE}/data/plugins"
|
||||||
local OMEMO_PLUGIN_DIR="${PLUGIN_DIR}/omemo"
|
local OMEMO_PLUGIN_DIR="${PLUGIN_DIR}/omemo"
|
||||||
dodir "${PLUGIN_DIR}"
|
dodir "${PLUGIN_DIR}"
|
||||||
dodir "${OMEMO_PLUGIN_DIR}"
|
dodir "${OMEMO_PLUGIN_DIR}"
|
||||||
cp -pPR "${S}"/omemo/* "${D}/${OMEMO_PLUGIN_DIR}" || die "Installing files failed"
|
cp -pPR "${S}"/omemo/* "${D}/${OMEMO_PLUGIN_DIR}" || die "Installing files failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
python_foreach_impl install_omemo
|
||||||
|
}
|
|
@ -1,18 +1,21 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=5
|
EAPI=6
|
||||||
|
|
||||||
DESCRIPTION="Gajim plugin for XEP proposal: OMEMO Encryption"
|
DESCRIPTION="Gajim plugin for OMEMO XMPP end-to-end encryption"
|
||||||
HOMEPAGE="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin"
|
HOMEPAGE="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin"
|
||||||
|
|
||||||
inherit git-r3
|
PYTHON_COMPAT=( python3_{5,6} )
|
||||||
|
|
||||||
|
inherit git-r3 python-r1 python-utils-r1
|
||||||
|
|
||||||
EGIT_REPO_URI="https://dev.gajim.org/gajim/gajim-plugins.git"
|
EGIT_REPO_URI="https://dev.gajim.org/gajim/gajim-plugins.git"
|
||||||
|
|
||||||
if [[ "${PV}" = "9999" ]] ; then
|
if [[ "${PV}" = "9999" ]] ; then
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
else
|
else
|
||||||
EGIT_COMMIT="5a6d4d2679da188cae0323579c6ac9fa9b5a8dc9"
|
EGIT_COMMIT="omemo_${PV}"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -22,14 +25,21 @@ IUSE=""
|
||||||
|
|
||||||
DEPEND="dev-python/python-axolotl
|
DEPEND="dev-python/python-axolotl
|
||||||
dev-python/qrcode
|
dev-python/qrcode
|
||||||
dev-python/cryptography"
|
dev-python/cryptography
|
||||||
|
>=net-im/gajim-1.1"
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
src_install() {
|
install_omemo() {
|
||||||
local PLUGIN_DIR="/usr/share/gajim/plugins"
|
python_export PYTHON_SITEDIR
|
||||||
|
local GAJIM_SITEPACKAGE="$PYTHON_SITEDIR/gajim/)"
|
||||||
|
local PLUGIN_DIR="${GAJIM_SITEPACKAGE}/data/plugins"
|
||||||
local OMEMO_PLUGIN_DIR="${PLUGIN_DIR}/omemo"
|
local OMEMO_PLUGIN_DIR="${PLUGIN_DIR}/omemo"
|
||||||
dodir "${PLUGIN_DIR}"
|
dodir "${PLUGIN_DIR}"
|
||||||
dodir "${OMEMO_PLUGIN_DIR}"
|
dodir "${OMEMO_PLUGIN_DIR}"
|
||||||
cp -pPR "${S}"/omemo/* "${D}/${OMEMO_PLUGIN_DIR}" || die "Installing files failed"
|
cp -pPR "${S}"/omemo/* "${D}/${OMEMO_PLUGIN_DIR}" || die "Installing files failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
python_foreach_impl install_omemo
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue