update net/gajim to 1.4.7

With some suggestions from aja and op

ok op@
This commit is contained in:
paco 2022-09-06 18:32:33 +00:00
parent fb6a866c94
commit 8a30a1d9d8
5 changed files with 274 additions and 554 deletions

View File

@ -1,17 +1,13 @@
COMMENT= fully-featured XMPP client written in Python
MODPY_EGG_VERSION= 1.3.3
MODPY_EGG_VERSION= 1.4.7
DISTNAME= gajim-${MODPY_EGG_VERSION}
CATEGORIES= net x11
HOMEPAGE= https://www.gajim.org
MAINTAINER= Paco Esteban <paco@openbsd.org>
MAINTAINER= Paco Esteban <paco@openbsd.org>
MASTER_SITES= ${HOMEPAGE}/downloads/1.3/
# upstream did not include the plugin installer on 1.3.3 again
# and fixed it on 1.3.3-2
# https://dev.gajim.org/gajim/gajim/-/issues/10719
DISTFILES= gajim-${MODPY_EGG_VERSION}-2${EXTRACT_SUFX}
MASTER_SITES= ${HOMEPAGE}/downloads/1.4/
# GPLv3 only
PERMIT_PACKAGE= Yes
@ -23,11 +19,13 @@ BUILD_DEPENDS= devel/gettext,-tools
RUN_DEPENDS= audio/gsound \
devel/desktop-file-utils \
devel/glib2>=2.6.0 \
devel/glib2>=2.60.0 \
devel/libsoup \
devel/pango>=1.50.0 \
devel/py-gobject3 \
graphics/py-Pillow${MODPY_FLAVOR} \
graphics/py-cairo${MODPY_FLAVOR} \
net/py-nbxmpp${MODPY_FLAVOR}>=2.0.4 \
net/py-nbxmpp${MODPY_FLAVOR}>=3.1.1 \
security/py-cryptodome${MODPY_FLAVOR} \
security/py-gnupg${MODPY_FLAVOR} \
security/py-keyring${MODPY_FLAVOR} \
@ -37,6 +35,7 @@ RUN_DEPENDS= audio/gsound \
textproc/py-css-parser${MODPY_FLAVOR} \
textproc/py-precis_i18n${MODPY_FLAVOR} \
x11/dbus-python${MODPY_FLAVOR} \
x11/gtk+3,-guic
x11/gtk+3,-guic \
x11/gtksourceview4
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (gajim-1.3.3-2.tar.gz) = UUHqHCf00sGTbeE23Ckoml6/QeVn3agyHinZZRhxcgM=
SIZE (gajim-1.3.3-2.tar.gz) = 9578053
SHA256 (gajim-1.4.7.tar.gz) = GkgHvzo0sxBIgk5P/3Yr0eFiL0ZOc6QmwJaE3Ck2hPM=
SIZE (gajim-1.4.7.tar.gz) = 7184866

View File

@ -3,10 +3,10 @@ Use correct location and do not compress man pages.
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -109,11 +109,11 @@ def build_man(build_cmd):
def install_man(install_cmd):
data_files = install_cmd.distribution.data_files
man_dir = build_dir / 'man'
@@ -104,11 +104,11 @@ def build_man() -> None:
def install_man(data_files: DataFilesT) -> None:
man_dir = BUILD_DIR / 'man'
- target = 'share/man/man1'
+ target = 'man/man1'
@ -16,4 +16,4 @@ Index: setup.py
+ data_files.append((target, [os.path.join('data', man)]))
def build_intl(build_cmd):
def build_intl() -> None:

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,25 @@
Gajim Plugins
=============
Upstream keeps removing the plugin installer plugin from the
distribution tarball, so automatic of plugin installation is not
possible at this point.
To install plugins, clone the plugins repository:
git clone \
https://dev.gajim.org/gajim/gajim-plugins \
~/.local/share/gajim/plugins/
Also, upstream decided to check for the output of sys.platform and
compare to a json file on the plugins manifest. Of course, this only
includes "linux", "win32" and "darwin" for the majority of the plugins,
so none of them will work on OpenBSD. Some were tested by adding
"openbsd7" to the list of platforms on the manifest JSON file for each
plugin and they just work. So, for each plugin you want to enable, edit
the corresponding "plugin-manifest.json" file and add "openbsd7" to the
list of platforms, and give it a try.
Some plugins in Gajim require additional Python modules to function
properly. For instance, in order to use the OMEMO plugin, axolotl is
required. This is available on OpenBSD via the py3-axolotl package or