Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/diffuse/
Date: Sun, 21 Nov 2021 17:08:51
Message-Id: 1637514505.3cf318dae8ac11f37d8a2c3ba56ec447856e0ad0.grozin@gentoo
1 commit: 3cf318dae8ac11f37d8a2c3ba56ec447856e0ad0
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 21 17:08:25 2021 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 21 17:08:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cf318da
7
8 dev-util/diffuse: bump to 0.7.2
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 dev-util/diffuse/Manifest | 1 +
14 dev-util/diffuse/diffuse-0.7.2.ebuild | 52 +++++++++++++++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/dev-util/diffuse/Manifest b/dev-util/diffuse/Manifest
18 index 7388c55e4caa..9ac73c226f8f 100644
19 --- a/dev-util/diffuse/Manifest
20 +++ b/dev-util/diffuse/Manifest
21 @@ -1 +1,2 @@
22 DIST diffuse-0.6.0.tar.gz 621120 BLAKE2B c39cbe55edb6e1734d4db1343a0b0029ab146fe92ef4edc58cd6ea82bc6780e3f789d6765d2bddecd941fa458781c59ddde71a010f1b90d4ca238e6d6b233dc2 SHA512 fe9842738560dbefe9c546c8bba3f9f1cefcf4c327ad644430c512ec6bb1b4877986ca2b816af75226975eefa9b0f70120a4ed574e2ed90058b0a92380e8995a
23 +DIST diffuse-0.7.2.tar.gz 512468 BLAKE2B 82d9e13399fe775ae7d901198fca4bcc596914cbc5b2b52497a68292d78298346f51caa2031704858cfc770c7cbd6cb6ce1648fc2df7a674db71041c6abbf1ee SHA512 86488cf5a22b791c036de7299c0cd95e63de0bb26d89080c785972341144e72b006910860652190ff250fa5ecad6c7fac64aa3fe90035eda42b923650e292b76
24
25 diff --git a/dev-util/diffuse/diffuse-0.7.2.ebuild b/dev-util/diffuse/diffuse-0.7.2.ebuild
26 new file mode 100644
27 index 000000000000..7e314bbfba40
28 --- /dev/null
29 +++ b/dev-util/diffuse/diffuse-0.7.2.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +PLOCALES="cs de es it ja ko pl pt pt_BR ru sv th zh_CN zh_TW"
37 +inherit meson plocale python-r1 xdg
38 +
39 +DESCRIPTION="A graphical tool to compare and merge text files"
40 +HOMEPAGE="http://diffuse.sourceforge.net/ https://github.com/MightyCreak/diffuse/"
41 +SRC_URI="https://github.com/MightyCreak/diffuse/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE=""
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +DEPEND="${PYTHON_DEPS}"
50 +RDEPEND="${DEPEND}
51 + $(python_gen_cond_dep '
52 + dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
53 + ')
54 + x11-libs/gtk+:3[introspection]"
55 +# file collision, bug #279018
56 +DEPEND="${DEPEND}
57 + !sci-chemistry/tinker"
58 +
59 +src_prepare() {
60 + default
61 + plocale_find_changes po '' '.po'
62 +
63 + rm_locale() {
64 + rm -f po/${1}.po
65 + rm -rf data/usr/share/man/${1}
66 + rm -rf data/usr/share/gnome/help/${PN}/$1
67 + rm -f data/usr/share/omf/${PN}/${PN}-$1.omf
68 + sed -e "/^${1}/d" -i po/LINGUAS
69 + }
70 +
71 + plocale_for_each_disabled_locale rm_locale
72 +}
73 +
74 +src_install() {
75 + meson_src_install
76 + rm "${D}"/usr/bin/${PN} || die "rm ${PN} failed"
77 + python_foreach_impl python_doscript ../${P}-build/src/${PN}
78 + mkdir "${D}"/usr/share/metainfo || die "mkdir metainfo failed"
79 + mv "${D}"/usr/share/appdata/* "${D}"/usr/share/metainfo/ \
80 + || die "mv appdata -> metainfo failed"
81 + dodoc AUTHORS CHANGELOG.md README.md
82 +}