Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit d9bf989

Browse files
committed
Build libgit2 0.27.2 + C99 patch
1 parent a4c8400 commit d9bf989

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

PKGBUILD

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
_realname=libgit2
44
pkgbase=mingw-w64-${_realname}
55
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
6-
pkgver=0.27.0
6+
pkgver=0.27.2
77
pkgrel=1
88
pkgdesc='A linkable library for Git (mingw-w64)'
99
arch=('any')
@@ -16,13 +16,16 @@ depends=("${MINGW_PACKAGE_PREFIX}-curl"
1616
"${MINGW_PACKAGE_PREFIX}-openssl"
1717
"${MINGW_PACKAGE_PREFIX}-zlib")
1818
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-gcc")
19-
source=(${_realname}-${pkgver}.tar.gz::"https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz")
19+
source=(${_realname}-${pkgver}.tar.gz::"https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz"
20+
enumfix.patch)
2021
noextract=(${_realname}-${pkgver}.tar.gz)
21-
sha256sums=('545b0458292c786aba334f1bf1c8f73600ae73dd7205a7bb791a187ee48ab8d2')
22+
sha256sums=('ffacdbd5588aeb03e98e3866a7e2ceace468723a439bdc9bb01362fe140fa9e5'
23+
'SKIP')
2224

2325
prepare() {
2426
tar --exclude tests/resources/testrepo-worktree/link_to_new.txt -zxf ${_realname}-${pkgver}.tar.gz
2527
cd ${_realname}-${pkgver}
28+
patch -p1 -i ${srcdir}/enumfix.patch
2629
}
2730

2831
build() {

include/git2/diff.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ typedef enum {
171171
* Options controlling how output will be generated
172172
*/
173173

174+
/** Use a heuristic that takes indentation and whitespace into account
175+
* which generally can produce better diffs when dealing with ambiguous
176+
* diff hunks.
177+
*/
178+
GIT_DIFF_INDENT_HEURISTIC = (1u << 18),
179+
174180
/** Treat all files as text, disabling binary attributes & detection */
175181
GIT_DIFF_FORCE_TEXT = (1u << 20),
176182
/** Treat all files as binary, disabling text diffs */
@@ -206,12 +212,6 @@ typedef enum {
206212
* can apply given diff information to binary files.
207213
*/
208214
GIT_DIFF_SHOW_BINARY = (1u << 30),
209-
210-
/** Use a heuristic that takes indentation and whitespace into account
211-
* which generally can produce better diffs when dealing with ambiguous
212-
* diff hunks.
213-
*/
214-
GIT_DIFF_INDENT_HEURISTIC = (1u << 31),
215215
} git_diff_option_t;
216216

217217
/**

include/git2/version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#ifndef INCLUDE_git_version_h__
88
#define INCLUDE_git_version_h__
99

10-
#define LIBGIT2_VERSION "0.27.0"
10+
#define LIBGIT2_VERSION "0.27.2"
1111
#define LIBGIT2_VER_MAJOR 0
1212
#define LIBGIT2_VER_MINOR 27
13-
#define LIBGIT2_VER_REVISION 0
13+
#define LIBGIT2_VER_REVISION 2
1414
#define LIBGIT2_VER_PATCH 0
1515

1616
#define LIBGIT2_SOVERSION 27

lib/i386/libgit2.a

5.28 KB
Binary file not shown.

lib/x64/libgit2.a

5.66 KB
Binary file not shown.

0 commit comments

Comments
 (0)