commit: 65654e7af26498d96f478eebb6cf9e1f5cedeea8 Author: Marco Scardovi <marco <AT> scardovi <DOT> com> AuthorDate: Tue Jun 22 22:13:16 2021 +0000 Commit: Marco Scardovi <marco <AT> scardovi <DOT> com> CommitDate: Tue Jun 22 22:13:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=65654e7a
media-video/megapixels: add package megapixels is the camera app for smarphones. Created by postmarketOS's dev Martijn Braam specifically for PinePhone Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> media-video/megapixels/Manifest | 1 + .../megapixels/files/fix-preview-color.patch | 25 ++++++++++++++++ media-video/megapixels/megapixels-1.0.1.ebuild | 34 ++++++++++++++++++++++ media-video/megapixels/metadata.xml | 11 +++++++ 4 files changed, 71 insertions(+) diff --git a/media-video/megapixels/Manifest b/media-video/megapixels/Manifest new file mode 100644 index 000000000..edc3ea347 --- /dev/null +++ b/media-video/megapixels/Manifest @@ -0,0 +1 @@ +DIST megapixels-1.0.1.tar.gz 80358 BLAKE2B 27ea71cb0d2dc044b3c870a87fd0920c3bd319c5561417a736790159887e7d16f158807163a5132c3a7bc1590a39762c1bfaa2c0dd8fa89cb42bb8a75d1a2123 SHA512 4d7e7f80405c6c1265855708f1ede0f7ddc3044a7afc3a8083e1c308ba4104a78fc98da1facb1ab3882182d7e30d32bef8bbb22a703e71b1e63a7660387896d4 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 000000000..91c9c3019 --- /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 <ben.sch...@gmail.com> +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.0.1.ebuild b/media-video/megapixels/megapixels-1.0.1.ebuild new file mode 100644 index 000000000..ddd1dfede --- /dev/null +++ b/media-video/megapixels/megapixels-1.0.1.ebuild @@ -0,0 +1,34 @@ +# 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" + +DEPEND=" + gui-libs/gtk + media-gfx/imagemagick + media-gfx/zbar + media-libs/libraw +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/fix-preview-color.patch ) + +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 000000000..a0b29038e --- /dev/null +++ b/media-video/megapixels/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ma...@scardovi.com</email> + <name>Marco Scardovi</name> + </maintainer> + <upstream> + <remote-id type="github">atom/atom</remote-id> + </upstream> +</pkgmetadata>