git: db23b6af2b22 - main - graphics/halftone: New port: Program to apply pixel art-like style to images

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 13 Nov 2023 04:30:17 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=db23b6af2b22f4cf0b096de050c1237b17a1f34d

commit db23b6af2b22f4cf0b096de050c1237b17a1f34d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-13 04:29:44 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-13 04:30:15 +0000

    graphics/halftone: New port: Program to apply pixel art-like style to images
---
 graphics/Makefile           |  1 +
 graphics/halftone/Makefile  | 27 +++++++++++++++++++++++++++
 graphics/halftone/distinfo  |  3 +++
 graphics/halftone/pkg-descr |  2 ++
 graphics/halftone/pkg-plist | 35 +++++++++++++++++++++++++++++++++++
 5 files changed, 68 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 5ad06822030d..9b2fc7cb0fe3 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -330,6 +330,7 @@
     SUBDIR += guilib
     SUBDIR += gwenview
     SUBDIR += h3
+    SUBDIR += halftone
     SUBDIR += hdr_tools
     SUBDIR += heimer
     SUBDIR += hiptext
diff --git a/graphics/halftone/Makefile b/graphics/halftone/Makefile
new file mode 100644
index 000000000000..a215411e64aa
--- /dev/null
+++ b/graphics/halftone/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	halftone
+DISTVERSION=	0.4.0
+CATEGORIES=	graphics
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Program to apply pixel art-like style to images
+WWW=		https://github.com/tfuxu/Halftone
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	desktop-file-validate:devel/desktop-file-utils \
+		blueprint-compiler:devel/blueprint-compiler
+LIB_DEPENDS=	libgio-2.0.so:devel/glib20
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Wand>0:graphics/py-wand@${PY_FLAVOR}
+
+USES=		desktop-file-utils gettext-tools:build gnome meson pkgconfig python shebangfix
+USE_GNOME=	glib20 gtk40 libadwaita pygobject3
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	tfuxu
+GH_PROJECT=	Halftone
+
+SHEBANG_FILES=	halftone/halftone.in
+
+BINARY_ALIAS=	python3=${PYTHON_CMD}
+
+.include <bsd.port.mk>
diff --git a/graphics/halftone/distinfo b/graphics/halftone/distinfo
new file mode 100644
index 000000000000..bfa765d7b4ce
--- /dev/null
+++ b/graphics/halftone/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699844539
+SHA256 (tfuxu-Halftone-0.4.0_GH0.tar.gz) = 582ace08703822cb9eada5dba3e26b0d6205424b1773d6dbefd929ea72fce0eb
+SIZE (tfuxu-Halftone-0.4.0_GH0.tar.gz) = 865853
diff --git a/graphics/halftone/pkg-descr b/graphics/halftone/pkg-descr
new file mode 100644
index 000000000000..db862a34ea38
--- /dev/null
+++ b/graphics/halftone/pkg-descr
@@ -0,0 +1,2 @@
+Halftone is a program to give your images a pixel art-like style and
+reduce the file size in the process with Halftone.
diff --git a/graphics/halftone/pkg-plist b/graphics/halftone/pkg-plist
new file mode 100644
index 000000000000..3b7d7c18e0c5
--- /dev/null
+++ b/graphics/halftone/pkg-plist
@@ -0,0 +1,35 @@
+bin/halftone
+share/appdata/io.github.tfuxu.Halftone.appdata.xml
+share/applications/io.github.tfuxu.Halftone.desktop
+share/glib-2.0/schemas/io.github.tfuxu.Halftone.gschema.xml
+%%DATADIR%%/halftone.gresource
+%%DATADIR%%/halftone/__init__.py
+%%DATADIR%%/halftone/backend/__init__.py
+%%DATADIR%%/halftone/backend/logger.py
+%%DATADIR%%/halftone/backend/magick.py
+%%DATADIR%%/halftone/backend/model/__init__.py
+%%DATADIR%%/halftone/backend/model/output_options.py
+%%DATADIR%%/halftone/backend/utils/__init__.py
+%%DATADIR%%/halftone/backend/utils/image.py
+%%DATADIR%%/halftone/backend/utils/temp.py
+%%DATADIR%%/halftone/constants.py
+%%DATADIR%%/halftone/main.py
+%%DATADIR%%/halftone/utils/__init__.py
+%%DATADIR%%/halftone/utils/filters.py
+%%DATADIR%%/halftone/utils/killable_thread.py
+%%DATADIR%%/halftone/views/__init__.py
+%%DATADIR%%/halftone/views/about_window.py
+%%DATADIR%%/halftone/views/dither_page.py
+%%DATADIR%%/halftone/views/main_window.py
+%%DATADIR%%/halftone/views/preferences_window.py
+%%DATADIR%%/halftone/views/report_page.py
+share/icons/hicolor/scalable/apps/io.github.tfuxu.Halftone.svg
+share/icons/hicolor/symbolic/apps/io.github.tfuxu.Halftone-symbolic.svg
+share/locale/it/LC_MESSAGES/halftone.mo
+share/locale/nl/LC_MESSAGES/halftone.mo
+share/locale/pl/LC_MESSAGES/halftone.mo
+share/locale/pt_BR/LC_MESSAGES/halftone.mo
+share/locale/ru/LC_MESSAGES/halftone.mo
+share/locale/sk/LC_MESSAGES/halftone.mo
+share/locale/tr/LC_MESSAGES/halftone.mo
+share/locale/zh_CN/LC_MESSAGES/halftone.mo