diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-util/devhelp/devhelp-40.0.ebuild | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-util/devhelp/devhelp-40.0.ebuild')
-rw-r--r-- | dev-util/devhelp/devhelp-40.0.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/dev-util/devhelp/devhelp-40.0.ebuild b/dev-util/devhelp/devhelp-40.0.ebuild new file mode 100644 index 000000000000..8814cb624063 --- /dev/null +++ b/dev-util/devhelp/devhelp-40.0.ebuild @@ -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 +} |