From a5ce90c569e898c027175f18d3f5760313960652 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Tue, 30 Apr 2024 19:05:11 -0400 Subject: [PATCH] Re-add Notify-Send-py package --- dev-python/notify-send-py/Manifest | 1 + .../notify-send-py-1.2.7.ebuild | 32 +++++++++++++++++++ ...deadd-notification-center-bin-2.1.1.ebuild | 1 + 3 files changed, 34 insertions(+) create mode 100644 dev-python/notify-send-py/Manifest create mode 100644 dev-python/notify-send-py/notify-send-py-1.2.7.ebuild diff --git a/dev-python/notify-send-py/Manifest b/dev-python/notify-send-py/Manifest new file mode 100644 index 0000000..306bdf4 --- /dev/null +++ b/dev-python/notify-send-py/Manifest @@ -0,0 +1 @@ +DIST notify-send.py-1.2.7.tar.gz 10762 BLAKE2B 71322a88561502f55b0110eea465ba15586b9258ee10719643c22e00df41cc76f568e61af00bbee965ecb91919fea2b8b03f5dda2a7787a60be494cb89574b16 SHA512 55e96aa85480ed64170ceadbe74ea4b90df769035d34a3631713a358a6abd775ad8496180f9ad424cffb275fa986609c00c3cd2a87f50964472dec962d088435 diff --git a/dev-python/notify-send-py/notify-send-py-1.2.7.ebuild b/dev-python/notify-send-py/notify-send-py-1.2.7.ebuild new file mode 100644 index 0000000..abe8674 --- /dev/null +++ b/dev-python/notify-send-py/notify-send-py-1.2.7.ebuild @@ -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 +} diff --git a/x11-misc/deadd-notification-center-bin/deadd-notification-center-bin-2.1.1.ebuild b/x11-misc/deadd-notification-center-bin/deadd-notification-center-bin-2.1.1.ebuild index 9b42e28..3c3c5d7 100644 --- a/x11-misc/deadd-notification-center-bin/deadd-notification-center-bin-2.1.1.ebuild +++ b/x11-misc/deadd-notification-center-bin/deadd-notification-center-bin-2.1.1.ebuild @@ -20,6 +20,7 @@ DEPEND=" net-misc/wget " RDEPEND=" + dev-python/notify-send-py " pkg_setup() {