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, 29 Oct 2021 19:10:11
Message-Id: 1635534600.1fd84f98d5f5514703e768eefafaafd71006f4cc.sam@gentoo
1 commit: 1fd84f98d5f5514703e768eefafaafd71006f4cc
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 29 19:09:38 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 29 19:10:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fd84f98
7
8 dev-util/diffoscope: add 189
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-util/diffoscope/Manifest | 1 +
13 dev-util/diffoscope/diffoscope-189.ebuild | 110 ++++++++++++++++++++++++++++++
14 2 files changed, 111 insertions(+)
15
16 diff --git a/dev-util/diffoscope/Manifest b/dev-util/diffoscope/Manifest
17 index f517ef74c4d..8c407a73e06 100644
18 --- a/dev-util/diffoscope/Manifest
19 +++ b/dev-util/diffoscope/Manifest
20 @@ -2,3 +2,4 @@ DIST diffoscope-180.tar.gz 1600542 BLAKE2B 0cc34106f039e0682b32de284b3ce1be90e86
21 DIST diffoscope-186.tar.gz 2685030 BLAKE2B b9fcb05fbdd939ece3727f232777c56119aa5df837699dcdc752a816bb656aa09c4cce99e225425e09d55914523a6456587bf232877fa22924c623f854016712 SHA512 13d42ba600cc9c5e716162a73f42d8453358f689f4148b138121e1f2190b1334a66a01fd0e227bc9e7190d3229c286be91d6ccbdd21c13694fc2edab8e5019cd
22 DIST diffoscope-187.tar.gz 2699208 BLAKE2B 193eb0575814df7ee1d0a0e989a936782a52d4c8dc3e56d47db7ff5d631776559a604755e1d1be6687c1168ef7bb9d899f3b5ea8cab9506ef5b2da195485d7e0 SHA512 b3ba6743c9c4e0460f56a0830801f72e00bf7500c54dd9392e6e1de470a3b7348d900a8b9012f17b509abbc59575c7b9ee8e1048b3b23e5813a5ddabeadb1be4
23 DIST diffoscope-188.tar.gz 2703049 BLAKE2B 2d517a6067a70221a34545456e23eefb42b5dbae1daa3459366ad429446844d64714ab5d229cd909de533b8994e870d16314282454ce2ebbf3408685e6b94f5f SHA512 b2c17bd577d5450439d2871f027f675f4e5bbfdc26e0f18bbe3579f214b023e1610a2095aec4b9d91c52e4a4c3e5fb226209e8f1c643b1c82ec190124d5d47d5
24 +DIST diffoscope-189.tar.gz 2703482 BLAKE2B 9c3a86b71d02c456b72955ddc2c9df580c60c898b00cdebaeea369065536b531fd93cbc12f25d9d94ca6bf1cb11bf90f28e6c77f3573a623b35174e59466778d SHA512 4c9a8c909cc18fa524be3979e211420b1240b7336a5895ec7e8682786e01952c6ae2ed494796aa08cdff2b21d13a55c4f47cb8e947743407e38790e8b40fb04c
25
26 diff --git a/dev-util/diffoscope/diffoscope-189.ebuild b/dev-util/diffoscope/diffoscope-189.ebuild
27 new file mode 100644
28 index 00000000000..bd59e85cceb
29 --- /dev/null
30 +++ b/dev-util/diffoscope/diffoscope-189.ebuild
31 @@ -0,0 +1,110 @@
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 + 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 + acl? ( sys-apps/acl )
68 + binutils? ( sys-devel/binutils )
69 + bzip2? ( app-arch/bzip2 )
70 + libcaca? ( media-libs/libcaca )
71 + colord? ( x11-misc/colord )
72 + cpio? ( app-arch/cpio )
73 + diff? ( sys-apps/diffutils )
74 + docx? ( app-text/docx2txt )
75 + dtc? ( sys-apps/dtc )
76 + e2fsprogs? ( sys-fs/e2fsprogs )
77 + file? ( sys-apps/file )
78 + find? ( sys-apps/findutils )
79 + gettext? ( sys-devel/gettext )
80 + gif? ( media-libs/giflib )
81 + gpg? ( app-crypt/gnupg )
82 + haskell? ( dev-lang/ghc )
83 + hdf5? ( sci-libs/hdf5 )
84 + hex? ( app-editors/vim-core )
85 + imagemagick? ( media-gfx/imagemagick )
86 + iso? ( app-cdr/cdrtools )
87 + java? ( virtual/jdk )
88 + llvm? ( sys-devel/llvm )
89 + lzma? ( app-arch/xz-utils )
90 + mono? ( dev-lang/mono )
91 + opendocument? ( app-text/odt2txt )
92 + pascal? ( dev-lang/fpc )
93 + pdf? (
94 + app-text/pdftk
95 + app-text/poppler
96 + dev-python/PyPDF2[${PYTHON_USEDEP}]
97 + )
98 + postscript? ( app-text/ghostscript-gpl )
99 + R? ( dev-lang/R )
100 + rpm? ( app-arch/rpm )
101 + sqlite? ( dev-db/sqlite:3 )
102 + squashfs? ( sys-fs/squashfs-tools )
103 + ssh? ( net-misc/openssh )
104 + tar? ( app-arch/tar )
105 + tcpdump? ( net-analyzer/tcpdump )
106 + zip? ( app-arch/unzip )
107 + zlib? ( app-arch/gzip )
108 + zstd? ( app-arch/zstd )
109 +"
110 +# Presence if filemagic's magic.py breaks imports
111 +# of dev-python/python-magic: https://bugs.gentoo.org/716482
112 +RDEPEND+=" !dev-python/filemagic"
113 +
114 +distutils_enable_tests pytest
115 +
116 +python_test() {
117 + local exclude=(
118 + # test seems to use different tarball
119 + tests/test_presenters.py::test_text_proper_indentation
120 +
121 + # needs triage
122 + tests/comparators/test_binary.py::test_with_compare_details_and_tool_not_found
123 +
124 + # needs triage
125 + tests/comparators/test_rlib.py::test_item3_deflate_llvm_bitcode
126 +
127 + # img2txt based failures, bug #797688
128 + tests/comparators/test_ico_image.py::test_diff
129 + tests/comparators/test_ico_image.py::test_diff_meta
130 + tests/comparators/test_ico_image.py::test_diff_meta2
131 + tests/comparators/test_ico_image.py::test_has_visuals
132 + tests/comparators/test_jpeg_image.py::test_diff
133 + tests/comparators/test_jpeg_image.py::test_compare_non_existing
134 + tests/comparators/test_jpeg_image.py::test_diff_meta
135 + tests/comparators/test_jpeg_image.py::test_has_visuals
136 +
137 + # docx2txt based falures, bug #797688
138 + tests/comparators/test_docx.py::test_diff
139 + )
140 + epytest ${exclude[@]/#/--deselect }
141 +}