libportal: update to 0.4.

This commit is contained in:
Michal Vasilek 2022-02-06 21:21:17 +01:00 committed by Echo
parent c4af571583
commit ecd164103b
2 changed files with 3 additions and 38 deletions

View file

@ -1,35 +0,0 @@
From b7157e5d0c80981c74acfc7258683e84969649b0 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 18 Mar 2020 16:11:41 +0100
Subject: [PATCH] build: Make docs building optional
---
meson.build | 4 +++-
meson_options.txt | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 3ca0fb3..49fa112 100644
--- a/meson.build
+++ b/meson.build
@@ -25,7 +25,9 @@ top_inc = include_directories('.')
libportal_inc = include_directories('libportal')
subdir('libportal')
-subdir('doc')
+if get_option('gtk_doc')
+ subdir('doc')
+endif
if get_option('build-portal-test')
subdir('portal-test')
endif
diff --git a/meson_options.txt b/meson_options.txt
index f138e4f..8501dc9 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,4 @@
option('build-portal-test', type: 'boolean', value: false,
description : 'Build the portal-test application')
-
+option('gtk_doc', type: 'boolean', value: true,
+ description : 'Build API reference with gtk-doc')

View file

@ -1,7 +1,7 @@
# Template file for 'libportal'
pkgname=libportal
version=0.3
revision=2
version=0.4
revision=1
build_style=meson
configure_args="$(vopt_bool gtk_doc gtk_doc)"
hostmakedepends="pkg-config gtk-doc glib-devel"
@ -11,7 +11,7 @@ maintainer="q66 <daniel@octaforge.org>"
license="LGPL-2.0-or-later"
homepage="https://github.com/flatpak/libportal"
distfiles="https://github.com/flatpak/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz"
checksum=fd35d66357169e63e33ef46c43fdf22ddc07dbd960ec3462b58ca9ef15a65bd7
checksum=3cd5f50907831cf236b40aa14c5a14ccbbf08828cecb3286efa82ce03cacef28
build_options="gtk_doc"