diff options
Diffstat (limited to 'dev-util/devhelp')
| -rw-r--r-- | dev-util/devhelp/Manifest | 2 | ||||
| -rw-r--r-- | dev-util/devhelp/devhelp-3.30.1.ebuild | 80 | ||||
| -rw-r--r-- | dev-util/devhelp/devhelp-3.34.0.ebuild | 80 | ||||
| -rw-r--r-- | dev-util/devhelp/files/3.30.1-optional-gedit.patch | 37 | ||||
| -rw-r--r-- | dev-util/devhelp/files/3.30.1-optional-introspection.patch | 38 | ||||
| -rw-r--r-- | dev-util/devhelp/metadata.xml | 12 |
6 files changed, 249 insertions, 0 deletions
diff --git a/dev-util/devhelp/Manifest b/dev-util/devhelp/Manifest new file mode 100644 index 000000000000..539e0c13fdce --- /dev/null +++ b/dev-util/devhelp/Manifest @@ -0,0 +1,2 @@ +DIST devhelp-3.30.1.tar.xz 317956 BLAKE2B 8646fb97f0649bc166c8a21472f4c638f37bdfdc9e34b7214f0e5bd32c1c78664cc320f978fb27e313de54e88cf31685596f4bf7f43235ae96345292db6a9fc1 SHA512 f6f028948edd4c6954eaeeb026bf69c11284d725925d354ef42ecc67275cdcac66e8d3657d95d50926350543489b2bb2fa3a194d99d01494bedac60d3a2b4bbc +DIST devhelp-3.34.0.tar.xz 288352 BLAKE2B 26c8c05c161e5607492fc26f012280468ed247ad4c166013e9df5fc1c76d59f98034a157cb58be9554ec65f46520b7d0d2ba78de00134570e84ca5a5ba0dc504 SHA512 34ed48ed323827b01f7d32e186da856c788ddfe37d6836082a81e6c8e4cd7bfc2265309cc3b298a0aea542b85e9261987d47a5a4396d865ec7e4cc13a9d05814 diff --git a/dev-util/devhelp/devhelp-3.30.1.ebuild b/dev-util/devhelp/devhelp-3.30.1.ebuild new file mode 100644 index 000000000000..f953d1ca536a --- /dev/null +++ b/dev-util/devhelp/devhelp-3.30.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{6,7} ) + +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+" +SLOT="0/3-6" # subslot = 3-(libdevhelp-3 soname version) +KEYWORDS="~alpha amd64 ~arm ~ppc ~ppc64 ~sparc x86" +IUSE="gedit gtk-doc +introspection" +REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND=" + >=dev-libs/glib-2.56:2 + >=x11-libs/gtk+-3.22:3[introspection?] + >=net-libs/webkit-gtk-2.20:4[introspection?] + >=gui-libs/amtk-5.0:5 + gnome-base/gsettings-desktop-schemas + introspection? ( >=dev-libs/gobject-introspection-1.54:= ) +" +RDEPEND="${COMMON_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 +DEPEND="${COMMON_DEPEND} + ${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}"/${PV}-optional-introspection.patch + "${FILESDIR}"/${PV}-optional-gedit.patch +) + +pkg_setup() { + use gedit && python-single-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dflatpak_build=false + $(meson_use gedit gedit_plugin) + $(meson_use gtk-doc gtk_doc) + $(meson_use introspection) + ) + 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 +} diff --git a/dev-util/devhelp/devhelp-3.34.0.ebuild b/dev-util/devhelp/devhelp-3.34.0.ebuild new file mode 100644 index 000000000000..f3b8ff316281 --- /dev/null +++ b/dev-util/devhelp/devhelp-3.34.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +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+" +SLOT="0/3-6" # subslot = 3-(libdevhelp-3 soname version) +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" +IUSE="gedit gtk-doc +introspection" +REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + >=dev-libs/glib-2.56:2 + >=x11-libs/gtk+-3.22:3[introspection?] + >=net-libs/webkit-gtk-2.20: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}"/3.30.1-optional-introspection.patch + "${FILESDIR}"/3.30.1-optional-gedit.patch +) + +pkg_setup() { + use gedit && python-single-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dflatpak_build=false + $(meson_use gedit gedit_plugin) + $(meson_use gtk-doc gtk_doc) + $(meson_use introspection) + ) + 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 +} diff --git a/dev-util/devhelp/files/3.30.1-optional-gedit.patch b/dev-util/devhelp/files/3.30.1-optional-gedit.patch new file mode 100644 index 000000000000..09e4405a50e0 --- /dev/null +++ b/dev-util/devhelp/files/3.30.1-optional-gedit.patch @@ -0,0 +1,37 @@ +From 5bb00c3748741d585d544c96933a25bd399736ed Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Fri, 22 Mar 2019 19:47:49 +0200 +Subject: [PATCH 2/2] build: Add optionality for gedit plugin installation + +--- + meson.build | 4 +++- + meson_options.txt | 1 + + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index a0def09c..2d1d3e0a 100644 +--- a/meson.build ++++ b/meson.build +@@ -155,7 +155,9 @@ add_global_arguments(supported_warning_cflags, language : 'c') + ##### end CFLAGS + + subdir('data') +-subdir('plugins/gedit-plugin') ++if get_option('gedit_plugin') ++ subdir('plugins/gedit-plugin') ++endif + subdir('po') + subdir('help') + subdir('devhelp') +diff --git a/meson_options.txt b/meson_options.txt +index 2eaa7ff9..8fdb5a89 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1,3 +1,4 @@ + option('flatpak_build', type : 'boolean', value : false, description : 'Flatpak build mode') ++option('gedit_plugin', type : 'boolean', value : true, description : 'Install the gedit plugin') + option('gtk_doc', type : 'boolean', value : false, description : 'Build the API reference') + option('introspection', type : 'boolean', value : true, description : 'Build GObject Introspection data') +-- +2.17.0 + diff --git a/dev-util/devhelp/files/3.30.1-optional-introspection.patch b/dev-util/devhelp/files/3.30.1-optional-introspection.patch new file mode 100644 index 000000000000..b5afa8a2b874 --- /dev/null +++ b/dev-util/devhelp/files/3.30.1-optional-introspection.patch @@ -0,0 +1,38 @@ +From 3434481e901a0ffbcba9817e4c0641ca8c19275a Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Fri, 22 Mar 2019 19:44:40 +0200 +Subject: [PATCH 1/2] build: Add optionality for introspection build + +--- + devhelp/meson.build | 2 ++ + meson_options.txt | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/devhelp/meson.build b/devhelp/meson.build +index ea217895..f88fcb07 100644 +--- a/devhelp/meson.build ++++ b/devhelp/meson.build +@@ -123,6 +123,7 @@ PKG_CONFIG.generate( + requires : LIBDEVHELP_DEPS_STR + ) + ++if get_option('introspection') + GNOME.generate_gir( + libdevhelp, + export_packages : 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL), +@@ -139,3 +140,4 @@ GNOME.generate_gir( + include_directories : ROOT_INCLUDE_DIR, + install : true + ) ++endif +diff --git a/meson_options.txt b/meson_options.txt +index a10fc603..2eaa7ff9 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1,2 +1,3 @@ + option('flatpak_build', type : 'boolean', value : false, description : 'Flatpak build mode') + option('gtk_doc', type : 'boolean', value : false, description : 'Build the API reference') ++option('introspection', type : 'boolean', value : true, description : 'Build GObject Introspection data') +-- +2.17.0 + diff --git a/dev-util/devhelp/metadata.xml b/dev-util/devhelp/metadata.xml new file mode 100644 index 000000000000..81c38bdb8de3 --- /dev/null +++ b/dev-util/devhelp/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> +</maintainer> +<use> + <flag name="gedit">Install plugin for <pkg>app-editors/gedit</pkg></flag> +</use> + <origin>gentoo-staging</origin> +</pkgmetadata> |
