1 |
commit: 65654e7af26498d96f478eebb6cf9e1f5cedeea8 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Tue Jun 22 22:13:16 2021 +0000 |
4 |
Commit: Jian Lin <jlin.gentoo <AT> outlook <DOT> com> |
5 |
CommitDate: Tue Jun 22 22:13:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=65654e7a |
7 |
|
8 |
media-video/megapixels: add package |
9 |
|
10 |
megapixels is the camera app for smarphones. Created by |
11 |
postmarketOS's dev Martijn Braam specifically for PinePhone |
12 |
|
13 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
14 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
15 |
|
16 |
media-video/megapixels/Manifest | 1 + |
17 |
.../megapixels/files/fix-preview-color.patch | 25 ++++++++++++++++ |
18 |
media-video/megapixels/megapixels-1.0.1.ebuild | 34 ++++++++++++++++++++++ |
19 |
media-video/megapixels/metadata.xml | 11 +++++++ |
20 |
4 files changed, 71 insertions(+) |
21 |
|
22 |
diff --git a/media-video/megapixels/Manifest b/media-video/megapixels/Manifest |
23 |
new file mode 100644 |
24 |
index 000000000..edc3ea347 |
25 |
--- /dev/null |
26 |
+++ b/media-video/megapixels/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST megapixels-1.0.1.tar.gz 80358 BLAKE2B 27ea71cb0d2dc044b3c870a87fd0920c3bd319c5561417a736790159887e7d16f158807163a5132c3a7bc1590a39762c1bfaa2c0dd8fa89cb42bb8a75d1a2123 SHA512 4d7e7f80405c6c1265855708f1ede0f7ddc3044a7afc3a8083e1c308ba4104a78fc98da1facb1ab3882182d7e30d32bef8bbb22a703e71b1e63a7660387896d4 |
29 |
|
30 |
diff --git a/media-video/megapixels/files/fix-preview-color.patch b/media-video/megapixels/files/fix-preview-color.patch |
31 |
new file mode 100644 |
32 |
index 000000000..91c9c3019 |
33 |
--- /dev/null |
34 |
+++ b/media-video/megapixels/files/fix-preview-color.patch |
35 |
@@ -0,0 +1,25 @@ |
36 |
+From 055ff6e2669715550552206b4614832dc66eeb25 Mon Sep 17 00:00:00 2001 |
37 |
+From: Benjamin Schaaf <ben.schaaf@×××××.com> |
38 |
+Date: Tue, 4 May 2021 23:40:45 +1000 |
39 |
+Subject: [PATCH] Fix preview color |
40 |
+ |
41 |
+--- |
42 |
+ data/debayer.frag | 2 +- |
43 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
44 |
+ |
45 |
+diff --git a/data/debayer.frag b/data/debayer.frag |
46 |
+index 9a98c10..4244c2f 100644 |
47 |
+--- a/data/debayer.frag |
48 |
++++ b/data/debayer.frag |
49 |
+@@ -22,7 +22,7 @@ void main() { |
50 |
+ |
51 |
+ // Assume BGGR for now. Currently this just takes 3 of the four samples |
52 |
+ // for each pixel, there's room here to do some better debayering. |
53 |
+- vec3 color = vec3(samples.w, (samples.y + samples.w) / 2.0, samples.x); |
54 |
++ vec3 color = vec3(samples.w, (samples.y + samples.z) / 2.0, samples.x); |
55 |
+ |
56 |
+ // Fast SRGB estimate. See https://mimosa-pudica.net/fast-gamma/ |
57 |
+ vec3 srgb_color = (vec3(1.138) * inversesqrt(color) - vec3(0.138)) * color; |
58 |
+-- |
59 |
+2.30.2 |
60 |
+ |
61 |
|
62 |
diff --git a/media-video/megapixels/megapixels-1.0.1.ebuild b/media-video/megapixels/megapixels-1.0.1.ebuild |
63 |
new file mode 100644 |
64 |
index 000000000..ddd1dfede |
65 |
--- /dev/null |
66 |
+++ b/media-video/megapixels/megapixels-1.0.1.ebuild |
67 |
@@ -0,0 +1,34 @@ |
68 |
+# Copyright 1999-2021 Gentoo Authors |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=7 |
72 |
+ |
73 |
+inherit gnome2-utils meson xdg |
74 |
+ |
75 |
+DESCRIPTION="A GTK3 camera application that knows how to deal with the media request api" |
76 |
+HOMEPAGE="https://git.sr.ht/~martijnbraam/megapixels" |
77 |
+SRC_URI="https://git.sr.ht/~martijnbraam/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+ |
79 |
+LICENSE="GPL-3" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~arm64" |
82 |
+ |
83 |
+DEPEND=" |
84 |
+ gui-libs/gtk |
85 |
+ media-gfx/imagemagick |
86 |
+ media-gfx/zbar |
87 |
+ media-libs/libraw |
88 |
+" |
89 |
+RDEPEND="${DEPEND}" |
90 |
+ |
91 |
+PATCHES=( "${FILESDIR}"/fix-preview-color.patch ) |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ xdg_pkg_postinst |
95 |
+ gnome2_schemas_update |
96 |
+} |
97 |
+ |
98 |
+pkg_postrm() { |
99 |
+ xdg_pkg_postrm |
100 |
+ gnome2_schemas_update |
101 |
+} |
102 |
|
103 |
diff --git a/media-video/megapixels/metadata.xml b/media-video/megapixels/metadata.xml |
104 |
new file mode 100644 |
105 |
index 000000000..a0b29038e |
106 |
--- /dev/null |
107 |
+++ b/media-video/megapixels/metadata.xml |
108 |
@@ -0,0 +1,11 @@ |
109 |
+<?xml version='1.0' encoding='UTF-8'?> |
110 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
111 |
+<pkgmetadata> |
112 |
+ <maintainer type="person"> |
113 |
+ <email>marco@××××××××.com</email> |
114 |
+ <name>Marco Scardovi</name> |
115 |
+ </maintainer> |
116 |
+ <upstream> |
117 |
+ <remote-id type="github">atom/atom</remote-id> |
118 |
+ </upstream> |
119 |
+</pkgmetadata> |