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=(
|
2023-06-27 13:13:22 +02:00
|
|
|
"${FILESDIR}"/8103e662a484c0887d29f11a1284f85ff34d0248.patch
|
|
|
|
"${FILESDIR}"/af01107dd65452db159eb961b7ff27b8424cffc7.patch
|
|
|
|
"${FILESDIR}"/432d3851d49e4f8a9ef196eb0887cef428ba56c6.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
|
|
|
|
}
|