dev-util/difftastic - 0.69.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-util/difftastic-0.69.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/difftastic-0.69.0

Or alternatively:

emerge --autounmask-write -a =dev-util/difftastic-0.69.0

Package Information

Description:
A structural diff that understands syntax
Homepage:
http://difftastic.wilfred.me.uk/
License:
MIT Apache-2.0 BSD MIT Unicode-DFS-2016 CeCILL-C

Ebuild Details

Version EAPI Keywords Slot
0.69.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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
}

Inherited Eclasses

Dependencies

DEPEND

dev-libs/jemalloc

RDEPEND

dev-libs/jemalloc

Manifest for 0.69.0

Type File Size Source URLs
DIST difftastic-0.69.0-crates.tar.xz 25342380 bytes https://github.com/gentoo-crate-dist/difftastic/releases/download/0.69.0/difftastic-0.69.0-crates.tar.xz
DIST difftastic-0.69.0.gh.tar.gz 15503793 bytes https://github.com/Wilfred/difftastic/archive/refs/tags/0.69.0.tar.gz