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 Jul 2022 21:50:20
Message-Id: 1656798590.fb7b6265d64ed472de5adf8ce87050e0dc9e444c.sam@gentoo
1 commit: fb7b6265d64ed472de5adf8ce87050e0dc9e444c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 2 21:40:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 21:49:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb7b6265
7
8 dev-util/diffoscope: add 217
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-util/diffoscope/Manifest | 1 +
13 dev-util/diffoscope/diffoscope-217.ebuild | 109 ++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/dev-util/diffoscope/Manifest b/dev-util/diffoscope/Manifest
17 index 18983e85ed89..0f345ccb8bbe 100644
18 --- a/dev-util/diffoscope/Manifest
19 +++ b/dev-util/diffoscope/Manifest
20 @@ -1,3 +1,4 @@
21 DIST diffoscope-207.tar.gz 2707223 BLAKE2B e20f21c9e0acc78cadfce082f874b3e3cbbbd26cfa5041012eb07a347f177724506d1263b6636c71c5304993e52b81e8ac1fa82ee7231d892346ede2d00de37f SHA512 ebbcf3e7e41f042626f2d175cea027392fc52f65dd11ded8e2a65ed3d58129fe4948e6129c2aec74d58d8f6b58855ada23be8231b426a9473b165eba0f182955
22 DIST diffoscope-214.tar.gz 2710707 BLAKE2B 6acd7fa9c69ad831c6d362b805c2094b2f55d57fa87f69e9e153a99a71c90a67884796696df0d24d6b3c94c0b9a41736292d44208f4d8de4262eaa5f2eec6c90 SHA512 67a9b68ce5f7934747e30e41506d7e30f018673314b777ab86af89e3dd56212c442abe6e246741f7b842b5c58f14006442167cf9089823ba4ef1ba07e78eaaa7
23 DIST diffoscope-216.tar.gz 2711117 BLAKE2B d4818fc89a511c2387c486a38df0b925a78b4676c0351c2cb3d81ee91856bb48a396e4f09d70d3ec7a67a302f11f94977f015fcf71d2865caea95f01aa80a23f SHA512 ba8ee78516770b623756dea8c48999cc1e4c731a0ac16a4ad38ed2d534ff867534bb31162c10664eda07ab22332e4dae5438a7d33de69c63c2cf25ba7c34a6be
24 +DIST diffoscope-217.tar.gz 2711094 BLAKE2B 93bb0f5e7967337a3b5f8a951f8d1bdbb6583b33d0a676fbad8ef7102f920ca9efa653a7a563adba7f151641fddc8b0271a8fe7377df000f6873f319959bad92 SHA512 5b55b04abad2c8bef71125eb4266b6f397fa61d6369a0ab83d15d948c3e558f39a10f4378e7a8e461a56dc1b0a442ef72790012f4ce9d6c5b5f179002143158a
25
26 diff --git a/dev-util/diffoscope/diffoscope-217.ebuild b/dev-util/diffoscope/diffoscope-217.ebuild
27 new file mode 100644
28 index 000000000000..177ba73b1c19
29 --- /dev/null
30 +++ b/dev-util/diffoscope/diffoscope-217.ebuild
31 @@ -0,0 +1,109 @@
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 ~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 + virtual/imagemagick-tools[jpeg]
63 + )"
64 +RDEPEND="dev-python/python-magic[${PYTHON_USEDEP}]
65 + dev-python/libarchive-c[${PYTHON_USEDEP}]
66 + dev-python/distro[${PYTHON_USEDEP}]
67 + dev-python/tlsh[${PYTHON_USEDEP}]
68 + acl? ( sys-apps/acl )
69 + binutils? ( sys-devel/binutils )
70 + bzip2? ( app-arch/bzip2 )
71 + libcaca? ( media-libs/libcaca )
72 + colord? ( x11-misc/colord )
73 + cpio? ( app-arch/cpio )
74 + diff? ( sys-apps/diffutils )
75 + docx? ( app-text/docx2txt )
76 + dtc? ( sys-apps/dtc )
77 + e2fsprogs? ( sys-fs/e2fsprogs )
78 + file? ( sys-apps/file )
79 + find? ( sys-apps/findutils )
80 + gettext? ( sys-devel/gettext )
81 + gif? ( media-libs/giflib )
82 + gpg? ( app-crypt/gnupg )
83 + haskell? ( dev-lang/ghc )
84 + hdf5? ( sci-libs/hdf5 )
85 + hex? ( app-editors/vim-core )
86 + imagemagick? ( media-gfx/imagemagick )
87 + iso? ( app-cdr/cdrtools )
88 + java? ( virtual/jdk )
89 + llvm? ( sys-devel/llvm )
90 + lzma? ( app-arch/xz-utils )
91 + mono? ( dev-lang/mono )
92 + opendocument? ( app-text/odt2txt )
93 + pascal? ( dev-lang/fpc )
94 + pdf? (
95 + app-text/pdftk
96 + app-text/poppler
97 + dev-python/PyPDF2[${PYTHON_USEDEP}]
98 + )
99 + postscript? ( app-text/ghostscript-gpl )
100 + R? ( dev-lang/R )
101 + rpm? ( app-arch/rpm )
102 + sqlite? ( dev-db/sqlite:3 )
103 + squashfs? ( sys-fs/squashfs-tools )
104 + ssh? ( net-misc/openssh )
105 + tar? ( app-arch/tar )
106 + tcpdump? ( net-analyzer/tcpdump )
107 + zip? ( app-arch/unzip )
108 + zlib? ( app-arch/gzip )
109 + zstd? ( app-arch/zstd )
110 +"
111 +# Presence if filemagic's magic.py breaks imports
112 +# of dev-python/python-magic: https://bugs.gentoo.org/716482
113 +RDEPEND+=" !dev-python/filemagic"
114 +
115 +EPYTEST_DESELECT=(
116 + # Test seems to use different tarball
117 + tests/test_presenters.py::test_text_proper_indentation
118 +
119 + # Needs triage
120 + tests/comparators/test_binary.py::test_with_compare_details_and_tool_not_found
121 + tests/comparators/test_rlib.py::test_item3_deflate_llvm_bitcode
122 +
123 + # img2txt based failures, bug #797688
124 + tests/comparators/test_ico_image.py::test_diff
125 + tests/comparators/test_ico_image.py::test_diff_meta
126 + tests/comparators/test_ico_image.py::test_diff_meta2
127 + tests/comparators/test_ico_image.py::test_has_visuals
128 + tests/comparators/test_jpeg_image.py::test_diff
129 + tests/comparators/test_jpeg_image.py::test_compare_non_existing
130 + tests/comparators/test_jpeg_image.py::test_diff_meta
131 + tests/comparators/test_jpeg_image.py::test_has_visuals
132 +
133 + # docx2txt based falures, bug #797688
134 + tests/comparators/test_docx.py::test_diff
135 +
136 + # Formatting
137 + tests/test_source.py::test_code_is_black_clean
138 +)
139 +
140 +distutils_enable_tests pytest