Re-add Notify-Send-py package

This commit is contained in:
Sravan Balaji
2024-04-30 19:05:11 -04:00
parent 71ca3af6cf
commit a5ce90c569
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST notify-send.py-1.2.7.tar.gz 10762 BLAKE2B 71322a88561502f55b0110eea465ba15586b9258ee10719643c22e00df41cc76f568e61af00bbee965ecb91919fea2b8b03f5dda2a7787a60be494cb89574b16 SHA512 55e96aa85480ed64170ceadbe74ea4b90df769035d34a3631713a358a6abd775ad8496180f9ad424cffb275fa986609c00c3cd2a87f50964472dec962d088435

View File

@ -0,0 +1,32 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Script and module for sending desktop notifications"
HOMEPAGE="https://github.com/phuhl/notify-send.py"
SRC_URI="https://files.pythonhosted.org/packages/f7/44/edf5578a7e3d79e30505286dab30f29815b26ca33a5a5c8936468e6b406e/notify-send.py-${PV}.tar.gz"
S="${WORKDIR}"/notify-send.py-${PV}
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
DEPEND="
sys-apps/sed
dev-python/setuptools[${PYTHON_USEDEP}]
"
src_prepare() {
eapply_user
sed -i -e 's/from .notify3 import notify3/import notify3.notify3/g' ${S}/notify_send_py/notify_send_py.py || die "Failed to fix module import in script"
mv ${S}/notify_send_py/notify_send_py.py ${S}/notify_send_py/notify-send.py
}
src_install() {
distutils-r1_src_install
}