git: 90195cd20c90 - main - devel/rubygem-rugged: update to 1.5.0.1

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Tue, 22 Nov 2022 09:39:09 UTC
The branch main has been updated by mfechner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=90195cd20c9009758f94027509ea294c4ffd524b

commit 90195cd20c9009758f94027509ea294c4ffd524b
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2022-11-20 16:40:58 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2022-11-22 09:38:27 +0000

    devel/rubygem-rugged: update to 1.5.0.1
    
    Changelog:
    https://github.com/libgit2/rugged/commits/master
---
 devel/rubygem-rugged/Makefile                          |  6 +++++-
 devel/rubygem-rugged/distinfo                          |  8 +++++---
 .../files/patch-vendor_libgit2_include_git2_version.h  | 18 ------------------
 3 files changed, 10 insertions(+), 22 deletions(-)

diff --git a/devel/rubygem-rugged/Makefile b/devel/rubygem-rugged/Makefile
index 2775cd06e6e4..293645f07f1e 100644
--- a/devel/rubygem-rugged/Makefile
+++ b/devel/rubygem-rugged/Makefile
@@ -1,10 +1,14 @@
 # Also update devel/libgit2, devel/libgit2-glib, devel/py-pygit2
 
 PORTNAME=	rugged
-PORTVERSION=	1.2.0
+PORTVERSION=	1.5.0.1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
+# libgit2 1.5 added more spaces in version definition, fetch the required patch
+PATCH_SITES=	https://github.com/libgit2/rugged/commit/
+PATCHFILES=	9f9bce7e3346dfcf2a4256561e37ba8c888a16b6.diff:-p1
+
 MAINTAINER=	mfechner@FreeBSD.org
 COMMENT=	Ruby bindings to the libgit2 library
 WWW=		https://github.com/libgit2/rugged
diff --git a/devel/rubygem-rugged/distinfo b/devel/rubygem-rugged/distinfo
index 2423b8e2360f..71fe34a7e445 100644
--- a/devel/rubygem-rugged/distinfo
+++ b/devel/rubygem-rugged/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1637597651
-SHA256 (rubygem/rugged-1.2.0.gem) = 111979962e75378209673ae262a8f43bd1971b5b5f96f4dfb77ca82b343604ed
-SIZE (rubygem/rugged-1.2.0.gem) = 1541120
+TIMESTAMP = 1668854962
+SHA256 (rubygem/rugged-1.5.0.1.gem) = 1d947f2b19a2bb1d9fb4e3c7d6e8b8def3ed18f5aee21a8c7f8edb3fce66010a
+SIZE (rubygem/rugged-1.5.0.1.gem) = 1805312
+SHA256 (rubygem/9f9bce7e3346dfcf2a4256561e37ba8c888a16b6.diff) = 5f0ff2547649c9a1eddd73176322bb957b7d3d85c1b6c70d772f293289c88eac
+SIZE (rubygem/9f9bce7e3346dfcf2a4256561e37ba8c888a16b6.diff) = 741
diff --git a/devel/rubygem-rugged/files/patch-vendor_libgit2_include_git2_version.h b/devel/rubygem-rugged/files/patch-vendor_libgit2_include_git2_version.h
deleted file mode 100644
index 3ff7bf5e7855..000000000000
--- a/devel/rubygem-rugged/files/patch-vendor_libgit2_include_git2_version.h
+++ /dev/null
@@ -1,18 +0,0 @@
---- vendor/libgit2/include/git2/version.h.orig	2021-11-22 20:02:49 UTC
-+++ vendor/libgit2/include/git2/version.h
-@@ -7,12 +7,12 @@
- #ifndef INCLUDE_git_version_h__
- #define INCLUDE_git_version_h__
- 
--#define LIBGIT2_VERSION "1.2.0"
-+#define LIBGIT2_VERSION "1.3.0"
- #define LIBGIT2_VER_MAJOR 1
--#define LIBGIT2_VER_MINOR 2
-+#define LIBGIT2_VER_MINOR 3
- #define LIBGIT2_VER_REVISION 0
- #define LIBGIT2_VER_PATCH 0
- 
--#define LIBGIT2_SOVERSION "1.2"
-+#define LIBGIT2_SOVERSION "1.3"
- 
- #endif