python-notify: remove package

This commit is contained in:
classabbyamp 2022-07-24 00:51:45 -04:00 committed by classabbyamp
parent b2ede75b90
commit 3b124b5116
5 changed files with 1 additions and 88 deletions

View file

@ -1,36 +0,0 @@
diff -up notify-python-0.1.1/src/pynotify.defs.notify070 notify-python-0.1.1/src/pynotify.defs
--- notify-python-0.1.1/src/pynotify.defs.notify070 2010-11-02 17:11:14.928179237 -0400
+++ notify-python-0.1.1/src/pynotify.defs 2010-11-02 17:11:51.153180231 -0400
@@ -38,7 +38,6 @@
'("const-gchar*" "summary")
'("const-gchar*" "message" (null-ok) (default "NULL"))
'("const-gchar*" "icon" (null-ok) (default "NULL"))
- '("GtkWidget*" "attach" (null-ok) (default "NULL"))
)
)
@@ -53,24 +52,6 @@
)
)
-(define-method attach_to_widget
- (of-object "NotifyNotification")
- (c-name "notify_notification_attach_to_widget")
- (return-type "none")
- (parameters
- '("GtkWidget*" "attach")
- )
-)
-
-(define-method attach_to_status_icon
- (of-object "NotifyNotification")
- (c-name "notify_notification_attach_to_status_icon")
- (return-type "none")
- (parameters
- '("GtkStatusIcon*" "attach")
- )
-)
-
(define-method show
(of-object "NotifyNotification")
(c-name "notify_notification_show")

View file

@ -1,25 +0,0 @@
diff -up notify-python-0.1.1/src/__init__.py.BAD notify-python-0.1.1/src/__init__.py
--- notify-python-0.1.1/src/__init__.py.BAD 2010-08-31 09:04:45.353844005 -0400
+++ notify-python-0.1.1/src/__init__.py 2010-08-31 09:04:49.281844300 -0400
@@ -1 +1,21 @@
+"""
+Fedora's libnotify.so is not linked against GTK2 or GTK3. The idea
+was to support being linked against different parallel-installable
+GTK stacks.
+
+Unfortunately, python needs to jump through some special hoops in order
+to share symbols with extension modules, specifically, pygtk, which does
+link against GTK2.
+
+Without using sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL),
+the result is:
+libnotify-WARNING **: Missing symbol 'gdk_screen_make_display_name'
+
+Thanks to David Malcolm for figuring out the workaround.
+"""
+import ctypes
+import sys
+sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
+import gtk
+
from _pynotify import *

View file

@ -1,26 +0,0 @@
# Template file for 'python-notify'
pkgname=python-notify
version=0.1.1
revision=13
wrksrc="notify-python-${version}"
build_style=gnu-configure
pycompile_module="gtk-2.0/pynotify"
hostmakedepends="pkg-config python-devel python-gobject2-devel pygtk-devel"
makedepends="libnotify-devel gtk+-devel dbus-glib-devel pygtk-devel"
depends="pygtk"
short_desc="Python2 bindings for libnotify"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="http://www.galago-project.org/"
distfiles="http://www.galago-project.org/files/releases/source/notify-python/notify-python-${version}.tar.gz"
checksum=8c5ee28017fdc5b110c31cb76503e535e15e0c60b9a1f1e95ff6c018dd806022
replaces="notify-python>=0"
lib32disabled=yes
CFLAGS="-fcommon"
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i -e "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
fi
}

View file

@ -1 +0,0 @@
pkgname="notify-python"

View file

@ -311,6 +311,7 @@ replaces="
python-matplotlib<=2.2.4_2
python-netifaces<=0.10.9_3
python-nose<=1.3.7_7
python-notify<=0.1.1_13
python-pgpdump<=1.5_10
python-pivy<=0.6.4_2
python-pretend<=1.0.9_5