mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
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@scardovi.com>
This commit is contained in:
1
media-video/megapixels/Manifest
Normal file
1
media-video/megapixels/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST megapixels-1.0.1.tar.gz 80358 BLAKE2B 27ea71cb0d2dc044b3c870a87fd0920c3bd319c5561417a736790159887e7d16f158807163a5132c3a7bc1590a39762c1bfaa2c0dd8fa89cb42bb8a75d1a2123 SHA512 4d7e7f80405c6c1265855708f1ede0f7ddc3044a7afc3a8083e1c308ba4104a78fc98da1facb1ab3882182d7e30d32bef8bbb22a703e71b1e63a7660387896d4
|
||||||
25
media-video/megapixels/files/fix-preview-color.patch
Normal file
25
media-video/megapixels/files/fix-preview-color.patch
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
From 055ff6e2669715550552206b4614832dc66eeb25 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Benjamin Schaaf <ben.schaaf@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
|
||||||
|
|
||||||
34
media-video/megapixels/megapixels-1.0.1.ebuild
Normal file
34
media-video/megapixels/megapixels-1.0.1.ebuild
Normal file
@@ -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
|
||||||
|
}
|
||||||
11
media-video/megapixels/metadata.xml
Normal file
11
media-video/megapixels/metadata.xml
Normal file
@@ -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>marco@scardovi.com</email>
|
||||||
|
<name>Marco Scardovi</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">atom/atom</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user