From 8b6c838803cc36e2f2178b39c11d5ec2c0e087e2 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Thu, 29 Jul 2021 23:17:56 +0200 Subject: [PATCH] Added megapixels --- media-video/megapixels/Manifest | 1 + .../megapixels/files/fix-preview-color.patch | 25 +++++++++++++++ .../megapixels/megapixels-1.1.0.ebuild | 32 +++++++++++++++++++ media-video/megapixels/metadata.xml | 8 +++++ 4 files changed, 66 insertions(+) create mode 100644 media-video/megapixels/Manifest create mode 100644 media-video/megapixels/files/fix-preview-color.patch create mode 100644 media-video/megapixels/megapixels-1.1.0.ebuild create mode 100644 media-video/megapixels/metadata.xml diff --git a/media-video/megapixels/Manifest b/media-video/megapixels/Manifest new file mode 100644 index 0000000..4ab2775 --- /dev/null +++ b/media-video/megapixels/Manifest @@ -0,0 +1 @@ +DIST megapixels-1.1.0.tar.gz 81513 BLAKE2B f7cd70532c69d0d9378dcb78e1e4d23749b858c9ac518e57d588d2a0ae5111a9f6d7c98021d4efe9dc14d7f37732fa74d324607afaab7181e4f0f319c1ff0be2 SHA512 bdad1e5e7124057d8fccef327ea0e0f27c0385990aa56c1bd254112f833d4608afc893cc881a7e3488285b590e52e76b72c5c2f9e3f825a13bd1d3cd4bd1d684 diff --git a/media-video/megapixels/files/fix-preview-color.patch b/media-video/megapixels/files/fix-preview-color.patch new file mode 100644 index 0000000..91c9c30 --- /dev/null +++ b/media-video/megapixels/files/fix-preview-color.patch @@ -0,0 +1,25 @@ +From 055ff6e2669715550552206b4614832dc66eeb25 Mon Sep 17 00:00:00 2001 +From: Benjamin Schaaf +Date: Tue, 4 May 2021 23:40:45 +1000 +Subject: [PATCH] Fix preview color + +--- + data/debayer.frag | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/debayer.frag b/data/debayer.frag +index 9a98c10..4244c2f 100644 +--- a/data/debayer.frag ++++ b/data/debayer.frag +@@ -22,7 +22,7 @@ void main() { + + // Assume BGGR for now. Currently this just takes 3 of the four samples + // for each pixel, there's room here to do some better debayering. +- vec3 color = vec3(samples.w, (samples.y + samples.w) / 2.0, samples.x); ++ vec3 color = vec3(samples.w, (samples.y + samples.z) / 2.0, samples.x); + + // Fast SRGB estimate. See https://mimosa-pudica.net/fast-gamma/ + vec3 srgb_color = (vec3(1.138) * inversesqrt(color) - vec3(0.138)) * color; +-- +2.30.2 + diff --git a/media-video/megapixels/megapixels-1.1.0.ebuild b/media-video/megapixels/megapixels-1.1.0.ebuild new file mode 100644 index 0000000..c223be9 --- /dev/null +++ b/media-video/megapixels/megapixels-1.1.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit gnome2-utils meson xdg + +DESCRIPTION="A GTK3 camera application that knows how to deal with the media request api" +HOMEPAGE="https://git.sr.ht/~martijnbraam/megapixels" +SRC_URI="https://git.sr.ht/~martijnbraam/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + gui-libs/gtk + media-libs/tiff + media-gfx/zbar + media-libs/libepoxy + media-libs/libraw +" + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/media-video/megapixels/metadata.xml b/media-video/megapixels/metadata.xml new file mode 100644 index 0000000..144c809 --- /dev/null +++ b/media-video/megapixels/metadata.xml @@ -0,0 +1,8 @@ + + + + + marco@scardovi.com + Marco Scardovi + +