pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-rugged/patches



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.

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



Home | Main Index | Thread Index | Old Index