2022-01-09 15:52:35 +01:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-09-13 10:16:53 +02:00
|
|
|
# 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"
|
2022-01-09 15:52:35 +01:00
|
|
|
HOMEPAGE="https://gitlab.com/postmarketOS/megapixels"
|
2021-11-12 12:50:28 +01:00
|
|
|
SRC_URI="https://gitlab.com/postmarketOS/megapixels/-/archive/${PV}/${P}.tar.gz"
|
2021-09-13 10:16:53 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~arm64"
|
|
|
|
|
2021-10-07 14:05:26 +02:00
|
|
|
DEPEND="
|
2021-09-13 10:16:53 +02:00
|
|
|
gui-libs/gtk
|
2021-09-15 15:55:28 +02:00
|
|
|
x11-libs/gtk+:3
|
2021-09-13 10:16:53 +02:00
|
|
|
media-libs/tiff
|
|
|
|
media-gfx/zbar
|
|
|
|
media-libs/libepoxy
|
|
|
|
media-libs/libraw
|
2021-09-15 15:55:28 +02:00
|
|
|
media-gfx/dcraw
|
|
|
|
media-gfx/imagemagick
|
2023-02-10 11:51:52 +01:00
|
|
|
media-gfx/argyllcms
|
2021-09-13 10:16:53 +02:00
|
|
|
"
|
2021-12-03 22:27:50 +01:00
|
|
|
|
2021-10-07 14:05:26 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND=""
|
2021-09-13 10:16:53 +02:00
|
|
|
|
2022-12-15 13:54:39 +01:00
|
|
|
PATCHES=(
|
2022-12-16 17:18:49 +01:00
|
|
|
"${FILESDIR}"/06230f3a02cffdf8b683f85cb32fc256d73615d9.patch
|
|
|
|
"${FILESDIR}"/27a1e606d680295e0b4caceadf74ff5857ac16b2.patch
|
|
|
|
"${FILESDIR}"/d8b35bc223989cb165ba1b0716ab9f0ca9c43e53.patch
|
2022-12-15 13:54:39 +01:00
|
|
|
)
|
|
|
|
|
2023-01-25 12:14:17 +01:00
|
|
|
src_configure() {
|
|
|
|
# 6.1 changes selfie cam name
|
|
|
|
# https://github.com/megous/linux/commit/59ee4accb3997098c7b65fbf529ef3033ab1fd5a
|
|
|
|
sed -i -e 's/m00_f_ov8858/ov8858/g' 'config/pine64,pinephone-pro.ini'
|
|
|
|
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
2021-09-13 10:16:53 +02:00
|
|
|
pkg_postinst() {
|
|
|
|
xdg_pkg_postinst
|
|
|
|
gnome2_schemas_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_pkg_postrm
|
|
|
|
gnome2_schemas_update
|
|
|
|
}
|