dev-util/hunk-bin: new package, add 0.17.7

Signed-off-by: Xianggang Wang <dev@wangxianggang.com>
This commit is contained in:
Xianggang Wang committed 2026-08-01 23:08:20 +08:00
1 parent e8251336a9
commit 3fcddc993f
4 files changed
+99

No files matched your search

+7
View File
@@ -1183,6 +1183,13 @@ prefix = "v"
github_account = "gouwazi"
autobump = true
["dev-util/hunk-bin"]
source = "github"
github = "modem-dev/hunk"
use_latest_release = true
prefix = "v"
github_account = "gouwazi"
# TODO:
# https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release
["dev-util/jetbrains-toolbox"]
+2
View File
@@ -0,0 +1,2 @@
DIST hunk-bin-0.17.7-amd64.tar.gz 45866765 BLAKE2B f92d76d87c434c51de9b550f339411f25ab816b2d6220760132776992dcf0062da7f3e6afd812226e68f91249311a99c18c45b0b6723835e165fe6a7c7be15f0 SHA512 9109192fa0f4c918c04ed823ada6c7d0580f33d437fb52a9802d2ca2cda866d72a772bfc5ea2023252c867b138ad9fb63a71725cc83150962743caf49d890d0c
DIST hunk-bin-0.17.7-arm64.tar.gz 45448129 BLAKE2B 39c7db22aeaa0c2be2ee9eccc2528ff6193d3762d5f45710743fc2421b942811d498c2e82a2f4a10d2c33b9fe36af47a3379d581ba59cee1bc7bf4f96d80ce39 SHA512 b923d3ea0b9a7a01ff5e4afd26ff253b43ec4f74f1a15d7ee44d41a5229f148d79b6a83ed65e8a523ad793416456183a3ccb9f5140b380b7c4d56c7be768e106
+79
View File
@@ -0,0 +1,79 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature wrapper
MY_PN="${PN%-bin}"
URI_PREFIX="https://github.com/modem-dev/hunk/releases/download/v${PV}"
DESCRIPTION="Review-first terminal diff viewer for agent-authored changesets"
HOMEPAGE="https://www.hunk.dev/ https://github.com/modem-dev/hunk"
SRC_URI="
amd64? ( ${URI_PREFIX}/hunkdiff-linux-x64.tar.gz -> ${P}-amd64.tar.gz )
arm64? ( ${URI_PREFIX}/hunkdiff-linux-arm64.tar.gz -> ${P}-arm64.tar.gz )
"
S="${WORKDIR}"
LICENSE="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2
GPL-3 GPL-3+ gcc-runtime-library-exception-3.1 IJG ISC
LGPL-2+ LGPL-2.1 MIT MPL-2.0 Unicode-3.0 ZLIB public-domain
|| ( MIT-0 Unlicense )
"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
IUSE="
abi_x86_64
cpu_flags_arm_asimd cpu_flags_arm_crc32
cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_bmi1
cpu_flags_x86_bmi2 cpu_flags_x86_f16c cpu_flags_x86_fma3
cpu_flags_x86_popcnt cpu_flags_x86_sse3 cpu_flags_x86_sse4_1
cpu_flags_x86_sse4_2 cpu_flags_x86_ssse3
"
REQUIRED_USE="
elibc_glibc
amd64? (
abi_x86_64
cpu_flags_x86_avx cpu_flags_x86_avx2
cpu_flags_x86_bmi1 cpu_flags_x86_bmi2
cpu_flags_x86_f16c cpu_flags_x86_fma3
cpu_flags_x86_popcnt cpu_flags_x86_sse3
cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2
cpu_flags_x86_ssse3
)
arm64? ( cpu_flags_arm_asimd cpu_flags_arm_crc32 )
"
RDEPEND=">=sys-libs/glibc-2.17"
RESTRICT="bindist mirror strip"
QA_PREBUILT="usr/libexec/${MY_PN}/${MY_PN}"
src_install() {
local arch
case ${ARCH} in
amd64) arch=x64 ;;
arm64) arch=arm64 ;;
*) die "Unsupported architecture: ${ARCH}" ;;
esac
local src_dir="hunkdiff-linux-${arch}"
local install_dir="/usr/libexec/${MY_PN}"
exeinto "${install_dir}"
doexe "${src_dir}/${MY_PN}"
insinto "${install_dir}"
doins -r "${src_dir}/skills"
make_wrapper "${MY_PN}" \
"env HUNK_DISABLE_UPDATE_NOTICE=1 ${EPREFIX}${install_dir}/${MY_PN}"
}
pkg_postinst() {
optfeature "Git repository support" dev-vcs/git
optfeature "Jujutsu repository support" dev-vcs/jj
}
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>dev@wangxianggang.com</email>
<name>Xianggang Wang</name>
</maintainer>
<upstream>
<remote-id type="github">modem-dev/hunk</remote-id>
</upstream>
</pkgmetadata>