dev-util/devhelp: Version bump to 40.0

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2021-04-17 23:04:18 -04:00
parent b11d7d2275
commit 01feec5d5c
3 changed files with 130 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST devhelp-3.38.1.tar.xz 313948 BLAKE2B bd070c98e92a8968ffbac7e634c19730e7c63ee18d180a5d9dda7d831b28deea49a7aa50b17ca9a8b5a411276ac055074cb76ef8cde5017ca395d49bf4aecdf6 SHA512 bcdd61cd822ae3fbe2c9542c09d058760fc1fa0bbbd55b1fc0853b4fdbf1c3856d4fed8f2263f94f41096cbdc0a76394773d43a9072d8aa89274fa61a3c2a430
DIST devhelp-40.0.tar.xz 318076 BLAKE2B 05345f422e0ec906855c139306020165277daefea2c85229092be57c98f96459c33ab0fdf847a7135fa1b329c76edea71f7da0342c6673a828efe26298d26bdf SHA512 b8dd5fbb12558845f7f5794dad56ef0ffc1dbd60d5a6a28029dc8acea241e8deb1b68cd0abe9d620a512931a1c5f6db12fc594cd4597758c8d4904fb64e6ade7
+82
View File
@@ -0,0 +1,82 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit gnome.org gnome2-utils meson python-single-r1 xdg
DESCRIPTION="An API documentation browser for GNOME"
HOMEPAGE="https://wiki.gnome.org/Apps/Devhelp"
LICENSE="GPL-3+ CC-BY-SA-4.0"
SLOT="0/3-6" # subslot = 3-(libdevhelp-3 soname version)
KEYWORDS="~amd64 ~arm ~ppc64 ~sparc ~x86"
IUSE="+gedit gtk-doc +introspection"
REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} )"
DEPEND="
>=dev-libs/glib-2.64:2
>=x11-libs/gtk+-3.22:3[introspection?]
>=net-libs/webkit-gtk-2.24:4[introspection?]
>=gui-libs/amtk-5.0:5
gnome-base/gsettings-desktop-schemas
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
"
RDEPEND="${DEPEND}
gedit? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
app-editors/gedit[introspection(+),python,${PYTHON_SINGLE_USEDEP}]
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
')
)
"
# libxml2 required for glib-compile-resources
BDEPEND="
${PYTHON_DEPS}
dev-libs/libxml2:2
dev-util/glib-utils
dev-util/itstool
gtk-doc? (
>=dev-util/gtk-doc-1.25
app-text/docbook-xml-dtd:4.3
)
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/40.0-optional-introspection.patch
)
pkg_setup() {
use gedit && python-single-r1_pkg_setup
}
src_configure() {
local emesonargs=(
-Dflatpak_build=false
$(meson_use gtk-doc gtk_doc)
$(meson_use introspection)
-Dplugin_emacs=true
$(meson_use gedit plugin_gedit)
-Dplugin_vim=true
)
meson_src_configure
}
src_install() {
meson_src_install
use gedit && python_optimize "${ED}"/usr/$(get_libdir)/gedit/plugins
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}
@@ -0,0 +1,47 @@
From 6c982d00f9d6f03f916bb6a572e7f938cd56fa74 Mon Sep 17 00:00:00 2001
From: Mart Raudsepp <leio@gentoo.org>
Date: Fri, 22 Mar 2019 19:44:40 +0200
Subject: [PATCH] build: Add optionality for introspection build
---
devhelp/meson.build | 2 ++
meson_options.txt | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/devhelp/meson.build b/devhelp/meson.build
index eef055e7..eeaa51eb 100644
--- a/devhelp/meson.build
+++ b/devhelp/meson.build
@@ -120,6 +120,7 @@ PKG_CONFIG.generate(
requires_private: LIBDEVHELP_PRIVATE_DEPS
)
+if get_option('introspection')
GNOME.generate_gir(
libdevhelp_shared_lib,
export_packages: 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL),
@@ -140,3 +141,4 @@ GNOME.generate_gir(
'--quiet',
],
)
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 17dc85f5..c69a2906 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,6 +10,12 @@ option(
description: 'Build the API reference'
)
+option(
+ 'introspection',
+ type: 'boolean', value: true,
+ description: 'Build GObject Introspection data'
+)
+
option(
'plugin_emacs',
type: 'boolean', value: false,
--
2.26.3