Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/diffoscope/
Date: Sat, 02 Oct 2021 05:23:57
Message-Id: 1633149160.418a4302e2e1f268066772d2464b85abb990d6e9.sam@gentoo
1 commit: 418a4302e2e1f268066772d2464b85abb990d6e9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 2 04:32:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 2 04:32:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=418a4302
7
8 dev-util/diffoscope: add 186
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-util/diffoscope/Manifest | 1 +
13 dev-util/diffoscope/diffoscope-186.ebuild | 109 ++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/dev-util/diffoscope/Manifest b/dev-util/diffoscope/Manifest
17 index 8228a214971..24b8ca3914c 100644
18 --- a/dev-util/diffoscope/Manifest
19 +++ b/dev-util/diffoscope/Manifest
20 @@ -2,3 +2,4 @@ DIST diffoscope-177.tar.gz 1590984 BLAKE2B 94daf9528c8fd0ad6ed89bdbee7b21352bf33
21 DIST diffoscope-180.tar.gz 1600542 BLAKE2B 0cc34106f039e0682b32de284b3ce1be90e8629fb4ba18cffa31d7c970a9d18392060f37b201d4ee9ab3f4f65401684c72edf2d00d56827cbaacbfde0ce81d11 SHA512 abf2c514b9f3b074a5b9a6e19f09a474a8ba58e00974a48ebd860cc31547204fb4690224cb752b4248a0674d979bd20c6d4c77ffb912f2b85499d48d90affeb4
22 DIST diffoscope-184.tar.gz 2684969 BLAKE2B 8b7fd3e4e85f372f2c45cd1f9ed82d5c6c2771044535063398e23b94a069c73d4fbc89fe0fa7393ea188a107cd4912d189a3566cc0701b1f3253761480b40080 SHA512 ae4f1e929ada57706b8ed28b03be264fb65e6b1692da9e212bf60ac40a56fb5f488bb5dd162d3436e832ba245edd0a7383f794ce38541cb4295d10f2cc1de50e
23 DIST diffoscope-185.tar.gz 2684950 BLAKE2B 53ae0ec8b3402811639de7a6ed3dd6b436c6a4d75ce2c415c66b28fd32ceb136766ee42711bca47578e5303be354c514e6f9d82843f11b266a05b77f1196fb13 SHA512 ce66cdb64c23434671e40f4c51ac6c9f1da524e92618792d2cd8e2e7fb044340e03c9438b3450cc2a66e2dc327a25850a421b32c0aad493781291645e65eb775
24 +DIST diffoscope-186.tar.gz 2685030 BLAKE2B b9fcb05fbdd939ece3727f232777c56119aa5df837699dcdc752a816bb656aa09c4cce99e225425e09d55914523a6456587bf232877fa22924c623f854016712 SHA512 13d42ba600cc9c5e716162a73f42d8453358f689f4148b138121e1f2190b1334a66a01fd0e227bc9e7190d3229c286be91d6ccbdd21c13694fc2edab8e5019cd
25
26 diff --git a/dev-util/diffoscope/diffoscope-186.ebuild b/dev-util/diffoscope/diffoscope-186.ebuild
27 new file mode 100644
28 index 00000000000..de3d809fe6a
29 --- /dev/null
30 +++ b/dev-util/diffoscope/diffoscope-186.ebuild
31 @@ -0,0 +1,109 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8,9,10} )
38 +PYTHON_REQ_USE="ncurses"
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Will try to get to the bottom of what makes files or directories different"
43 +HOMEPAGE="https://diffoscope.org/ https://pypi.org/project/diffoscope/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
49 +IUSE="acl binutils bzip2 libcaca colord cpio +diff docx dtc e2fsprogs file
50 +find gettext gif gpg haskell hdf5 hex imagemagick iso java llvm lzma
51 +mono opendocument pascal pdf postscript R rpm sqlite squashfs
52 +ssh tar test tcpdump zip zlib zstd"
53 +
54 +RESTRICT="!test? ( test )"
55 +
56 +# pull in optional tools for tests:
57 +# img2txt: bug #797688
58 +# docx2txt: bug #797688
59 +BDEPEND="test? (
60 + app-text/docx2txt
61 + media-libs/libcaca
62 + )"
63 +RDEPEND="dev-python/python-magic[${PYTHON_USEDEP}]
64 + dev-python/libarchive-c[${PYTHON_USEDEP}]
65 + dev-python/distro[${PYTHON_USEDEP}]
66 + acl? ( sys-apps/acl )
67 + binutils? ( sys-devel/binutils )
68 + bzip2? ( app-arch/bzip2 )
69 + libcaca? ( media-libs/libcaca )
70 + colord? ( x11-misc/colord )
71 + cpio? ( app-arch/cpio )
72 + diff? ( sys-apps/diffutils )
73 + docx? ( app-text/docx2txt )
74 + dtc? ( sys-apps/dtc )
75 + e2fsprogs? ( sys-fs/e2fsprogs )
76 + file? ( sys-apps/file )
77 + find? ( sys-apps/findutils )
78 + gettext? ( sys-devel/gettext )
79 + gif? ( media-libs/giflib )
80 + gpg? ( app-crypt/gnupg )
81 + haskell? ( dev-lang/ghc )
82 + hdf5? ( sci-libs/hdf5 )
83 + hex? ( app-editors/vim-core )
84 + imagemagick? ( media-gfx/imagemagick )
85 + iso? ( app-cdr/cdrtools )
86 + java? ( virtual/jdk )
87 + llvm? ( sys-devel/llvm )
88 + lzma? ( app-arch/xz-utils )
89 + mono? ( dev-lang/mono )
90 + opendocument? ( app-text/odt2txt )
91 + pascal? ( dev-lang/fpc )
92 + pdf? (
93 + app-text/pdftk
94 + app-text/poppler
95 + dev-python/PyPDF2[${PYTHON_USEDEP}]
96 + )
97 + postscript? ( app-text/ghostscript-gpl )
98 + R? ( dev-lang/R )
99 + rpm? ( app-arch/rpm )
100 + sqlite? ( dev-db/sqlite:3 )
101 + squashfs? ( sys-fs/squashfs-tools )
102 + ssh? ( net-misc/openssh )
103 + tar? ( app-arch/tar )
104 + tcpdump? ( net-analyzer/tcpdump )
105 + zip? ( app-arch/unzip )
106 + zlib? ( app-arch/gzip )
107 + zstd? ( app-arch/zstd )
108 +"
109 +# Presence if filemagic's magic.py breaks imports
110 +# of dev-python/python-magic: https://bugs.gentoo.org/716482
111 +RDEPEND+=" !dev-python/filemagic"
112 +
113 +distutils_enable_tests pytest
114 +
115 +python_test() {
116 + local exclude=(
117 + # test seems to use different tarball
118 + tests/test_presenters.py::test_text_proper_indentation
119 +
120 + # needs triage
121 + tests/comparators/test_binary.py::test_with_compare_details_and_tool_not_found
122 +
123 + # needs triage
124 + tests/comparators/test_rlib.py::test_item3_deflate_llvm_bitcode
125 +
126 + # img2txt based failures, bug #797688
127 + tests/comparators/test_ico_image.py::test_diff
128 + tests/comparators/test_ico_image.py::test_diff_meta
129 + tests/comparators/test_ico_image.py::test_diff_meta2
130 + tests/comparators/test_ico_image.py::test_has_visuals
131 + tests/comparators/test_jpeg_image.py::test_diff
132 + tests/comparators/test_jpeg_image.py::test_compare_non_existing
133 + tests/comparators/test_jpeg_image.py::test_diff_meta
134 + tests/comparators/test_jpeg_image.py::test_has_visuals
135 +
136 + # docx2txt based falures, bug #797688
137 + tests/comparators/test_docx.py::test_diff
138 + )
139 + epytest ${exclude[@]/#/--deselect }
140 +}