pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-ueberzug: add new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Tue Feb 11 15:16:59 2025 +0100
Changeset:	996b618c9eb1ce18eb0479f674b46149b230d816

Modified Files:
	Makefile
Added Files:
	py-ueberzug/DESCR
	py-ueberzug/Makefile
	py-ueberzug/PLIST
	py-ueberzug/TODO
	py-ueberzug/distinfo
	py-ueberzug/patches/patch-ueberzug_X_python.h

Log Message:
py-ueberzug: add new package

Packages fine, but untested.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=996b618c9eb1ce18eb0479f674b46149b230d816

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                      |  1 +
 py-ueberzug/DESCR                             | 11 ++++++
 py-ueberzug/Makefile                          | 25 ++++++++++++++
 py-ueberzug/PLIST                             | 49 +++++++++++++++++++++++++++
 py-ueberzug/TODO                              |  2 ++
 py-ueberzug/distinfo                          |  6 ++++
 py-ueberzug/patches/patch-ueberzug_X_python.h | 17 ++++++++++
 7 files changed, 111 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ef85ffedb4..194463923d 100644
--- a/Makefile
+++ b/Makefile
@@ -4845,6 +4845,7 @@ SUBDIR+=	py-typedload
 SUBDIR+=	py-u2flib-server
 SUBDIR+=	py-ua-parser
 SUBDIR+=	py-ubjson
+SUBDIR+=	py-ueberzug
 SUBDIR+=	py-umalqurra
 SUBDIR+=	py-unidecode
 SUBDIR+=	py-unidiff
