commit:     b89882255b784fa82fe8e2caf198eaad78d7fa08
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  7 19:05:04 2024 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Feb  7 19:05:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8988225

dev-util/difftastic: add 0.55.0

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-util/difftastic/Manifest                 |   2 +
 dev-util/difftastic/difftastic-0.55.0.ebuild | 215 +++++++++++++++++++++++++++
 2 files changed, 217 insertions(+)

diff --git a/dev-util/difftastic/Manifest b/dev-util/difftastic/Manifest
index b529d80a4254..fe31bd7d63a8 100644
--- a/dev-util/difftastic/Manifest
+++ b/dev-util/difftastic/Manifest
@@ -29,6 +29,7 @@ DIST diff-0.1.12.crate 10223 BLAKE2B 
369f305661f1da31207f3801ed1841dbce12451ac9c
 DIST difflib-0.4.0.crate 7638 BLAKE2B 
57c703de0d467c997bcbedc4d6577569b3d72c612d3ccd929025a98f4bf8f72f2a0d43f3cd3bc616676c2569aed176b3c1362cfa868a4bb1197e05fe4dbce32f
 SHA512 
fcb57859424fea6958a4407061c421599fbca111357b1fe72faa65d8fb0b74425c993a24484e8414f475fa146cd8368c4f82e1ceb4e8dd9f95741149345b37a9
 DIST difftastic-0.52.0.gh.tar.gz 57517066 BLAKE2B 
52329018dbe4c2cb9eb95c63a4a6f05aa91f74b8f20038ad94be278e8aab82d62139bdde1008b7c7dba0829c530b2f2ab44b29a82f7ef6109cf79ffcc2d9f4b9
 SHA512 
2604662f2c7d3d16c9223c68b2aabb84978fbbb4eee5ad631a361ad8fcbccf720316a980dad1f07b3bad94c3fe9a23a25c8c712d4c8da241e1af61be9598fcc6
 DIST difftastic-0.54.0.gh.tar.gz 58647254 BLAKE2B 
93900c7a89399893e44bffcd010b5201e540d76aca22a753cc4e16cae51695004d5bcdeba7c7dc6e5a8d4669ac6cc18ceb151bbb77f5ff18a24daae7319ae17d
 SHA512 
8dd476fedc9638cddb7391b127dc563f1dfeba5a2c74c00eda6673dd4aa59b6e1eb5ddf3d72ca34996a6aca4cd5de545d5fbe1419ceaa0062cc9f3bf8c82c9e7
+DIST difftastic-0.55.0.gh.tar.gz 61809092 BLAKE2B 
28a5b0da275f886f0960b870d3d171969df58ff99c2a67a143c4fe167ae1056daebda0e8df0d71bbb604fd66d6c91c8021501bf9b54540bf499ddc43ff8972d5
 SHA512 
1a597a9bce65e996bbae1a3403f3f2f9f3db9a7e805908334f134a84bc42749b9b13bd2e50d97c032d5e274e3416d99b8563a6e6f9729f4bbda7b4b04dd2bac5
 DIST doc-comment-0.3.3.crate 4123 BLAKE2B 
a82d1c1a7a90af6e111b5e684a1298d7eac5fd8e4bf7d5baf6c7403d26b609958716d57e51122fe7ad7626fe00a2d824dcfef3cc2fd7679fdb7b5099603de1cd
 SHA512 
e98ff9646a3612bd41bb6f278e7b6e9a0c58747f8b82524da814cf51b7f06c76ad4d65b502ac5740e818744abb295f78f15f8262d0b50ced1523f6d1a26939ba
 DIST either-1.6.1.crate 13641 BLAKE2B 
e5f40c40a5edb6dcb07a10bf79183cbe42438f1f70f3932dce72f6f6e91f75f24d17d82bc447507def4dad4345ffc9dd9162dde778afb253bdb1218e91887949
 SHA512 
4bfe56920e30cbc8eb4f90162db618f7dca653b42db35ab6a7045d3fd9a24ceb1778b1f79613850bdb1a87ad3794fa0d73015e46c48d513f368d8c3776fc9ddf
 DIST env_logger-0.10.0.crate 36574 BLAKE2B 
d2f387682059fe9b4566ab995be449c58c57b8df5e5d8bd5ffd153aec1648721d8a9606d3f9aa034263651f5182043e08b6cc08d2d29d0a10f6cc61df9949a06
 SHA512 
4dd02f9d333a1f15657167ef4bd403eda5426cad17e0a4a43fa20cc65449345eb4d3fae2d6b10a3480016b9e23497fac13ed7e70b40c9450ef430be9f910d3e4
@@ -124,6 +125,7 @@ DIST terminal_size-0.1.17.crate 9141 BLAKE2B 
048d8e8e9dad08aecde12323681d428b918
 DIST termtree-0.2.4.crate 4416 BLAKE2B 
994134f7af962123b19984aa32b30c19c6f77202067a90ddb3aa4414ec8dc541f5d8be9282244cdbb1eb16686c11750393325fc7f7005de0bec38d6a9219e015
 SHA512 
afe4e94bd57c9917ba48be4b3a22ff2b9b8a6c764c86871a3be9087ae0c65326fadb466e285a129082e4243ba6bca933d89ea01aa9188222c055f0c2b308cdf3
 DIST textwrap-0.15.0.crate 52998 BLAKE2B 
f6c3057ea6ffde88dd9824cd3159d398316d9d21f327d2af59239ff84d79f893a9d0e96dfbd883aab6c64b631dc99457018e38baf14d40789f02d633425ded86
 SHA512 
