geany-plugins: rebuild for libgit2-1.0.0

This commit is contained in:
q66 2020-05-03 19:32:28 +02:00 committed by Daniel Kolesa
parent 459eac3687
commit 4d9d26e98c
2 changed files with 55 additions and 1 deletions

View file

@ -0,0 +1,54 @@
commit c5840bc94d5870b2f8b38ea16853e0c2dd0ac981
Author: q66 <daniel@octaforge.org>
Date: Sun May 3 19:36:54 2020 +0200
fix build on libgit2-1.0
diff --git git-changebar/src/gcb-plugin.c git-changebar/src/gcb-plugin.c
index b708319..8d3abaf 100644
--- git-changebar/src/gcb-plugin.c
+++ git-changebar/src/gcb-plugin.c
@@ -32,25 +32,6 @@
#include <geany.h>
#include <document.h>
-#if ! defined (LIBGIT2_SOVERSION) || LIBGIT2_SOVERSION < 22
-# define git_libgit2_init git_threads_init
-# define git_libgit2_shutdown git_threads_shutdown
-#endif
-#if ! defined (LIBGIT2_SOVERSION) || LIBGIT2_SOVERSION < 23
-/* 0.23 added @p binary_cb */
-# define git_diff_buffers(old_buffer, old_len, old_as_path, \
- new_buffer, new_len, new_as_path, options, \
- file_cb, binary_cb, hunk_cb, line_cb, payload) \
- git_diff_buffers (old_buffer, old_len, old_as_path, \
- new_buffer, new_len, new_as_path, options, \
- file_cb, hunk_cb, line_cb, payload)
-#endif
-#if ! defined (LIBGIT2_SOVERSION) || LIBGIT2_SOVERSION < 28
-# define git_buf_dispose git_buf_free
-# define git_error_last giterr_last
-#endif
-
-
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
diff --git workbench/src/plugin_main.c workbench/src/plugin_main.c
index 6fa6fc8..b620666 100644
--- workbench/src/plugin_main.c
+++ workbench/src/plugin_main.c
@@ -35,13 +35,6 @@
#include "idle_queue.h"
#include "tm_control.h"
-
-#if ! defined (LIBGIT2_SOVERSION) || LIBGIT2_SOVERSION < 22
-# define git_libgit2_init git_threads_init
-# define git_libgit2_shutdown git_threads_shutdown
-#endif
-
-
GeanyPlugin *geany_plugin;
GeanyData *geany_data;

View file

@ -1,7 +1,7 @@
# Template file for 'geany-plugins'
pkgname=geany-plugins
version=1.36.0
revision=1
revision=2
build_style=gnu-configure
configure_args="PYTHON=/usr/bin/python2 --enable-all-plugins --disable-devhelp
--disable-webhelper --disable-debugger --disable-geanypy --disable-multiterm"