--- libgit2/Makefile 2015-01-15 15:01:25.000000000 +0400 +++ libgit2/Makefile 2015-01-26 01:47:03.000000000 +0400 @@ -1,25 +1,25 @@ # $FreeBSD: head/devel/libgit2/Makefile 377075 2015-01-15 11:01:25Z wg $ PORTNAME= libgit2 -PORTVERSION= 0.21.1 -PORTREVISION= 1 +PORTVERSION= 0.22.1 CATEGORIES= devel MAINTAINER= wg@FreeBSD.org COMMENT= Portable, pure C implementation of the Git core LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING USE_GITHUB= yes GH_ACCOUNT= libgit2 GH_TAGNAME= v${PORTVERSION} -GH_COMMIT= b4d00c1 +GH_COMMIT= 1ce9ea3 -USES= cmake python:build +USES= cmake pkgconfig python:build USE_LDCONFIG= yes USE_OPENSSL= yes -PLIST_SUB= SHLIB_VER=${PORTVERSION:R:E} +PLIST_SUB= SHLIB_VER=${PORTVERSION:R:E} SHLIB_VER2=${PORTVERSION:R}.0 OPTIONS_DEFINE= SSH THREADS OPTIONS_DEFAULT=SSH THREADS @@ -39,7 +39,9 @@ post-patch: @${REINPLACE_CMD} -e "s|/pkgconfig|/../libdata/pkgconfig|; \ - /LIBGIT2_PC_REQUIRES.*zlib/ d" ${WRKSRC}/CMakeLists.txt + /LIBGIT2_PC_REQUIRES.*zlib/d ; \ + s/PKG_CHECK_MODULES(LIBSSH2 libssh2)/FIND_PACKAGE(LIBSSH2)/" \ + ${WRKSRC}/CMakeLists.txt .if defined(WITH_OPENSSL_BASE) @${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*openssl/ d" \ ${WRKSRC}/CMakeLists.txt --- libgit2/distinfo 2014-09-29 18:09:10.000000000 +0400 +++ libgit2/distinfo 2015-01-26 01:29:55.000000000 +0400 @@ -1,2 +1,2 @@ -SHA256 (libgit2-0.21.1.tar.gz) = 7faed833d59890ca11957610e020aef3d91e56027408e956d5eb3c9f35dbcb29 -SIZE (libgit2-0.21.1.tar.gz) = 3428317 +SHA256 (libgit2-0.22.1.tar.gz) = ea392623aaaea4c851779e0f74b606c5e4ec5e7219e0ca4b1fba684d06a4ea04 +SIZE (libgit2-0.22.1.tar.gz) = 3591942 --- libgit2/files/patch-src_openssl_stream.c 1970-01-01 03:00:00.000000000 +0300 +++ libgit2/files/patch-src_openssl_stream.c 2015-01-15 16:48:50.000000000 +0400 @@ -0,0 +1,11 @@ +--- src/openssl_stream.c.orig 2015-01-12 11:59:46.000000000 +0400 ++++ src/openssl_stream.c 2015-01-15 16:46:27.000000000 +0400 +@@ -7,6 +7,8 @@ + + #ifdef GIT_SSL + ++#include ++#include + #include + #include + #include --- libgit2/pkg-plist 2014-10-27 14:40:06.000000000 +0400 +++ libgit2/pkg-plist 2015-01-26 01:48:46.000000000 +0400 @@ -1,4 +1,5 @@ include/git2.h +include/git2/annotated_commit.h include/git2/attr.h include/git2/blame.h include/git2/blob.h @@ -11,9 +12,11 @@ include/git2/common.h include/git2/config.h include/git2/cred_helpers.h +include/git2/describe.h include/git2/diff.h include/git2/errors.h include/git2/filter.h +include/git2/global.h include/git2/graph.h include/git2/ignore.h include/git2/index.h @@ -27,10 +30,12 @@ include/git2/odb.h include/git2/odb_backend.h include/git2/oid.h +include/git2/oidarray.h include/git2/pack.h include/git2/patch.h include/git2/pathspec.h include/git2/push.h +include/git2/rebase.h include/git2/refdb.h include/git2/reflog.h include/git2/refs.h @@ -48,8 +53,8 @@ include/git2/strarray.h include/git2/submodule.h include/git2/tag.h -include/git2/threads.h include/git2/trace.h +include/git2/transaction.h include/git2/transport.h include/git2/tree.h include/git2/types.h @@ -58,14 +63,18 @@ include/git2/sys/config.h include/git2/sys/diff.h include/git2/sys/filter.h +include/git2/sys/hashsig.h include/git2/sys/index.h include/git2/sys/mempack.h include/git2/sys/odb_backend.h +include/git2/sys/openssl.h include/git2/sys/refdb_backend.h include/git2/sys/reflog.h include/git2/sys/refs.h include/git2/sys/repository.h +include/git2/sys/stream.h +include/git2/sys/transport.h lib/libgit2.so -lib/libgit2.so.0.%%SHLIB_VER%%.0 lib/libgit2.so.%%SHLIB_VER%% +lib/libgit2.so.%%SHLIB_VER2%% libdata/pkgconfig/libgit2.pc