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: Sat, 08 Feb 2020 15:28:46
Message-Id: 1581175678.481cbdbfc8f7bf820c5b0f5954cb90929b32965a.grozin@gentoo
1 commit: 481cbdbfc8f7bf820c5b0f5954cb90929b32965a
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 8 15:27:58 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 8 15:27:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=481cbdbf
7
8 dev-util/diffuse: a new version for python3, pygobject and gtk3
9
10 Bug: https://bugs.gentoo.org/708074
11 Package-Manager: Portage-2.3.87, Repoman-2.3.20
12 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
13
14 dev-util/diffuse/Manifest | 1 +
15 dev-util/diffuse/diffuse-0.5.0_alpha7.ebuild | 59 ++++++++++++++++++++++++++++
16 2 files changed, 60 insertions(+)
17
18 diff --git a/dev-util/diffuse/Manifest b/dev-util/diffuse/Manifest
19 index 58c91e54731..9700495ff27 100644
20 --- a/dev-util/diffuse/Manifest
21 +++ b/dev-util/diffuse/Manifest
22 @@ -1 +1,2 @@
23 DIST diffuse-0.4.8.tar.bz2 557966 BLAKE2B 97879c41db390c9e3f0b0634ab34b33021013aaa8e28b0afe98a1131772803129fa81ccc6532a921d28f0eee51c4ccfbecb400645ed4141e6d2fe669e552014e SHA512 0c62976526804a328f1cc1775f842e9575fab50309cc964171af5ee89d8f303d4cbdf66a078ed64bb8826f5a57c2cc7fc59afc1ee87646ece340212d34f2514e
24 +DIST diffuse-0.5.0_alpha7.tar.xz 531124 BLAKE2B e97b8dd1b24253c4049dd4dc0f185049f030163945d822c3dbf6763f14eff270ed6bea82ae55b6cecaaa0f90976aab286db53c3f69d54f708e403832f8b2b1c1 SHA512 280d2c3c698affbf91b0e25ba658133999ea9b0199d8c165e2cef05210386f0fb3ff8611710903c1a3cb13aed01a648d04b3b8b13227f96803b74adbebf62adf
25
26 diff --git a/dev-util/diffuse/diffuse-0.5.0_alpha7.ebuild b/dev-util/diffuse/diffuse-0.5.0_alpha7.ebuild
27 new file mode 100644
28 index 00000000000..eb5c6a23cbd
29 --- /dev/null
30 +++ b/dev-util/diffuse/diffuse-0.5.0_alpha7.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{6,7,8} )
37 +PLOCALES="cs de es it ja ko pl pt ru sv th zh_CN zh_TW"
38 +inherit python-single-r1 l10n xdg-utils
39 +
40 +DESCRIPTION="A graphical tool to compare and merge text files"
41 +HOMEPAGE="http://diffuse.sourceforge.net/ https://github.com/MightyCreak/diffuse/"
42 +SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.xz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE=""
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +
50 +DEPEND="${PYTHON_DEPS}"
51 +RDEPEND="${DEPEND}
52 + dev-python/pygobject[${PYTHON_USEDEP},cairo]
53 + x11-libs/gtk+:3[introspection]"
54 +# file collision, bug #279018
55 +DEPEND="${DEPEND}
56 + !sci-chemistry/tinker"
57 +
58 +src_prepare() {
59 + default
60 + l10n_find_plocales_changes translations '' '.po'
61 +
62 + rm_locale() {
63 + rm -f translations/${1}.po
64 + rm -rf src/usr/share/man/${1}
65 + rm -rf src/usr/share/gnome/help/${PN}/$1
66 + rm -f src/usr/share/omf/${PN}/${PN}-$1.omf
67 + }
68 +
69 + l10n_for_each_disabled_locale_do rm_locale
70 +}
71 +
72 +src_install() {
73 + "${PYTHON}" install.py \
74 + --prefix="${EPREFIX}"/usr \
75 + --sysconfdir="${EPREFIX}"/etc \
76 + --files-only \
77 + --destdir="${D}" \
78 + || die "Installation failed"
79 + dodoc AUTHORS ChangeLog README.md
80 +}
81 +
82 +pkg_postinst() {
83 + xdg_desktop_database_update
84 + xdg_icon_cache_update
85 +}
86 +
87 +pkg_postrm() {
88 + xdg_desktop_database_update
89 + xdg_icon_cache_update
90 +}