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: Fri, 02 Dec 2022 03:43:31
Message-Id: 1669952577.24e0901e7a5638d21a185b93170c74318195c67e.sam@gentoo
1 commit: 24e0901e7a5638d21a185b93170c74318195c67e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 2 03:42:57 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 2 03:42:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24e0901e
7
8 dev-util/diffoscope: add 227
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-util/diffoscope/Manifest | 1 +
13 dev-util/diffoscope/diffoscope-227.ebuild | 120 ++++++++++++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/dev-util/diffoscope/Manifest b/dev-util/diffoscope/Manifest
17 index 9f09ba783628..b6c6d373dce5 100644
18 --- a/dev-util/diffoscope/Manifest
19 +++ b/dev-util/diffoscope/Manifest
20 @@ -1,3 +1,4 @@
21 DIST diffoscope-223.tar.gz 3145330 BLAKE2B 47ebe733c6330c2c8a7a78dfaad4c364ac3570d5a691b889f3154dcc5f7bec7b97744f04433cf56544ca208233271bbbca8bb767ed43844786fca4e77505d95b SHA512 5f83177133fd4689a77fb08038222998f9597cd63b0f328d3ae55c2ef6f5136f55ab1f5841b70ce1f64a62d216e2332bb4cecb82a3edcc90a6a5841e95955d4c
22 DIST diffoscope-224.tar.gz 3145263 BLAKE2B 918de272781a7829ad4a16f5db3f8d98e05fd1c7e342e18028bf448bf94ede09d5c475a3c1cadf255fa35f46bc8912374cb6cedf2cea878dcaf59380188b084f SHA512 2efbf2ea45e3a43a86eb6a3432852e0eb5a299d3745d8acb3f8857638cb4775d4322d844f2020ed718e4d28419c8a5ca8ab26f66b9bedeea15da57f33a008909
23 DIST diffoscope-226.tar.gz 3164328 BLAKE2B 96fbafcd00c695fd3391122b8468abb0bb27936c45d97d01b2e0bb44bb1f18dc46b7ed2c7cf365993d6303c96a6cc8aeaa780808f23c6dfee5066e0cb377456b SHA512 59e8fd73fcf6e94a603c7e5fa8793f4746e770b0ff84d13379e155d3b4eb91defed79b688109785b62ae5cca1faf9b536454b3107ea93aa361eb511916601615
24 +DIST diffoscope-227.tar.gz 3163754 BLAKE2B 8a93b168e8ac404b6cfb08ebf9de5adf0288ae6e741653f8194a2d3d45e30b5826ca3d21a37b5db3867c73816e862f1d4593fe7a77487736f8a6e5f2b15057f2 SHA512 1e8a143006c4e734cf30d4110241ed164c3ee893801efa2a7b81a917146a0643dd8b38af0cac937847506a4338d59f4bb03211179742bb076fc4d4dd5f7cb585
25
26 diff --git a/dev-util/diffoscope/diffoscope-227.ebuild b/dev-util/diffoscope/diffoscope-227.ebuild
27 new file mode 100644
28 index 000000000000..e7f6e7cb72c0
29 --- /dev/null
30 +++ b/dev-util/diffoscope/diffoscope-227.ebuild
31 @@ -0,0 +1,120 @@
32 +# Copyright 2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +PYTHON_REQ_USE="ncurses"
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 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="
56 + dev-python/python-magic[${PYTHON_USEDEP}]
57 + dev-python/libarchive-c[${PYTHON_USEDEP}]
58 + dev-python/distro[${PYTHON_USEDEP}]
59 + dev-python/tlsh[${PYTHON_USEDEP}]
60 + acl? ( sys-apps/acl )
61 + binutils? ( sys-devel/binutils )
62 + bzip2? ( app-arch/bzip2 )
63 + libcaca? ( media-libs/libcaca )
64 + colord? ( x11-misc/colord )
65 + cpio? ( app-arch/cpio )
66 + diff? ( sys-apps/diffutils )
67 + docx? ( app-text/docx2txt )
68 + dtc? ( sys-apps/dtc )
69 + e2fsprogs? ( sys-fs/e2fsprogs )
70 + file? ( sys-apps/file )
71 + find? ( sys-apps/findutils )
72 + gettext? ( sys-devel/gettext )
73 + gif? ( media-libs/giflib )
74 + gpg? ( app-crypt/gnupg )
75 + haskell? ( dev-lang/ghc )
76 + hdf5? ( sci-libs/hdf5 )
77 + hex? ( app-editors/vim-core )
78 + imagemagick? ( media-gfx/imagemagick )
79 + iso? ( app-cdr/cdrtools )
80 + java? ( virtual/jdk )
81 + llvm? ( sys-devel/llvm )
82 + lzma? ( app-arch/xz-utils )
83 + mono? ( dev-lang/mono )
84 + opendocument? ( app-text/odt2txt )
85 + pascal? ( dev-lang/fpc )
86 + pdf? (
87 + app-text/pdftk
88 + app-text/poppler
89 + dev-python/PyPDF2[${PYTHON_USEDEP}]
90 + )
91 + postscript? ( app-text/ghostscript-gpl )
92 + R? ( dev-lang/R )
93 + rpm? ( app-arch/rpm )
94 + sqlite? ( dev-db/sqlite:3 )
95 + squashfs? ( sys-fs/squashfs-tools )
96 + ssh? ( net-misc/openssh )
97 + tar? ( app-arch/tar )
98 + tcpdump? ( net-analyzer/tcpdump )
99 + zip? ( app-arch/unzip )
100 + zlib? ( app-arch/gzip )
101 + zstd? ( app-arch/zstd )
102 +"
103 +# Presence of filemagic's magic.py breaks imports
104 +# of dev-python/python-magic: bug #716482
105 +RDEPEND+=" !dev-python/filemagic"
106 +
107 +# pull in optional tools for tests:
108 +# img2txt: bug #797688
109 +# docx2txt: bug #797688
110 +BDEPEND="
111 + test? (
112 + app-text/docx2txt
113 + app-text/html2text
114 + media-libs/libcaca
115 + virtual/imagemagick-tools[jpeg]
116 + )
117 +"
118 +
119 +EPYTEST_DESELECT=(
120 + # Test seems to use different tarball
121 + tests/test_presenters.py::test_text_proper_indentation
122 +
123 + # Needs triage
124 + tests/comparators/test_binary.py::test_with_compare_details_and_tool_not_found
125 + tests/comparators/test_rlib.py::test_item3_deflate_llvm_bitcode
126 + tests/comparators/test_gif.py::test_has_visuals
127 +
128 + # img2txt based failures, bug #797688
129 + tests/comparators/test_ico_image.py::test_diff
130 + tests/comparators/test_ico_image.py::test_diff_meta
131 + tests/comparators/test_ico_image.py::test_diff_meta2
132 + tests/comparators/test_ico_image.py::test_has_visuals
133 + tests/comparators/test_jpeg_image.py::test_diff
134 + tests/comparators/test_jpeg_image.py::test_compare_non_existing
135 + tests/comparators/test_jpeg_image.py::test_diff_meta
136 + tests/comparators/test_jpeg_image.py::test_has_visuals
137 +
138 + # docx2txt based falures, bug #797688
139 + tests/comparators/test_docx.py::test_diff
140 +
141 + # Formatting
142 + tests/test_source.py::test_code_is_black_clean
143 +
144 + # Fails on ZFS
145 + tests/test_main.py::test_non_unicode_filename
146 +
147 + # Fails on (unreleased) LLVM 16 with minor difference
148 + tests/comparators/test_macho.py::test_llvm_diff
149 +)
150 +
151 +distutils_enable_tests pytest