# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python2_7 ) PYTHON_REQ_USE="sqlite" COMMIT=30e211367003bafa67834ffff3f31e6b5a897f4b inherit distutils-r1 xdg-utils MY_PN="PyBitmessage" DESCRIPTION="Reference client for Bitmessage: a P2P communications protocol" HOMEPAGE="https://bitmessage.org" SRC_URI="https://github.com/g1itch/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}"/${MY_PN}-${COMMIT} LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug libnotify ncurses opencl qrcode sound" REQUIRED_USE="${PYTHON_REQUIRED_USE}" DEPEND="${PYTHON_DEPS}" RDEPEND="${DEPEND} || ( dev-python/msgpack[${PYTHON_USEDEP}] dev-python/u-msgpack-python[${PYTHON_USEDEP}] ) dev-python/pyqt5[${PYTHON_USEDEP}] >=dev-python/qtpy-1.3.1[gui,pyqt5(+),${PYTHON_USEDEP}] debug? ( dev-python/python-prctl[${PYTHON_USEDEP}] ) libnotify? ( dev-python/pygobject[${PYTHON_USEDEP}] dev-python/notify2[${PYTHON_USEDEP}] x11-themes/hicolor-icon-theme ) dev-libs/openssl:0 ncurses? ( dev-python/pythondialog[${PYTHON_USEDEP}] ) opencl? ( dev-python/numpy:python2[${PYTHON_USEDEP}] dev-python/pyopencl[${PYTHON_USEDEP}] ) qrcode? ( dev-python/qrcode[${PYTHON_USEDEP}] ) sound? ( || ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] media-sound/gst123 media-libs/gst-plugins-base:1.0 media-sound/mpg123 media-sound/alsa-utils ) ) " src_install () { distutils-r1_src_install einstalldocs # The man page is not installed because it's basically empty. } pkg_postinst() { xdg_icon_cache_update } pkg_postrm() { xdg_icon_cache_update }