From 16b89d942349fc766c51ae6cfa2914c1892daa89 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Tue, 30 Apr 2024 20:34:41 -0400 Subject: [PATCH] Attempt to fix notify-send-py package --- .../notify-send-py/files/notify-send.py | 3 +++ .../notify-send-py-1.2.7.ebuild | 19 +++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 dev-python/notify-send-py/files/notify-send.py diff --git a/dev-python/notify-send-py/files/notify-send.py b/dev-python/notify-send-py/files/notify-send.py new file mode 100644 index 0000000..4cf2ba1 --- /dev/null +++ b/dev-python/notify-send-py/files/notify-send.py @@ -0,0 +1,3 @@ +#!/bin/sh +exec python3 -m notify_send_py.notify_send_py "$@" + 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 index abe8674..34fdbc2 100644 --- 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 @@ -12,21 +12,20 @@ SRC_URI="https://files.pythonhosted.org/packages/f7/44/edf5578a7e3d79e30505286da S="${WORKDIR}"/notify-send.py-${PV} -LICENSE="GPL-3" +LICENSE="MIT" SLOT="0" KEYWORDS="amd64" DEPEND=" - sys-apps/sed dev-python/setuptools[${PYTHON_USEDEP}] " +RDEPEND=" + dev-python/notify2 + dev-python/dbus-python + dev-python/pygobject +" -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 +python_install() { + distutils-r1_python_install + dobin "${FILESDIR}"/notify-send.py }