diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-15 22:14:58 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-15 22:15:15 +0100 |
commit | 3f1d6becf597aa6227a2aa6a7639508522cde547 (patch) | |
tree | a434ad4e0a14d67e3633455e702ff4d7533178ad /testing/ruby-rugged/fix-extconf-version-check.patch | |
parent | f15559ce104532156bf682903cec5ced0bec1426 (diff) | |
download | aports-3f1d6becf597aa6227a2aa6a7639508522cde547.tar.bz2 aports-3f1d6becf597aa6227a2aa6a7639508522cde547.tar.xz |
testing/ruby-rugged: new aport
https://github.com/libgit2/rugged
Ruby bindings to libgit2
Diffstat (limited to 'testing/ruby-rugged/fix-extconf-version-check.patch')
-rw-r--r-- | testing/ruby-rugged/fix-extconf-version-check.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/ruby-rugged/fix-extconf-version-check.patch b/testing/ruby-rugged/fix-extconf-version-check.patch new file mode 100644 index 0000000000..30c65daaca --- /dev/null +++ b/testing/ruby-rugged/fix-extconf-version-check.patch @@ -0,0 +1,11 @@ +--- a/ext/rugged/extconf.rb ++++ b/ext/rugged/extconf.rb +@@ -44,7 +44,7 @@ + + major = minor = nil + +- File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line| ++ File.readlines(File.join("/usr", "include", "git2", "version.h")).each do |line| + if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR ([0-9]+)$/)) + major = matches[1] + next |