f44271c542c22f17a4e3a459255f95e6c02d999f7d6bc8414d3973fd4ac9353aa4ef436932a45340738126905463d776902715feaa9329371f8a14f14b5a7bfd
 DIST thread_local-1.1.7.crate 13585 BLAKE2B 
f497dbcdfaf7dbc8b4b0dd97f77ba93df15b63303e7894c9032c9822a5b8111e0a21db2fa8cfdce5a503f70959ac9cdf48c840b925bdd850dc15e8436ba72379
 SHA512 
3772452c2a349fb564d29bb06e13c8ae64807db27c3ee217fa04fd0e9847e94adeea582b82ffc2d9116f31ff478eb088550caf1346c263de49b55fa17b431c31
+DIST tree-sitter-0.20.10.crate 134502 BLAKE2B 
58b88a985e52e87f7fa6d27da04f46c08bf68368f48e3e5bfb4a584372f66c81ed4c7de4871bb5a109d0a3fde1fa26f99d3ccfca9e1658fba575cc73c48e2294
 SHA512 
247274c285493886a4ba5e6bc6590f04d6644a0c9a8fe06b2e65f887e2d0dd5475a907d8b2922d9a65055a59534091faab92fb3d245b547420f209bdeb284ea3
 DIST tree-sitter-0.20.9.crate 132102 BLAKE2B 
d431337c9aa91684c94ccee698da0ad34d493cb3fe96c18ce6fd218d7789ab168e86b16e78f19ab53d7a0c11d654796029886e3801880e469a11daa92292e071
 SHA512 
03e38b5252dd94b65c096ba9d07e6aecbb582c8460e2f1e0ad46122e372be7139462d7c411094ba557abd6566bd89faeaf7ff01bddb9283d2d7285d13e38c5a6
 DIST tree_magic-13dd6dda15c7062bd8f7dd5bc9bb5b16ce9ee613.gh.tar.gz 15665052 
BLAKE2B 
78623eec83ebe25518370ede597f290800cb5e626959ae254d19dfee0c5e72b1442fb73a330ab3ed99ca5cbf8ca32663aaeab23a5eab2027eb4a92208e9a26e2
 SHA512 
b3f8676a85f63ecefd44940c064c19f97be64e42866c78a4412a9e3a46c278b408fb44609111c52700447d08dc5d74b17b15a5c35c8f65d17b0d666aafade051
 DIST typed-arena-2.0.2.crate 11848 BLAKE2B 
1d2821519c959b8e5f32942fb106f836a9aa753a43058cad6898588f8e0d9abcbe7a94a91ec8d30c62e59833563df48229c6aeec8bf7a396de20895e39571d11
 SHA512 
33f43488ff63ab763e4330d124e3290ece41e50ab78b6f12dae3a2be4d7f5bdf6ec876ab3b1f8cd81874e335fc41f3a2254994f250d3d6aba682fce557a6a399

diff --git a/dev-util/difftastic/difftastic-0.55.0.ebuild 
b/dev-util/difftastic/difftastic-0.55.0.ebuild
new file mode 100644
index 000000000000..a4156d55418c
--- /dev/null
+++ b/dev-util/difftastic/difftastic-0.55.0.ebuild
@@ -0,0 +1,215 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.13.1
+
+EAPI=8
+
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+wasi-snapshot-preview1
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+declare -A GIT_CRATES=(
+       
[tree_magic_mini]='https://github.com/Wilfred/tree_magic;13dd6dda15c7062bd8f7dd5bc9bb5b16ce9ee613;tree_magic-%commit%'
+)
+
+inherit cargo
+
+DESCRIPTION="A structural diff that understands syntax."
+HOMEPAGE="http://difftastic.wilfred.me.uk/";
+SRC_URI="
+       ${CARGO_CRATE_URIS}
+       https://github.com/Wilfred/${PN}/archive/refs/tags/${PV}.tar.gz -> 
${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 MIT ZLIB"
+# owo-colors
+LICENSE+=" MIT"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+QA_FLAGS_IGNORED="usr/bin/difft"
+
+PATCHES=(
+       # some tests don't work with sandbox
+       "${FILESDIR}/difftastic-0.54.0-tests.patch"
+)
+
+DOCS=(
+       CHANGELOG.md
+       README.md
+       manual/
+)
+
+src_prepare() {
+       rm manual/.gitignore || die
+
+       # since upstream is using the patch syntax here, the patch syntax in 
the user cargo config isn't working
+       local crate commit path _uri sedexpr
+       local -a sedexpr
+       for crate in "${!GIT_CRATES[@]}"; do
+               IFS=";" read -r _uri commit path <<< "${GIT_CRATES[${crate}]}"
+               sedexpr+=(
+                       
"s@^(${crate}[[:space:]]*=[[:space:]]*[{].*)([[:space:]]*git[[:space:]]*=[[:space:]]*'[[:graph:]]+'[[:space:]]*)(.*[}])@\1path
 = '${WORKDIR}/${path//%commit%/${commit}}'\3@ ;"
+                       
"s@^(${crate}[[:space:]]*=[[:space:]]*[{].*)([,][[:space:]]*branch[[:space:]]*=[[:space:]]*'[[:graph:]]+'[[:space:]]*)(.*[}])@\1\3@
 ;"
+               )
+       done
+       sed -r -i "${sedexpr[*]}" "${S}/Cargo.toml" || die
+
+       default
+}
+
+src_test() {
+       cargo_src_test
+}
+
+src_install() {
+       cargo_src_install
+       dodoc -r "${DOCS[@]}"
+}

Reply via email to