commit:     e56c12d89f36b99096887a36090b01a3c1fb1b3c
Author:     Luna <nullrequest <AT> vivaldi <DOT> net>
AuthorDate: Sun Jan 19 23:31:08 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 23:40:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e56c12d8

dev-libs/appstream: add use flag to enable compose

This adds a new use option compose to build appstream-compose.
flatpak-builder since 1.3.4 requires appstream-compose.

Signed-off-by: Luna <nullrequest <AT> vivaldi.net>
From: https://github.com/gentoo/gentoo/pull/36965
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 dev-libs/appstream/appstream-1.0.4.ebuild | 3 ++-
 dev-libs/appstream/metadata.xml           | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-libs/appstream/appstream-1.0.4.ebuild 
b/dev-libs/appstream/appstream-1.0.4.ebuild
index f6363f0dc3b0..186071973821 100644
--- a/dev-libs/appstream/appstream-1.0.4.ebuild
+++ b/dev-libs/appstream/appstream-1.0.4.ebuild
@@ -21,7 +21,7 @@ 
HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/";
 LICENSE="LGPL-2.1+ GPL-2+"
 # check as_api_level
 SLOT="0/5"
-IUSE="apt doc +introspection qt6 systemd test"
+IUSE="apt compose doc +introspection qt6 systemd test"
 RESTRICT="test" # bug 691962
 
 RDEPEND="
@@ -68,6 +68,7 @@ src_configure() {
                -Dstemming=true
                -Dvapi=false
                -Dapt-support=$(usex apt true false)
+               -Dcompose=$(usex compose true false)
                -Dinstall-docs=$(usex doc true false)
                -Dgir=$(usex introspection true false)
                -Dqt=$(usex qt6 true false)

diff --git a/dev-libs/appstream/metadata.xml b/dev-libs/appstream/metadata.xml
index fc47b80bd700..c03626cd5701 100644
--- a/dev-libs/appstream/metadata.xml
+++ b/dev-libs/appstream/metadata.xml
@@ -7,6 +7,7 @@
        </maintainer>
        <use>
                <flag name="apt">Enables Debians APT support</flag>
+               <flag name="compose">Enable appstream compose</flag>
        </use>
        <upstream>
                <remote-id type="github">ximion/appstream</remote-id>

Reply via email to