commit: cd89f893452bec7ffdc319a5d1048b8f38761f05 Author: Armas Spann <zappel <AT> simple-co <DOT> de> AuthorDate: Tue Jan 20 02:16:08 2026 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Jan 22 22:06:17 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd89f893
dev-vcs/git-cliff: add 2.11.0 Signed-off-by: Armas Spann <zappel <AT> simple-co.de> Part-of: https://github.com/gentoo/gentoo/pull/45452 Closes: https://github.com/gentoo/gentoo/pull/45452 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-vcs/git-cliff/Manifest | 2 + dev-vcs/git-cliff/git-cliff-2.11.0.ebuild | 61 +++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-vcs/git-cliff/Manifest b/dev-vcs/git-cliff/Manifest index 0023724dceee..63ace1751a12 100644 --- a/dev-vcs/git-cliff/Manifest +++ b/dev-vcs/git-cliff/Manifest @@ -1,2 +1,4 @@ DIST git-cliff-2.10.1-crates.tar.xz 31885884 BLAKE2B 9392f30564ecfa463f5b234fe516a9b01d5e1c5638cb9a81acbb54fe3c4918d75dd4cc5669cf928e3b3a6535d42b6a842f62a8def590b5bf64cc41237454575f SHA512 4722b6a553a7241ff4f777b06da6b4a6448ce36e7308d3fc2757083ab3a44da42515cd8c13772f66e3ed8ef35bedc14340312d806d440d1330162706680dab07 DIST git-cliff-2.10.1.gh.tar.gz 13072444 BLAKE2B d0b17a1ec2598cc938e009bbffdc2367f1a46ddcd6d70a7ca1420e592d0a5596a77a93c406c9cdbbfd599a83fde1e5227388a85eb0b27adb78a77d597cd48df1 SHA512 74e0aafba0fb7f4c8f3f7370de843cfbcc1569232cebe2994d90810234a7fb068d5eb4a0ae84d7b3a5c0f6456bcef1b176f92b80b7f5977a7b5d5f13e8688fbc +DIST git-cliff-2.11.0-crates.tar.xz 31911592 BLAKE2B 47d0fbcb5b90eea76162e43e9e3a50d040c0764c608c1c83c45fa81df259a258ca92c50818ee8c98d4bf5968e477bb6abf6d32a9ad14395fe4ce11cba32b9f63 SHA512 8e8ff0dee900c7eebef662a6fc00a9eed121abf247fe6f16049125770a9cd856964331e07f24395cad991ccaa234f783a9b48b0293f8fff5d02e65439e00640e +DIST git-cliff-2.11.0.gh.tar.gz 13084356 BLAKE2B 7271fb335a04ebceae605301d8d2136cbef7ab14c40b334e9eb2018b356c47b7cc174c201c649988d7f0ffb1d95f571bee99829f8c1eef6ea6ca27f8f9223f72 SHA512 3e6671e2230aac177857d5fa83b835cf6fdf07a84537289bf6512d6fa893ffa721b79ded3a2d58ee1a6c74fab5ccf408c71522953bc511ddcaff10f4414ca35c diff --git a/dev-vcs/git-cliff/git-cliff-2.11.0.ebuild b/dev-vcs/git-cliff/git-cliff-2.11.0.ebuild new file mode 100644 index 000000000000..c8065e3fe790 --- /dev/null +++ b/dev-vcs/git-cliff/git-cliff-2.11.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 2024-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Gitlab CI notice (vendor crates): +# https://gitlab.com/api/v4/projects/72067412 points to: +# https://gitlab.com/ZaPpPeL/git-cliff-crates/-/packages + +EAPI=8 + +RUST_MIN_VER="1.85.1" + +inherit cargo shell-completion + +DESCRIPTION="A highly customizable changelog generator" +HOMEPAGE="https://git-cliff.org/" +SRC_URI=" + https://github.com/orhun/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz + https://gitlab.com/api/v4/projects/72067412/packages/generic/${PN}/${PV}/${P}-crates.tar.xz +" + +LICENSE="Apache-2.0 BSD-2 BSD Boost-1.0 CDDL CDLA-Permissive-2.0 ISC MIT + MPL-2.0 Unicode-3.0 ZLIB" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( + # disables tests against local (.)git repo + "${FILESDIR}/${PN}-2.10.0-disable_repo_tests.patch" + # silences a "command not found" error (QA) + "${FILESDIR}/${PN}-2.10.0-silence_run_os_command_test.patch" +) + +src_compile() { + cargo_src_compile + + local target_dir="${S}/$(cargo_target_dir)" + + # generating man pages + mkdir -p "${target_dir}/man" || die + OUT_DIR="${target_dir}/man" "${target_dir}/"${PN}-mangen || die + + # generating completion scripts + mkdir -p "${target_dir}/completion" || die + OUT_DIR="${target_dir}/completion" "${target_dir}/"${PN}-completions || die +} + +src_install() { + local release_dir="${S}/$(cargo_target_dir)" + + insinto /usr/bin + dobin "${release_dir}/"${PN} + + doman "${release_dir}/man/"${PN}.1 + + newbashcomp "${release_dir}/completion/${PN}.bash" ${PN} + newfishcomp "${release_dir}/completion/${PN}.fish" ${PN} + + einstalldocs + dodoc -r "${S}"/examples/ +}
