summaryrefslogtreecommitdiff
path: root/dev-vcs/git-cliff/git-cliff-2.10.0.ebuild
diff options
context:
space:
mode:
authorArmas Spann <zappel@simple-co.de>2025-07-28 22:14:04 +0200
committerMaciej Barć <xgqt@gentoo.org>2025-07-29 00:45:58 +0200
commit0e89e7e1d633fa1ea02f19c59b1900419751e5ff (patch)
treeca94a737e6e1b7b032b9cf33ff79666a8b11a6bf /dev-vcs/git-cliff/git-cliff-2.10.0.ebuild
parent9ca5d1404f80a4fc857aee8225957740257aa1fc (diff)
downloadgentoo-0e89e7e1d633fa1ea02f19c59b1900419751e5ff.tar.gz
gentoo-0e89e7e1d633fa1ea02f19c59b1900419751e5ff.tar.bz2
gentoo-0e89e7e1d633fa1ea02f19c59b1900419751e5ff.zip
dev-vcs/git-cliff: add 2.10.0
This update includes, in addition to the version bump, a slight change to the LICENSE(s) due to updated dependencies. The patches were also reworked, with indentation changed to spaces. Signed-off-by: Armas Spann <zappel@simple-co.de> Part-of: https://github.com/gentoo/gentoo/pull/43219 Closes: https://github.com/gentoo/gentoo/pull/43219 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-vcs/git-cliff/git-cliff-2.10.0.ebuild')
-rw-r--r--dev-vcs/git-cliff/git-cliff-2.10.0.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-vcs/git-cliff/git-cliff-2.10.0.ebuild b/dev-vcs/git-cliff/git-cliff-2.10.0.ebuild
new file mode 100644
index 000000000000..9c1335321102
--- /dev/null
+++ b/dev-vcs/git-cliff/git-cliff-2.10.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+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://dev.gentoo.org/~xgqt/distfiles/deps/${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}/${P}-disable_repo_tests.patch"
+ # silences a "command not found" error (QA)
+ "${FILESDIR}/${P}-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/
+}