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: Mon, 03 Jan 2022 05:01:27
Message-Id: 1641186068.68e52694d4f2e34469c9285f68eccff6a48e12cc.grozin@gentoo
1 commit: 68e52694d4f2e34469c9285f68eccff6a48e12cc
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 3 05:01:08 2022 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 3 05:01:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68e52694
7
8 dev-util/diffuse: bump to 0.7.3
9
10 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
11
12 dev-util/diffuse/Manifest | 1 +
13 dev-util/diffuse/diffuse-0.7.3.ebuild | 52 +++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-util/diffuse/Manifest b/dev-util/diffuse/Manifest
17 index 9ac73c226f8f..09d19566b88a 100644
18 --- a/dev-util/diffuse/Manifest
19 +++ b/dev-util/diffuse/Manifest
20 @@ -1,2 +1,3 @@
21 DIST diffuse-0.6.0.tar.gz 621120 BLAKE2B c39cbe55edb6e1734d4db1343a0b0029ab146fe92ef4edc58cd6ea82bc6780e3f789d6765d2bddecd941fa458781c59ddde71a010f1b90d4ca238e6d6b233dc2 SHA512 fe9842738560dbefe9c546c8bba3f9f1cefcf4c327ad644430c512ec6bb1b4877986ca2b816af75226975eefa9b0f70120a4ed574e2ed90058b0a92380e8995a
22 DIST diffuse-0.7.2.tar.gz 512468 BLAKE2B 82d9e13399fe775ae7d901198fca4bcc596914cbc5b2b52497a68292d78298346f51caa2031704858cfc770c7cbd6cb6ce1648fc2df7a674db71041c6abbf1ee SHA512 86488cf5a22b791c036de7299c0cd95e63de0bb26d89080c785972341144e72b006910860652190ff250fa5ecad6c7fac64aa3fe90035eda42b923650e292b76
23 +DIST diffuse-0.7.3.tar.gz 519865 BLAKE2B 2980e919cd3fb5c88fef631f83fe6587511791a7fb63cf9b3b7c6b08445baac2f59811a516bb01cad0f2d30d11e113de5c672f26f7d1a17322c711d1ffeaa42d SHA512 b490ba761375092b759daf2e2a89fd0ad3e69d3043487d82c0635c2d35d1ebdad5e32922e53ff3496684e8b02ea8e1f123313d891695e9b0647a775c12b80ea7
24
25 diff --git a/dev-util/diffuse/diffuse-0.7.3.ebuild b/dev-util/diffuse/diffuse-0.7.3.ebuild
26 new file mode 100644
27 index 000000000000..b2550df09ec4
28 --- /dev/null
29 +++ b/dev-util/diffuse/diffuse-0.7.3.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2022 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}/${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 +}