mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
profanity: update to 0.13.1.
This commit is contained in:
parent
31ca0cebab
commit
680f00f388
2 changed files with 3 additions and 24 deletions
|
@ -1,21 +0,0 @@
|
|||
diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c
|
||||
index 0b91cf70..091b3b4a 100644
|
||||
--- a/src/plugins/python_api.c
|
||||
+++ b/src/plugins/python_api.c
|
||||
@@ -1619,8 +1619,16 @@ static char*
|
||||
_python_plugin_name(void)
|
||||
{
|
||||
PyThreadState* ts = PyThreadState_Get();
|
||||
+#if PY_VERSION_HEX >= 0x030B0000
|
||||
+ PyFrameObject* frame = PyThreadState_GetFrame(ts);
|
||||
+ PyCodeObject* code = PyFrame_GetCode(frame);
|
||||
+ char* filename = python_str_or_unicode_to_string(code->co_filename);
|
||||
+ Py_DECREF(code);
|
||||
+ Py_DECREF(frame);
|
||||
+#else
|
||||
PyFrameObject* frame = ts->frame;
|
||||
char* filename = python_str_or_unicode_to_string(frame->f_code->co_filename);
|
||||
+#endif
|
||||
gchar** split = g_strsplit(filename, "/", 0);
|
||||
free(filename);
|
||||
char* plugin_name = strdup(split[g_strv_length(split) - 1]);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'profanity'
|
||||
pkgname=profanity
|
||||
version=0.12.1
|
||||
revision=2
|
||||
version=0.13.1
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="$(vopt_enable notify notifications) $(vopt_enable otr)
|
||||
$(vopt_enable pgp) $(vopt_enable python python-plugins) $(vopt_enable plugins)
|
||||
|
@ -20,7 +20,7 @@ license="GPL-3.0-or-later"
|
|||
homepage="https://profanity-im.github.io/"
|
||||
changelog="https://raw.githubusercontent.com/profanity-im/profanity/master/CHANGELOG"
|
||||
distfiles="https://github.com/boothj5/profanity/releases/download/${version}/profanity-${version}.tar.gz"
|
||||
checksum=e344481e7bf3b16baf58a169d321b809c4700becffb70db6f1c39adc3fad306e
|
||||
checksum=2b5075272e7ec9d9c991542e592b1d474fff88c61c66e7e23096ad306ed2c84a
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
arm*)
|
||||
|
|
Loading…
Add table
Reference in a new issue