Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/yelp-tools/
Date: Fri, 16 Apr 2021 13:05:39
Message-Id: 1618578326.f681023bc53276436f6cff06d678df69970f089c.mattst88@gentoo
1 commit: f681023bc53276436f6cff06d678df69970f089c
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 13:04:42 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 13:05:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f681023b
7
8 app-text/yelp-tools: Use python-single-r1
9
10 The yelp-build, yelp-check, and yelp-new tools were rewritten in Python
11 for the v40 release.
12
13 Closes: https://bugs.gentoo.org/783078
14 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
15
16 app-text/yelp-tools/yelp-tools-40.0.ebuild | 15 +++++++++++++--
17 1 file changed, 13 insertions(+), 2 deletions(-)
18
19 diff --git a/app-text/yelp-tools/yelp-tools-40.0.ebuild b/app-text/yelp-tools/yelp-tools-40.0.ebuild
20 index 9a95c578eac..146acdd7214 100644
21 --- a/app-text/yelp-tools/yelp-tools-40.0.ebuild
22 +++ b/app-text/yelp-tools/yelp-tools-40.0.ebuild
23 @@ -2,8 +2,8 @@
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27 -
28 -inherit gnome2 meson
29 +PYTHON_COMPAT=( python3_{7..9} )
30 +inherit gnome2 meson python-single-r1
31
32 DESCRIPTION="Collection of tools for building and converting documentation"
33 HOMEPAGE="https://wiki.gnome.org/Apps/Yelp/Tools"
34 @@ -11,8 +11,10 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Yelp/Tools"
35 LICENSE="|| ( GPL-2+ freedist ) GPL-2+" # yelp.m4 is GPL2 || freely distributable
36 SLOT="0"
37 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
38 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
39
40 RDEPEND="
41 + ${PYTHON_DEPS}
42 >=dev-libs/libxml2-2.6.12
43 >=dev-libs/libxslt-1.1.8
44 dev-util/itstool
45 @@ -22,3 +24,12 @@ DEPEND="${RDEPEND}"
46 BDEPEND="
47 virtual/pkgconfig
48 "
49 +
50 +pkg_setup() {
51 + python-single-r1_pkg_setup
52 +}
53 +
54 +src_install() {
55 + meson_src_install
56 + python_fix_shebang "${ED}"/usr/bin/yelp-{build,check,new}
57 +}