gcolor3 added
This commit is contained in:
parent
d93e2ee685
commit
6139985a8d
|
@ -0,0 +1 @@
|
||||||
|
DIST gcolor3-v2.4.0.tar.bz2 158552 SHA256 26df811304eb686d1a1cd17394e576c386a94e268c0e5e538dd92bf74f84dabc SHA512 7bce100a91fb3062ae20228c56a8e4ba93cc0b902552fc7ca3eb10d6a345727fa33d47b43d30a59990ef6179dc1af4e370092dc3651c670f3c6cb4d18d4cd0fc WHIRLPOOL 839441a429f87b4c296cf31892b932dd2d5c10aa2f8f7b2d67242186b5ed1ec50a2a68fa086ad3e6bf77b4ca10e030a010f3f3a4ac0d6768be5f5d0de3e40356
|
|
@ -0,0 +1,58 @@
|
||||||
|
# Upstream commit to make gcolor3 work with >=libportal-0.5.
|
||||||
|
# <https://gitlab.gnome.org/World/gcolor3/-/commit/1750369>
|
||||||
|
|
||||||
|
From 1750369a3fd922aa9db6916207dc460c6f885e14 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michal Vasilek <michal@vasilek.cz>
|
||||||
|
Date: Mon, 27 Dec 2021 13:47:14 +0100
|
||||||
|
Subject: [PATCH] Update to libportal 0.5
|
||||||
|
|
||||||
|
---
|
||||||
|
meson.build | 2 ++
|
||||||
|
src/gcolor3-color-selection.c | 2 +-
|
||||||
|
src/meson.build | 1 +
|
||||||
|
3 files changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 6453679..7d6dc50 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -7,9 +7,11 @@ dep_gtk = dependency('gtk+-3.0', version: '>= 3.20.0', required: true)
|
||||||
|
dep_libportal = dependency(
|
||||||
|
'libportal',
|
||||||
|
required: true,
|
||||||
|
+ version: '>= 0.5',
|
||||||
|
fallback: ['libportal', 'libportal_dep'],
|
||||||
|
default_options: ['gtk_doc=false'],
|
||||||
|
)
|
||||||
|
+dep_libportal_gtk3 = dependency('libportal-gtk3', version: '>= 0.5', required: true)
|
||||||
|
cc = meson.get_compiler('c')
|
||||||
|
dep_lm = cc.find_library('m', required: true)
|
||||||
|
|
||||||
|
diff --git a/src/gcolor3-color-selection.c b/src/gcolor3-color-selection.c
|
||||||
|
index 7413850..5df9d54 100644
|
||||||
|
--- a/src/gcolor3-color-selection.c
|
||||||
|
+++ b/src/gcolor3-color-selection.c
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
#include <glib/gi18n.h>
|
||||||
|
#include <libportal/portal.h>
|
||||||
|
-#include <libportal/portal-gtk3.h>
|
||||||
|
+#include <libportal-gtk3/portal-gtk3.h>
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
#define P_(String) g_dgettext(GETTEXT_PACKAGE "-properties",String)
|
||||||
|
diff --git a/src/meson.build b/src/meson.build
|
||||||
|
index 3998f68..d488e51 100644
|
||||||
|
--- a/src/meson.build
|
||||||
|
+++ b/src/meson.build
|
||||||
|
@@ -42,6 +42,7 @@ executable(
|
||||||
|
dependencies: [
|
||||||
|
dep_gtk,
|
||||||
|
dep_libportal,
|
||||||
|
+ dep_libportal_gtk3,
|
||||||
|
dep_lm
|
||||||
|
],
|
||||||
|
install: true,
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit meson xdg
|
||||||
|
|
||||||
|
DESCRIPTION="A simple color chooser written in GTK3"
|
||||||
|
HOMEPAGE="https://gitlab.gnome.org/World/gcolor3"
|
||||||
|
SRC_URI="https://gitlab.gnome.org/World/gcolor3/-/archive/v${PV}/gcolor3-v${PV}.tar.bz2"
|
||||||
|
S="${WORKDIR}/${PN}-v${PV}"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/libportal[gtk]
|
||||||
|
>=gui-libs/libhandy-1.5.0
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="sys-devel/gettext"
|
||||||
|
|
||||||
|
# NOTE: remove for next version
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-update-to-libportal-0.5.patch" )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Updates desktop database and icon cache
|
||||||
|
sed -i "/^meson\.add_install_script('meson_install\.sh'/d" meson.build \
|
||||||
|
|| die "Could not remove install script from build recipe"
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
|
@ -77,6 +77,7 @@ games-util/joystick ~amd64
|
||||||
<games-util/steam-client-meta-1 ~amd64
|
<games-util/steam-client-meta-1 ~amd64
|
||||||
<games-util/steam-launcher-2 ~amd64
|
<games-util/steam-launcher-2 ~amd64
|
||||||
<games-util/steam-meta-1 ~amd64
|
<games-util/steam-meta-1 ~amd64
|
||||||
|
gui-apps/gcolor3 ~amd64
|
||||||
<kde-apps/kdenlive-24 ~amd64
|
<kde-apps/kdenlive-24 ~amd64
|
||||||
<kde-apps/kcachegrind-24 ~amd64
|
<kde-apps/kcachegrind-24 ~amd64
|
||||||
<kde-frameworks/attica-5.113 ~amd64
|
<kde-frameworks/attica-5.113 ~amd64
|
||||||
|
|
|
@ -25,6 +25,7 @@ dev-libs/libdbusmenu gtk3
|
||||||
dev-libs/libgudev introspection
|
dev-libs/libgudev introspection
|
||||||
dev-libs/libpcre pcre16 static-libs
|
dev-libs/libpcre pcre16 static-libs
|
||||||
dev-libs/libpcre2 pcre16 pcre32 static-libs
|
dev-libs/libpcre2 pcre16 pcre32 static-libs
|
||||||
|
dev-libs/libportal gtk
|
||||||
dev-libs/libxml2 icu python
|
dev-libs/libxml2 icu python
|
||||||
dev-libs/nss cacert
|
dev-libs/nss cacert
|
||||||
dev-libs/xmlsec nss
|
dev-libs/xmlsec nss
|
||||||
|
|
Loading…
Reference in New Issue