Attempt to fix notify-send-py package
This commit is contained in:
3
dev-python/notify-send-py/files/notify-send.py
Normal file
3
dev-python/notify-send-py/files/notify-send.py
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec python3 -m notify_send_py.notify_send_py "$@"
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user