Received: by mail.netbsd.org (Postfix, from userid 605) id 58FF584D8A; Sat, 3 Sep 2022 15:06:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 902A884D66 for ; Sat, 3 Sep 2022 15:06:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id HflRivSXvZ7b for ; Sat, 3 Sep 2022 15:06:53 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id DF13A84D45 for ; Sat, 3 Sep 2022 15:06:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id DCA4BFA8D; Sat, 3 Sep 2022 15:06:52 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1662217612279900" MIME-Version: 1.0 Date: Sat, 3 Sep 2022 15:06:52 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/devel/ruby-rugged/patches To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20220903150652.DCA4BFA8D@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1662217612279900 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: taca Date: Sat Sep 3 15:06:52 UTC 2022 Added Files: pkgsrc/devel/ruby-rugged/patches: patch-ext_rugged_extconf.rb Log Message: devel/ruby-rugged: add a patch file Add a patch file missed from previous commit. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ pkgsrc/devel/ruby-rugged/patches/patch-ext_rugged_extconf.rb Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1662217612279900 Content-Disposition: inline Content-Length: 1127 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/devel/ruby-rugged/patches/patch-ext_rugged_extconf.rb diff -u /dev/null pkgsrc/devel/ruby-rugged/patches/patch-ext_rugged_extconf.rb:1.1 --- /dev/null Sat Sep 3 15:06:52 2022 +++ pkgsrc/devel/ruby-rugged/patches/patch-ext_rugged_extconf.rb Sat Sep 3 15:06:52 2022 @@ -0,0 +1,21 @@ +$NetBSD: patch-ext_rugged_extconf.rb,v 1.1 2022/09/03 15:06:52 taca Exp $ + +More general match. + +--- ext/rugged/extconf.rb.orig 2022-07-30 14:13:40.613688545 +0000 ++++ ext/rugged/extconf.rb +@@ -71,12 +71,12 @@ if arg_config("--use-system-libraries", + major = minor = nil + + File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line| +- if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR ([0-9]+)$/)) ++ if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR[ \t]+([0-9]+)$/)) + major = matches[1] + next + end + +- if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR ([0-9]+)$/)) ++ if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR[ \t]+([0-9]+)$/)) + minor = matches[1] + next + end --_----------=_1662217612279900--