- update to libgit2-0.18.0

This commit is contained in:
jasper 2013-04-22 06:22:21 +00:00
parent 01a28f2ea4
commit 6c846b1378
5 changed files with 52 additions and 21 deletions

View File

@ -1,19 +1,18 @@
# $OpenBSD: Makefile,v 1.6 2013/03/11 10:50:10 espie Exp $
# $OpenBSD: Makefile,v 1.7 2013/04/22 06:22:21 jasper Exp $
COMMENT= the Git library, take 2
DISTNAME= libgit2-0.17.0
SHARED_LIBS += git2 2.0 # 0.17
V= 0.18.0
DISTNAME= libgit2-$V
SHARED_LIBS += git2 3.0 # 0.18
MODULES= devel/cmake \
lang/python
MODPY_RUNDEP= No
MASTER_SITES= https://github.com/downloads/libgit2/libgit2/
MASTER_SITES= http://github.com/libgit2/libgit2/archive/v${V}.tar.gz?dummy=/
WANTLIB+= z
NO_TEST= Yes
WANTLIB+= crypto ssl z
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (libgit/libgit2-0.17.0.tar.gz) = Bo7tC4/oUqfMVarkbSKZ6cnj4AutwcKT1yqd0SIiYBg=
SIZE (libgit/libgit2-0.17.0.tar.gz) = 2096159
SHA256 (libgit/libgit2-0.18.0.tar.gz) = iKbvb4eQXgtXQSO4XFdGAlpAjGFp51SQbpOay8p1rF8=
SIZE (libgit/libgit2-0.18.0.tar.gz) = 2958095

View File

@ -1,16 +1,16 @@
$OpenBSD: patch-CMakeLists_txt,v 1.4 2012/08/12 17:19:47 jasper Exp $
$OpenBSD: patch-CMakeLists_txt,v 1.5 2013/04/22 06:22:21 jasper Exp $
Don't clobber CFLAGS.
-Wextra is not available with gcc < 4.
--- CMakeLists.txt.orig Mon Jul 23 09:41:36 2012
+++ CMakeLists.txt Mon Jul 23 09:42:22 2012
@@ -70,7 +70,7 @@ IF (MSVC)
--- CMakeLists.txt.orig Sun Apr 21 23:44:50 2013
+++ CMakeLists.txt Sun Apr 21 23:44:54 2013
@@ -211,7 +211,7 @@ IF (MSVC)
# Precompiled headers
ELSE ()
- SET(CMAKE_C_FLAGS "-O2 -g -D_GNU_SOURCE -fvisibility=hidden -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes ${CMAKE_C_FLAGS}")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -g -D_GNU_SOURCE -fvisibility=hidden -Wall -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes ${CMAKE_C_FLAGS}")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF (NOT MINGW) # MinGW always does PIC and complains if we tell it to
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
- SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes ${CMAKE_C_FLAGS}")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE -Wall -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes ${CMAKE_C_FLAGS}")
IF (WIN32 AND NOT CYGWIN)
SET(CMAKE_C_FLAGS_DEBUG "-D_DEBUG")

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-src_unix_posix_h,v 1.1 2013/04/22 06:22:22 jasper Exp $
Add missing prototype for p_realpath().
https://github.com/libgit2/libgit2/issues/1495
--- src/unix/posix.h.orig Tue Apr 16 17:46:41 2013
+++ src/unix/posix.h Sun Apr 21 23:59:46 2013
@@ -21,6 +21,8 @@
/* The OpenBSD realpath function behaves differently */
#if !defined(__OpenBSD__)
# define p_realpath(p, po) realpath(p, po)
+#else
+char *p_realpath(const char *, char *);
#endif
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)

View File

@ -1,40 +1,55 @@
@comment $OpenBSD: PLIST,v 1.3 2012/08/12 17:19:47 jasper Exp $
@comment $OpenBSD: PLIST,v 1.4 2013/04/22 06:22:22 jasper Exp $
include/git2/
include/git2.h
include/git2/attr.h
include/git2/blob.h
include/git2/branch.h
include/git2/checkout.h
include/git2/clone.h
include/git2/commit.h
include/git2/common.h
include/git2/config.h
include/git2/cred_helpers.h
include/git2/diff.h
include/git2/errors.h
include/git2/graph.h
include/git2/ignore.h
include/git2/index.h
include/git2/indexer.h
include/git2/inttypes.h
include/git2/merge.h
include/git2/message.h
include/git2/net.h
include/git2/notes.h
include/git2/object.h
include/git2/odb.h
include/git2/odb_backend.h
include/git2/oid.h
include/git2/pack.h
include/git2/push.h
include/git2/refdb.h
include/git2/refdb_backend.h
include/git2/reflog.h
include/git2/refs.h
include/git2/refspec.h
include/git2/remote.h
include/git2/repository.h
include/git2/reset.h
include/git2/revparse.h
include/git2/revwalk.h
include/git2/signature.h
include/git2/stash.h
include/git2/status.h
include/git2/stdint.h
include/git2/strarray.h
include/git2/submodule.h
include/git2/tag.h
include/git2/threads.h
include/git2/trace.h
include/git2/transport.h
include/git2/tree.h
include/git2/types.h
include/git2/version.h
include/git2/windows.h
@lib lib/libgit2.so.${LIBgit2_VERSION}
lib/pkgconfig/
lib/pkgconfig/libgit2.pc