svn commit: r471167 - head/devel/rubygem-rugged

Sunpoet Po-Chuan Hsieh sunpoet at freebsd.org
Sat Jun 2 22:48:44 UTC 2018


On Fri, Jun 1, 2018 at 5:37 AM, Matthias Fechner <idefix at fechner.net> wrote:

> Am 30.05.2018 um 21:48 schrieb Sunpoet Po-Chuan Hsieh:
> >   Update to 0.27.1
> >
> >   Changes:    https://github.com/libgit2/rugged/commits/master
>
> should that update not happen together with libgit2?
>

This port and devel/libgit2 have same major and minor versions (0.27).
It should be OK.

from ext/rugged/extconf.rb:

if arg_config("--use-system-libraries", !!ENV['RUGGED_USE_SYSTEM_
LIBRARIES'])
  puts "Building Rugged using system libraries.\n"

  dir_config('git2').any? or pkg_config('libgit2')

  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]+)$/))
      major = matches[1]
      next
    end

    if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR
([0-9]+)$/))
      minor = matches[1]
      next
    end

    break if major && minor
  end

  try_compile(<<-SRC) or abort "libgit2 version is not compatible, expected
~> #{major}.#{minor}.0"
#include <git2/version.h>

#if LIBGIT2_VER_MAJOR != #{major} || LIBGIT2_VER_MINOR != #{minor}
#error libgit2 version is not compatible
#endif
  SRC


>
> Gruß
> Matthias
>
> --
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs, and the universe trying to
> produce bigger and better idiots. So far, the universe is winning." --
> Rich Cook
>
>


More information about the svn-ports-all mailing list