(new package) add git-delta (#13529)

* (new package) add git-delta

* fixes based on review

* fixes
This commit is contained in:
Josh Goebel
2026-01-11 11:47:54 -05:00
committed by GitHub
parent eb46545307
commit 722c2f9a9b
2 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
SUMMARY="A syntax-highlighting pager for git, diff, grep, and blame output"
DESCRIPTION="Delta allows extensive flexibility to the layout and styling of diffs"
HOMEPAGE="https://dandavison.github.io/delta/"
COPYRIGHT="2020 Dan Davison"
LICENSE="MIT"
REVISION="1"
srcGitRev=acd758f7a08df6c2ac5542a2c5a4034c664a9ed8
SOURCE_URI="https://github.com/dandavison/delta/archive/$srcGitRev.tar.gz"
#future?
#SOURCE_URI="https://github.com/dandavison/delta/archive/refs/tags/0.18.3.tar.gz"
CHECKSUM_SHA256="546a9a7d405c41c9108242da5875036fbcfbf6d5b3b810c183ee0e2f550ec1ce"
SOURCE_FILENAME="delta-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="delta-$srcGitRev"
PATCHES="git_delta-$portVersion.patchset"
ARCHITECTURES="?all x86_64"
PROVIDES="
git_delta = $portVersion
cmd:delta = $portVersion
"
REQUIRES="
haiku
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
cmd:rustc
"
BUILD()
{
make version
cargo build --release
}
INSTALL()
{
mkdir -p $binDir
cp target/release/delta $binDir
}

View File

@@ -0,0 +1,22 @@
From ba731571c020b4a5e9da14a218751ef3361257ef Mon Sep 17 00:00:00 2001
From: Josh Goebel <me@joshgoebel.com>
Date: Mon, 29 Dec 2025 04:45:17 -0500
Subject: (maint) give us a git SHA version tag for now
diff --git a/Cargo.toml b/Cargo.toml
index 59a1fc8..335adf8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ edition = "2018"
homepage = "https://github.com/dandavison/delta"
license = "MIT"
repository = "https://github.com/dandavison/delta"
-version = "0.18.2"
+version = "0.18.3-git+acd758f7"
[[bin]]
name = "delta"
--
2.52.0