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}
|
S="${WORKDIR}"/notify-send.py-${PV}
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
sys-apps/sed
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
"
|
"
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/notify2
|
||||||
|
dev-python/dbus-python
|
||||||
|
dev-python/pygobject
|
||||||
|
"
|
||||||
|
|
||||||
src_prepare() {
|
python_install() {
|
||||||
eapply_user
|
distutils-r1_python_install
|
||||||
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"
|
dobin "${FILESDIR}"/notify-send.py
|
||||||
mv ${S}/notify_send_py/notify_send_py.py ${S}/notify_send_py/notify-send.py
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils-r1_src_install
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user