summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-vcs/git-cliff/Manifest2
-rw-r--r--dev-vcs/git-cliff/files/git-cliff-2.10.0-disable_repo_tests.patch67
-rw-r--r--dev-vcs/git-cliff/files/git-cliff-2.10.0-silence_run_os_command_test.patch11
-rw-r--r--dev-vcs/git-cliff/git-cliff-2.10.0.ebuild57
4 files changed, 137 insertions, 0 deletions
diff --git a/dev-vcs/git-cliff/Manifest b/dev-vcs/git-cliff/Manifest
index 1cf474d0a65c..acdb198d7d18 100644
--- a/dev-vcs/git-cliff/Manifest
+++ b/dev-vcs/git-cliff/Manifest
@@ -1,2 +1,4 @@
+DIST git-cliff-2.10.0-crates.tar.xz 32723524 BLAKE2B ab5eed4a8f1572a7c8ad00a2802898e22832e2a7e43a5cca83a647f458a3ed0a02fd297597418aa507eeb44fa31ce49b7ee4761041c91cd619960e47471b1b90 SHA512 00069a9bbce8d8a66a7ec208568610f3cec12fbcd63d455ce3b9bdf4291f9194950c6a9f46d87862f1095c97c7c27388d66f6f2b8760df4931249fdfe5dd6206
+DIST git-cliff-2.10.0.gh.tar.gz 13067606 BLAKE2B 198ca575645aec7704fe82f6447ecd3858cadbdb3685a0c1526de4ff440661132db91db0debc4a8ebb83a992491f053eb44025454207a106d8f99b096c14d874 SHA512 737ab42f27281931114ce3bbe9438a73193f41f836a9ba35b835a3763c8218784623abfad1e8b6b252670ebf71447bb829ba6e75fef9812b60eb78d743d2d023
DIST git-cliff-2.9.1-crates.tar.xz 36436428 BLAKE2B 949df9967197a44e9fd8121045c10fdd35bedf327224ce83913b10fa0cfbecebbc80d05fbe07513ce15c18db93e1a634a31a7139716b67b17c1fbd7b40563976 SHA512 e89212b41c3afee380f96d1b0903e4f5d18436f425f7d9484b19550ad8daa46f1e65753c77d96d97c32ff7cef507ba01df34fba6dd16ead68efc20d844018a73
DIST git-cliff-2.9.1.gh.tar.gz 13057370 BLAKE2B bb5082e14a3a8d8ad890f2e79f414875ffd91b95bca949a50c6c5d45c68c4bb47208f7519cd745c3b94678721b907cf5c56c7fb949cd458561841b521a804f74 SHA512 97a460852911f1cb65896de8075aeebbf52e2f1fd55421b8ac379ff1c59d4b8eaf9c5481fc6dcb3da14d877920f6c126f686fed7b4e9dfcc6a02bc36702c6f33
diff --git a/dev-vcs/git-cliff/files/git-cliff-2.10.0-disable_repo_tests.patch b/dev-vcs/git-cliff/files/git-cliff-2.10.0-disable_repo_tests.patch
new file mode 100644
index 000000000000..2219f9cffaad
--- /dev/null
+++ b/dev-vcs/git-cliff/files/git-cliff-2.10.0-disable_repo_tests.patch
@@ -0,0 +1,67 @@
+--- a/git-cliff-core/src/repo.rs 2025-07-28 21:57:07.903212830 +0200
++++ b/git-cliff-core/src/repo.rs 2025-07-28 21:59:12.860692661 +0200
+@@ -651,6 +651,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn get_latest_commit() -> Result<()> {
+ let repository = get_repository()?;
+@@ -660,6 +661,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn commit_search() -> Result<()> {
+ let repository = get_repository()?;
+@@ -671,6 +673,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn get_latest_tag() -> Result<()> {
+ let repository = get_repository()?;
+@@ -683,6 +686,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn git_tags() -> Result<()> {
+ let repository = get_repository()?;
+@@ -714,6 +718,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn git_upstream_remote() -> Result<()> {
+ let repository = get_repository()?;
+@@ -732,6 +737,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn resolves_existing_tag_with_name_and_message() -> Result<()> {
+ let repository = get_repository()?;
+@@ -749,6 +755,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn resolves_tag_when_no_tags_exist() -> Result<()> {
+ let repository = get_repository()?;
+@@ -758,6 +765,7 @@
+ Ok(())
+ }
+
++ #[ignore]
+ #[test]
+ fn includes_root_commit() -> Result<()> {
+ let repository = get_repository()?;
+
diff --git a/dev-vcs/git-cliff/files/git-cliff-2.10.0-silence_run_os_command_test.patch b/dev-vcs/git-cliff/files/git-cliff-2.10.0-silence_run_os_command_test.patch
new file mode 100644
index 000000000000..fcd980a1423b
--- /dev/null
+++ b/dev-vcs/git-cliff/files/git-cliff-2.10.0-silence_run_os_command_test.patch
@@ -0,0 +1,11 @@
+--- a/git-cliff-core/src/command.rs 2025-07-28 22:01:16.272316366 +0200
++++ b/git-cliff-core/src/command.rs 2025-07-28 22:01:42.532450325 +0200
+@@ -72,7 +72,7 @@
+ run("rev", Some(env!("CARGO_PKG_NAME").to_string()), vec![])?.trim()
+ );
+ assert_eq!("testing", run("echo 'testing'", None, vec![])?.trim());
+- assert!(run("some_command", None, vec![]).is_err());
++ assert!(run("false", None, vec![]).is_err());
+ Ok(())
+ }
+ }
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/
+}