diff --git a/_alpha/libgit2/Makefile b/_alpha/libgit2/Makefile new file mode 100644 index 00000000..57620b61 --- /dev/null +++ b/_alpha/libgit2/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD: head/devel/libgit2/Makefile 491724 2019-01-31 14:13:42Z mfechner $ + +# Also update devel/libgit2-glib, devel/rubygem-rugged, devel/py-pygit2 + +PORTNAME= libgit2 +PORTVERSION= 1.0.1 #0.28.5 +DISTVERSIONPREFIX= v +CATEGORIES= devel + +MAINTAINER= mfechner@FreeBSD.org +COMMENT= Portable, pure C implementation of the Git core + +USE_GITHUB= yes +GH_ACCOUNT= libgit2 + +USES= cmake pathfix pkgconfig python:build +USE_LDCONFIG= yes + +CMAKE_ARGS+= -DUSE_SSH=ON +CMAKE_ARGS+= -DTHREADSAFE=ON +CMAKE_ARGS+= -DCURL=ON + +SSH_LIB_DEPENDS= libssh2.so:net/libssh2 +LIB_DEPENDS= libcurl.so:net/libcurl + +.include + +post-patch: + ${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*zlib/ d" ${WRKSRC}/CMakeLists.txt + ${REINPLACE_CMD} -e "/LIBGIT2_PC_REQUIRES.*openssl/ d" \ + ${WRKSRC}/src/CMakeLists.txt + +.include diff --git a/_alpha/libgit2/distinfo b/_alpha/libgit2/distinfo new file mode 100644 index 00000000..e12e75b2 --- /dev/null +++ b/_alpha/libgit2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1593773574 +SHA256 (libgit2-libgit2-v1.0.1_GH0.tar.gz) = 1775427a6098f441ddbaa5bd4e9b8a043c7401e450ed761e69a415530fea81d2 +SIZE (libgit2-libgit2-v1.0.1_GH0.tar.gz) = 5312878 diff --git a/_alpha/libgit2/files/patch-x-CMakeLists.txt b/_alpha/libgit2/files/patch-x-CMakeLists.txt new file mode 100644 index 00000000..14a4b55f --- /dev/null +++ b/_alpha/libgit2/files/patch-x-CMakeLists.txt @@ -0,0 +1,16 @@ +--- ./CMakeLists.txt.orig 2020-07-03 12:54:38.009119000 +0200 ++++ ./CMakeLists.txt 2020-07-03 12:59:31.997199000 +0200 +@@ -109,10 +109,12 @@ + STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"([0-9]+).*$" "\\1" LIBGIT2_VERSION_MAJOR "${GIT2_HEADER}") + STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" LIBGIT2_VERSION_MINOR "${GIT2_HEADER}") + STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" LIBGIT2_VERSION_REV "${GIT2_HEADER}") +-SET(LIBGIT2_VERSION_STRING "${LIBGIT2_VERSION_MAJOR}.${LIBGIT2_VERSION_MINOR}.${LIBGIT2_VERSION_REV}") ++SET(LIBGIT2_VERSION_STRING "${LIBGIT2_VERSION_MAJOR}") + ++ + FILE(STRINGS "${libgit2_SOURCE_DIR}/include/git2/version.h" GIT2_HEADER_SOVERSION REGEX "^#define LIBGIT2_SOVERSION \"([0-9.]+)\"$") + STRING(REGEX REPLACE "^.*LIBGIT2_SOVERSION \"([0-9.]+)\"$" "\\1" LIBGIT2_SOVERSION "${GIT2_HEADER_SOVERSION}") ++SET(LIBGIT2_SOVERSION "${LIBGIT2_VERSION_MAJOR}") + + IF (DEPRECATE_HARD) + ADD_DEFINITIONS(-DGIT_DEPRECATE_HARD) diff --git a/_alpha/libgit2/pkg-descr b/_alpha/libgit2/pkg-descr new file mode 100644 index 00000000..93cf7ace --- /dev/null +++ b/_alpha/libgit2/pkg-descr @@ -0,0 +1,12 @@ +libgit2 is... + +licensed under a very permissive license so you can use it anywhere +faster than any other Git library +written in standards compliant C99 +completely multi-platform: Windows, Linux, Mac OS X, xBSD +compiled natively under all platforms (yes, even MSVC on Windows) +re-entrant, with sane error handling +designed with a solid and consistent API +available as bindings for all major scripting languages + +WWW: http://libgit2.github.com/ diff --git a/_alpha/libgit2/pkg-plist b/_alpha/libgit2/pkg-plist new file mode 100644 index 00000000..6f2fcf5d --- /dev/null +++ b/_alpha/libgit2/pkg-plist @@ -0,0 +1,92 @@ +include/git2.h +include/git2/annotated_commit.h +include/git2/apply.h +include/git2/attr.h +include/git2/blame.h +include/git2/blob.h +include/git2/branch.h +include/git2/buffer.h +include/git2/cert.h +include/git2/checkout.h +include/git2/cherrypick.h +include/git2/clone.h +include/git2/commit.h +include/git2/common.h +include/git2/config.h +include/git2/cred_helpers.h +include/git2/credential_helpers.h +include/git2/credential.h +include/git2/deprecated.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 +include/git2/indexer.h +include/git2/mailmap.h +include/git2/merge.h +include/git2/message.h +include/git2/net.h +include/git2/notes.h +include/git2/object.h +include/git2/odb_backend.h +include/git2/odb.h +include/git2/oid.h +include/git2/oidarray.h +include/git2/pack.h +include/git2/patch.h +include/git2/pathspec.h +include/git2/proxy.h +include/git2/rebase.h +include/git2/refdb.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/revert.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/sys/alloc.h +include/git2/sys/commit.h +include/git2/sys/config.h +include/git2/sys/cred.h +include/git2/sys/credential.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/merge.h +include/git2/sys/odb_backend.h +include/git2/sys/openssl.h +include/git2/sys/path.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 +include/git2/tag.h +include/git2/trace.h +include/git2/transaction.h +include/git2/transport.h +include/git2/tree.h +include/git2/types.h +include/git2/version.h +include/git2/worktree.h +lib/libgit2.so +lib/libgit2.so.1 +lib/pkgconfig/libgit2.pc +@dir include/git2/sys +@dir include/git2