diff --git a/dev-util/difftastic/Manifest b/dev-util/difftastic/Manifest index cbee8a6386dbc..66c194ca232d9 100644 --- a/dev-util/difftastic/Manifest +++ b/dev-util/difftastic/Manifest @@ -2,3 +2,5 @@ DIST difftastic-0.68.0-crates.tar.xz 24104400 BLAKE2B 5764610055c3a0d6818e6af224 DIST difftastic-0.68.0.gh.tar.gz 17051970 BLAKE2B 8f93a3040c53d5da815853b98fb9eafe02243f11202102194c17f1c74140283426ddbce1598f1a5d773972acf0cb555796e7e1e4e470336665a2a841af3bc36f SHA512 08e0187fcea5101767544df581d3a72f1653f163f94bafbd4f1d8e5145bcd435827bc35afed6201f76bd9d6884dd066b6413f182b204404607cf94f9fd94a57b DIST difftastic-0.69.0-crates.tar.xz 25342380 BLAKE2B 914bc5dcc8aca23e263bf36e0cf104d3d897f566d9c5880012a4b008460e100c18c5a335bc3c1e2dea29f58aeceaaaec69d97f20b9887da6a4ca825888132d4d SHA512 d8125c10e49812f628fecd91c45da6a71907acd4da333606097db35c9e9c4da31ee92f486483fa838404dc25c59ff8dfe371ff7f0344f4be2e4c5f6e3fb6d29e DIST difftastic-0.69.0.gh.tar.gz 15503793 BLAKE2B 718610055ac24893dd3d7166175747b67bf3ede3112ff8f521903896580a49a90d284cef1a3d9883ac924174ca118e629ea1ede348ef25dde1d37994a5adeaf4 SHA512 eb39e8601ca2a1699327a32d3f6d5a338d694da7eaa6d0c5decb571b87ac26e6477294f5dce46b1ef316f3ced2f30cf27795af9f844326ffb9d9e8e2bbbb052c +DIST difftastic-0.71.0-crates.tar.xz 20779796 BLAKE2B 6104fe099bc0248eac1d69c1ce9fd18ebd8fc00d27570fc8ca7cb636ebc0c3d3cb90b60b976f30588ffb1168c648bff0cebde403d1cbef56129fddc7aeb4d985 SHA512 989fb625586bce2703fbb6b7d82af13292bb1c42e4de481660d8becd33b8a76e5c26030008579eecef3c403f9363af6f0f7396b61f41b94d77bb8896a321b386 +DIST difftastic-0.71.0.gh.tar.gz 15106582 BLAKE2B cae8285f3200935d4d605262fcf3dfc5c608243c6f722aa606179fa339fff70ada6ad4c77e4128c1522d520096d8d948b5d79234e2731bb058786bfc704858f6 SHA512 f1dbc26c68f54a1dec034947200a79d32b50382015846244b6c29e18d0e1dc170892fcababf9e9f93a829fa9127882fa6e188fc4ed5673996e1ea0d564b4518a diff --git a/dev-util/difftastic/difftastic-0.71.0.ebuild b/dev-util/difftastic/difftastic-0.71.0.ebuild new file mode 100644 index 0000000000000..ed3b123ef136d --- /dev/null +++ b/dev-util/difftastic/difftastic-0.71.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2024-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" +RUST_MIN_VER="1.85.0" + +inherit cargo + +DESCRIPTION="A structural diff that understands syntax" +HOMEPAGE="http://difftastic.wilfred.me.uk/" +SRC_URI=" + https://github.com/Wilfred/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD MIT Unicode-DFS-2016" +# tree-sitter-newick +LICENSE+=" CeCILL-C" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND="dev-libs/jemalloc" +RDEPEND="${DEPEND}" + +QA_FLAGS_IGNORED="usr/bin/difft" + +DOCS=( CHANGELOG.md README.md manual/ ) + +pkg_setup() { + rust_pkg_setup + + export JEMALLOC_OVERRIDE="${EPREFIX}/usr/$(get_libdir)/libjemalloc.so" +} + +src_prepare() { + rm manual/.gitignore || die + + sed -e '/^lto = /d' -i Cargo.toml || die + + # Enable feature required to use system jemalloc. + sed \ + -e 's/^tikv-jemallocator = "\(.*\)"/tikv-jemallocator = { version = "\1", features = ["unprefixed_malloc_on_supported_platforms"] }/' \ + -i Cargo.toml || die + + default +} + +src_install() { + cargo_src_install + einstalldocs +}