diff --git a/py-ueberzug/DESCR b/py-ueberzug/DESCR
new file mode 100644
index 0000000000..76d108443e
--- /dev/null
+++ b/py-ueberzug/DESCR
@@ -0,0 +1,11 @@
+Ueberzug is a command line util which allows one to draw images on
+terminals by using child windows.
+
+Advantages over the w3mimgdisplay program:
+- no race conditions as a new window is created to display images
+- expose events will be processed, so images will be redrawn on
+  switch workspaces
+- tmux support (excluding multi pane windows)
+- terminals without the WINDOWID environment variable are supported
+- chars are used as position - and size unit
+- no memory leak (/ unlimited cache)
diff --git a/py-ueberzug/Makefile b/py-ueberzug/Makefile
new file mode 100644
index 0000000000..cd78777502
--- /dev/null
+++ b/py-ueberzug/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME=	ueberzug-18.3.1
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	graphics python
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ueber-devel/}
+GITHUB_PROJECT=	ueberzug
+GITHUB_TAG=	${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/ueber-devel/ueberzug/
+COMMENT=	Command line utility which allows drawing images on terminals
+LICENSE=	gnu-gpl-v3
+
+USE_TOOLS+=	pkg-config
+
+REPLACE_PYTHON+=	ueberzug/__main__.py
+
+.include "../../devel/meson/build.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXres/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-ueberzug/PLIST b/py-ueberzug/PLIST
new file mode 100644
index 0000000000..bb8e16ebe8
--- /dev/null
+++ b/py-ueberzug/PLIST
@@ -0,0 +1,49 @@
+@comment $NetBSD$
+${PYSITELIB}/ueberzug/X.so
+${PYSITELIB}/ueberzug/__init__.py
+${PYSITELIB}/ueberzug/__init__.pyc
+${PYSITELIB}/ueberzug/__main__.py
+${PYSITELIB}/ueberzug/__main__.pyc
+${PYSITELIB}/ueberzug/action.py
+${PYSITELIB}/ueberzug/action.pyc
+${PYSITELIB}/ueberzug/batch.py
+${PYSITELIB}/ueberzug/batch.pyc
+${PYSITELIB}/ueberzug/conversion.py
+${PYSITELIB}/ueberzug/conversion.pyc
+${PYSITELIB}/ueberzug/files.py
+${PYSITELIB}/ueberzug/files.pyc
+${PYSITELIB}/ueberzug/geometry.py
+${PYSITELIB}/ueberzug/geometry.pyc
+${PYSITELIB}/ueberzug/layer.py
+${PYSITELIB}/ueberzug/layer.pyc
+${PYSITELIB}/ueberzug/lib/__init__.py
+${PYSITELIB}/ueberzug/lib/__init__.pyc
+${PYSITELIB}/ueberzug/lib/lib.sh
+${PYSITELIB}/ueberzug/lib/v0/__init__.py
+${PYSITELIB}/ueberzug/lib/v0/__init__.pyc
+${PYSITELIB}/ueberzug/library.py
+${PYSITELIB}/ueberzug/library.pyc
+${PYSITELIB}/ueberzug/loading.py
+${PYSITELIB}/ueberzug/loading.pyc
+${PYSITELIB}/ueberzug/parser.py
+${PYSITELIB}/ueberzug/parser.pyc
+${PYSITELIB}/ueberzug/pattern.py
+${PYSITELIB}/ueberzug/pattern.pyc
+${PYSITELIB}/ueberzug/process.py
+${PYSITELIB}/ueberzug/process.pyc
+${PYSITELIB}/ueberzug/query_windows.py
+${PYSITELIB}/ueberzug/query_windows.pyc
+${PYSITELIB}/ueberzug/scaling.py
+${PYSITELIB}/ueberzug/scaling.pyc
+${PYSITELIB}/ueberzug/terminal.py
+${PYSITELIB}/ueberzug/terminal.pyc
+${PYSITELIB}/ueberzug/thread.py
+${PYSITELIB}/ueberzug/thread.pyc
+${PYSITELIB}/ueberzug/tmux_util.py
+${PYSITELIB}/ueberzug/tmux_util.pyc
+${PYSITELIB}/ueberzug/ui.py
+${PYSITELIB}/ueberzug/ui.pyc
+${PYSITELIB}/ueberzug/version.py
+${PYSITELIB}/ueberzug/version.pyc
+${PYSITELIB}/ueberzug/xutil.py
+${PYSITELIB}/ueberzug/xutil.pyc
diff --git a/py-ueberzug/TODO b/py-ueberzug/TODO
new file mode 100644
index 0000000000..d53327c653
--- /dev/null
+++ b/py-ueberzug/TODO
@@ -0,0 +1,2 @@
+Builds and installs fine, but doesn't install an ueberzug binary,
+so I'm not sure how to test this.
diff --git a/py-ueberzug/distinfo b/py-ueberzug/distinfo
new file mode 100644
index 0000000000..559395d891
--- /dev/null
+++ b/py-ueberzug/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (ueberzug-18.3.1.tar.gz) = c8badf20f0d054ef299eb78c5ed07a363fbd0047f154447b82e8f0c75c1bb9cd
+SHA512 (ueberzug-18.3.1.tar.gz) = 194f94c69d61163edde4a09b9575efa18d82119636f1b89b062fde207b18c7d0aca3ed144b08194a81417f6fe5ae9069de58b824b31ad1f34ecb80c67b4d1fc1
+Size (ueberzug-18.3.1.tar.gz) = 58290 bytes
+SHA1 (patch-ueberzug_X_python.h) = 3bf15479e9bcb184668405138e24df563b4c9f0c
diff --git a/py-ueberzug/patches/patch-ueberzug_X_python.h b/py-ueberzug/patches/patch-ueberzug_X_python.h
new file mode 100644
index 0000000000..5e06e11b76
--- /dev/null
+++ b/py-ueberzug/patches/patch-ueberzug_X_python.h
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Let's be hopeful.
+
+--- ueberzug/X/python.h.orig	2025-02-11 14:11:43.514334671 +0000
++++ ueberzug/X/python.h
+@@ -1,10 +1,6 @@
+ #ifndef __PYTHON_H__
+ #define __PYTHON_H__
+ 
+-#ifndef __linux__
+-#error OS unsupported
+-#endif
+-
+ #define PY_SSIZE_T_CLEAN  // Make "s#" use Py_ssize_t rather than int.
+ #include <Python.h>
+ 


Home | Main Index | Thread Index | Old Index