From nobody Tue Jan 3 07:37:16 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NmPhD5k47z2p12l; Tue, 3 Jan 2023 07:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NmPhD4q9nz40nr; Tue, 3 Jan 2023 07:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672731436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q3H1wqbepwpLtPvIRdhOLCGZnEnRImx5qKg3asnpSuk=; b=jbf6fIYagUEgeg4xPWVjD8qF9JrDyw6p67DMMrabGcjq5lcwx/SOIe/6MClhL9o1+j/deB m6oKc58uGj7xPzuRdmhPLFyMPcylWMi91zq/QjnYJa51IUGR6Xt1AkX8HNJp75iagUbV7Y 1GZ8pNsd0iPr2DB397DkgAXq7VGk8QJol1cVgQnPwZ3n/zIVtVQh/y5NqQp02aGhNfXN8h Kr4Ez9EcBRS255BeSzleLq3DVG2D5Ve8vxdgooFJC358jJWicBCIkFcua23wbCBDv5LKfc ln8seIkWQxJPPEUNLcKdJbWrHlAt7mX6tRYN+PMHD04UymyImNLkdZkO/hneVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672731436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q3H1wqbepwpLtPvIRdhOLCGZnEnRImx5qKg3asnpSuk=; b=ZGRaScNr8ejOY996u/9/rWA4SygcshrjiG47ia4eMjQ8W/9iKZxCz8vTF+L7QIIzberQmn 0xQ634PeARiVyCZe8I8QSVESI4sYPjCvHLeKEmf6GUV4swHrO+Qpz7THRF1hgV28tQmlHf zEvSoiQQOxePeRj50b/8oaMwtJk0A5MklOc6WoZMj/oM00NxeGNZjOp/IaRJ5QcnzSn/2D Ul3076YlOQGvT38f9fkhI1j5k3eDaVQ5+f2i/NKSg+2jjeGUourrUmoHGZmlIHOCHN97wU vQafmN69iemDKlTwMY1GDYwPyy8dGJyrvocba+3phrKa8+BYjqhgFz3fApTgIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672731436; a=rsa-sha256; cv=none; b=wGxt2CcyzKxjM1Tq6PghmuWyykxO5TmMYrcUAne6sJSk5wWH1tRLI8IzwMNOKCXw95LQoz gHhNvfz+f/YS5OiRpZEffn36Ft/J5glqz6qECKzKgPkLAuUp/zJNC3JrHdLssyO+lsBjMe desHSncQGmyoFVAsb4OPL3bL/RuQ/5VV3geRT5cvymPr0qXwfRHI7D+hM0jPGORnMOC/1z R55aWxRRPkYCg0FEXutLaoYM7DRzBR0E5/MUFKHOFO+N/lVfJCrZRPPVWXqeh+f7g/3aw5 BX9LDKzkIZdrIuECVO3yvX+JjklJOv3DTDECPJ3mugRR0nkgIiXPcsU85lA+ug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NmPhD3f3wzP2w; Tue, 3 Jan 2023 07:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3037bGFQ030833; Tue, 3 Jan 2023 07:37:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3037bGip030832; Tue, 3 Jan 2023 07:37:16 GMT (envelope-from git) Date: Tue, 3 Jan 2023 07:37:16 GMT Message-Id: <202301030737.3037bGip030832@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 4b15a96231c6 - main - graphics/upscaler: add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b15a96231c6a389a6080127d3f9a7fcedbf9315 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=4b15a96231c6a389a6080127d3f9a7fcedbf9315 commit 4b15a96231c6a389a6080127d3f9a7fcedbf9315 Author: Jan Beich AuthorDate: 2022-12-10 21:01:05 +0000 Commit: Jan Beich CommitDate: 2023-01-03 07:36:42 +0000 graphics/upscaler: add new port Upscaler is a GTK4 + libadwaita application that allows you to upscale and enhance a given image. It is a front-end for Real-ESRGAN ncnn Vulkan. https://gitlab.com/TheEvilSkeleton/Upscaler --- graphics/Makefile | 1 + graphics/upscaler/Makefile | 27 ++++++++++++++++++++++++ graphics/upscaler/distinfo | 3 +++ graphics/upscaler/files/patch-upscaler_window.py | 14 ++++++++++++ graphics/upscaler/pkg-descr | 2 ++ graphics/upscaler/pkg-plist | 20 ++++++++++++++++++ 6 files changed, 67 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 480d8e7f6b70..95f7d04c4a1b 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1124,6 +1124,7 @@ SUBDIR += tweeny SUBDIR += ufraw SUBDIR += unpaper + SUBDIR += upscaler SUBDIR += urho3d SUBDIR += urt SUBDIR += vapoursynth-fmtconv diff --git a/graphics/upscaler/Makefile b/graphics/upscaler/Makefile new file mode 100644 index 000000000000..ac220a66690b --- /dev/null +++ b/graphics/upscaler/Makefile @@ -0,0 +1,27 @@ +PORTNAME= upscaler +DISTVERSION= 1.1.2 +CATEGORIES= graphics + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Upscale and enhance images +WWW= https://gitlab.com/TheEvilSkeleton/Upscaler + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= blueprint-compiler:devel/blueprint-compiler +RUN_DEPENDS= realesrgan-ncnn-vulkan:graphics/realesrgan-ncnn-vulkan + +USES= desktop-file-utils gettext-tools gnome meson python +USE_GITLAB= yes +USE_GNOME= gtk40 libadwaita pygobject3 +GL_ACCOUNT= TheEvilSkeleton +GL_PROJECT= Upscaler +GL_COMMIT= 5aaab9ccaf56b3c7a0eb7d1dbba372d8ff970d69 +GLIB_SCHEMAS= io.gitlab.theevilskeleton.Upscaler.gschema.xml + +post-patch: +# Derive Python version from Meson + @${REINPLACE_CMD} -e "s,'python3',," ${WRKSRC}/${PORTNAME}/meson.build + +.include diff --git a/graphics/upscaler/distinfo b/graphics/upscaler/distinfo new file mode 100644 index 000000000000..c7b1328a255e --- /dev/null +++ b/graphics/upscaler/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1670706065 +SHA256 (TheEvilSkeleton-Upscaler-5aaab9ccaf56b3c7a0eb7d1dbba372d8ff970d69_GL0.tar.gz) = d92ad00e1e652c543ae5e819c6ef0f72d4348e4014013344c75e49275048d25a +SIZE (TheEvilSkeleton-Upscaler-5aaab9ccaf56b3c7a0eb7d1dbba372d8ff970d69_GL0.tar.gz) = 130006 diff --git a/graphics/upscaler/files/patch-upscaler_window.py b/graphics/upscaler/files/patch-upscaler_window.py new file mode 100644 index 000000000000..f14c1b3ebd4d --- /dev/null +++ b/graphics/upscaler/files/patch-upscaler_window.py @@ -0,0 +1,14 @@ +Avoid spurious error "Algorithm failed" as poll() returns None when +the subprocess hasn't finished yet. + +--- upscaler/window.py.orig 2022-12-10 21:01:05 UTC ++++ upscaler/window.py +@@ -203,7 +203,7 @@ class UpscalerWindow(Adw.ApplicationWindow): + bad = True + continue + """ Process algorithm output. """ +- result = self.process.poll() ++ result = self.process.wait(1) + if result != 0: + raise AlgorithmFailed(result, output) + if bad: diff --git a/graphics/upscaler/pkg-descr b/graphics/upscaler/pkg-descr new file mode 100644 index 000000000000..17ef7fa92336 --- /dev/null +++ b/graphics/upscaler/pkg-descr @@ -0,0 +1,2 @@ +Upscaler is a GTK4 + libadwaita application that allows you to upscale +and enhance a given image. It is a front-end for Real-ESRGAN ncnn Vulkan. diff --git a/graphics/upscaler/pkg-plist b/graphics/upscaler/pkg-plist new file mode 100644 index 000000000000..8141abe3deb2 --- /dev/null +++ b/graphics/upscaler/pkg-plist @@ -0,0 +1,20 @@ +bin/upscaler +share/applications/io.gitlab.theevilskeleton.Upscaler.desktop +share/icons/hicolor/scalable/apps/io.gitlab.theevilskeleton.Upscaler.svg +share/icons/hicolor/symbolic/apps/io.gitlab.theevilskeleton.Upscaler-symbolic.svg +share/locale/de/LC_MESSAGES/upscaler.mo +share/locale/fr/LC_MESSAGES/upscaler.mo +share/locale/id/LC_MESSAGES/upscaler.mo +share/locale/it/LC_MESSAGES/upscaler.mo +share/locale/nl/LC_MESSAGES/upscaler.mo +share/locale/ru/LC_MESSAGES/upscaler.mo +share/locale/tr/LC_MESSAGES/upscaler.mo +share/metainfo/io.gitlab.theevilskeleton.Upscaler.metainfo.xml +%%DATADIR%%/upscaler.gresource +%%DATADIR%%/upscaler/__init__.py +%%DATADIR%%/upscaler/app_profile.py +%%DATADIR%%/upscaler/file_chooser.py +%%DATADIR%%/upscaler/filters.py +%%DATADIR%%/upscaler/main.py +%%DATADIR%%/upscaler/threading.py +%%DATADIR%%/upscaler/window.py