1 |
commit: 20b8817010877e3d43b5af5c1d20cbbd4f973945 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 02:44:54 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 02:44:54 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20b88170 |
7 |
|
8 |
dev-util/diffoscope: add 230 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-util/diffoscope/Manifest | 1 + |
13 |
dev-util/diffoscope/diffoscope-230.ebuild | 120 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 121 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/diffoscope/Manifest b/dev-util/diffoscope/Manifest |
17 |
index 9ed7a999266f..7e2f11ff92d1 100644 |
18 |
--- a/dev-util/diffoscope/Manifest |
19 |
+++ b/dev-util/diffoscope/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST diffoscope-229.tar.gz 3164192 BLAKE2B bee9fa1561ddcfde98cfa44cd6d66a28c636dbc7f3ec1f4895e91dfd3b66c039b68d53be0528b94c112552069886c3c81de4d9b9bc9038d183afdc9fdde6ddb9 SHA512 825c9c33f3088ba082ea3b998594445987558ee62b8b1fbfcded9b72a739faaa73908f8753b8772b3b1a8a43dbcfd52978265a18bdd92605defcd174884ccb23 |
22 |
+DIST diffoscope-230.tar.gz 3164600 BLAKE2B f5ad44ff36d07fc5724895e661e0946b292146d004e97159fef1cb58ff38669702a3990740e4ea34300a9b48aeb10263aeb6bb332da3ec987c355ed5b910fedd SHA512 e025e5f95ae2fb9de466b886c58a44f64e0f654fb049bf9f035209fe7ca1fd0ccc14a382b17085c13bc9f2be0d368482d57a071a577cb87628ae7eb0060158ad |
23 |
|
24 |
diff --git a/dev-util/diffoscope/diffoscope-230.ebuild b/dev-util/diffoscope/diffoscope-230.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..35f33b01f012 |
27 |
--- /dev/null |
28 |
+++ b/dev-util/diffoscope/diffoscope-230.ebuild |
29 |
@@ -0,0 +1,120 @@ |
30 |
+# Copyright 2022-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+PYTHON_REQ_USE="ncurses" |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Will try to get to the bottom of what makes files or directories different" |
41 |
+HOMEPAGE="https://diffoscope.org/ https://pypi.org/project/diffoscope/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-3+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~x86" |
47 |
+IUSE="acl binutils bzip2 libcaca colord cpio +diff docx dtc e2fsprogs file |
48 |
+find gettext gif gpg haskell hdf5 hex imagemagick iso java llvm lzma |
49 |
+mono opendocument pascal pdf postscript R rpm sqlite squashfs |
50 |
+ssh tar test tcpdump zip zlib zstd" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/python-magic[${PYTHON_USEDEP}] |
55 |
+ dev-python/libarchive-c[${PYTHON_USEDEP}] |
56 |
+ dev-python/distro[${PYTHON_USEDEP}] |
57 |
+ dev-python/tlsh[${PYTHON_USEDEP}] |
58 |
+ acl? ( sys-apps/acl ) |
59 |
+ binutils? ( sys-devel/binutils ) |
60 |
+ bzip2? ( app-arch/bzip2 ) |
61 |
+ libcaca? ( media-libs/libcaca ) |
62 |
+ colord? ( x11-misc/colord ) |
63 |
+ cpio? ( app-arch/cpio ) |
64 |
+ diff? ( sys-apps/diffutils ) |
65 |
+ docx? ( app-text/docx2txt ) |
66 |
+ dtc? ( sys-apps/dtc ) |
67 |
+ e2fsprogs? ( sys-fs/e2fsprogs ) |
68 |
+ file? ( sys-apps/file ) |
69 |
+ find? ( sys-apps/findutils ) |
70 |
+ gettext? ( sys-devel/gettext ) |
71 |
+ gif? ( media-libs/giflib ) |
72 |
+ gpg? ( app-crypt/gnupg ) |
73 |
+ haskell? ( dev-lang/ghc ) |
74 |
+ hdf5? ( sci-libs/hdf5 ) |
75 |
+ hex? ( app-editors/vim-core ) |
76 |
+ imagemagick? ( media-gfx/imagemagick ) |
77 |
+ iso? ( app-cdr/cdrtools ) |
78 |
+ java? ( virtual/jdk ) |
79 |
+ llvm? ( sys-devel/llvm ) |
80 |
+ lzma? ( app-arch/xz-utils ) |
81 |
+ mono? ( dev-lang/mono ) |
82 |
+ opendocument? ( app-text/odt2txt ) |
83 |
+ pascal? ( dev-lang/fpc ) |
84 |
+ pdf? ( |
85 |
+ app-text/pdftk |
86 |
+ app-text/poppler |
87 |
+ dev-python/PyPDF2[${PYTHON_USEDEP}] |
88 |
+ ) |
89 |
+ postscript? ( app-text/ghostscript-gpl ) |
90 |
+ R? ( dev-lang/R ) |
91 |
+ rpm? ( app-arch/rpm ) |
92 |
+ sqlite? ( dev-db/sqlite:3 ) |
93 |
+ squashfs? ( sys-fs/squashfs-tools ) |
94 |
+ ssh? ( net-misc/openssh ) |
95 |
+ tar? ( app-arch/tar ) |
96 |
+ tcpdump? ( net-analyzer/tcpdump ) |
97 |
+ zip? ( app-arch/unzip ) |
98 |
+ zlib? ( app-arch/gzip ) |
99 |
+ zstd? ( app-arch/zstd ) |
100 |
+" |
101 |
+# Presence of filemagic's magic.py breaks imports |
102 |
+# of dev-python/python-magic: bug #716482 |
103 |
+RDEPEND+=" !dev-python/filemagic" |
104 |
+ |
105 |
+# pull in optional tools for tests: |
106 |
+# img2txt: bug #797688 |
107 |
+# docx2txt: bug #797688 |
108 |
+BDEPEND=" |
109 |
+ test? ( |
110 |
+ app-text/docx2txt |
111 |
+ app-text/html2text |
112 |
+ media-libs/libcaca |
113 |
+ virtual/imagemagick-tools[jpeg] |
114 |
+ ) |
115 |
+" |
116 |
+ |
117 |
+EPYTEST_DESELECT=( |
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 |
+ tests/comparators/test_rlib.py::test_item3_deflate_llvm_bitcode |
124 |
+ tests/comparators/test_gif.py::test_has_visuals |
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 |
+ # Formatting |
140 |
+ tests/test_source.py::test_code_is_black_clean |
141 |
+ |
142 |
+ # Fails on ZFS |
143 |
+ tests/test_main.py::test_non_unicode_filename |
144 |
+ |
145 |
+ # Fails on (unreleased) LLVM 16 with minor difference |
146 |
+ tests/comparators/test_macho.py::test_llvm_diff |
147 |
+) |
148 |
+ |
149 |
+distutils_enable_tests pytest |