Merge pull request #943 from nacho/wip/gitg-3.19.3

Wip/gitg 3.19.3
This commit is contained in:
Alexpux
2015-12-23 11:40:33 +03:00
3 changed files with 44 additions and 6 deletions

View File

@@ -0,0 +1,35 @@
From 82337a0bd09cb63fdd61df90482aef5494be5846 Mon Sep 17 00:00:00 2001
From: Ignacio Casal Quinteiro <icq@gnome.org>
Date: Wed, 23 Dec 2015 08:46:06 +0100
Subject: [PATCH] Add missing includes
This happens for developing on linux something that is for windows
---
libgitg/gitg-platform-support-win32.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/libgitg/gitg-platform-support-win32.c b/libgitg/gitg-platform-support-win32.c
index ca7f725..debb9fc 100644
--- a/libgitg/gitg-platform-support-win32.c
+++ b/libgitg/gitg-platform-support-win32.c
@@ -21,6 +21,17 @@
#include <gio/gwin32inputstream.h>
+#define SAVE_DATADIR DATADIR
+#undef DATADIR
+#include <io.h>
+#include <conio.h>
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
+#include <windows.h>
+#define DATADIR SAVE_DATADIR
+#undef SAVE_DATADIR
+
gboolean
gitg_platform_support_use_native_window_controls (GdkDisplay *display)
{
--
2.5.0

View File

@@ -3,8 +3,8 @@
_realname=gitg
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.19.2
pkgrel=2
pkgver=3.19.3
pkgrel=1
arch=('any')
pkgdesc="git repository viewer for GTK+/GNOME (mingw-w64)"
depends=("${MINGW_PACKAGE_PREFIX}-adwaita-icon-theme"
@@ -30,12 +30,16 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
license=("GPL2+")
url="https://wiki.gnome.org/Apps/Gitg"
install=${_realname}-${CARCH}.install
source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:4}/${_realname}-$pkgver.tar.xz)
sha256sums=('52968be7d3dffaf20d14b25ca68773bf8ce73b32c5c8d3eac63cea0721c7a709')
source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:4}/${_realname}-$pkgver.tar.xz
0001-Add-missing-includes.patch)
sha256sums=('c14949cda8e9d9a8ac16e3993ed188be4c408a573247faf16133580f424a091a'
'4f4862d5ec676c75d3c5c39f63608dd9e71f22d2375961885f3b3e43363cb794')
prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
patch -Np1 -i "${srcdir}/0001-Add-missing-includes.patch"
#autopoint --force
#AUTOPOINT='intltoolize --automake --copy' autoreconf -f -i
}

View File

@@ -29,8 +29,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-shared-mime-info")
options=('strip' '!debug' 'staticlibs')
source=("http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar.xz"
0013-fix-mingw-w64-fstat-call.mingw.patch
0056-missing-file-toarray-pl.patch)
0013-fix-mingw-w64-fstat-call.mingw.patch)
md5sums=('e1c41ad4a6012d703a80f7423acf186e'
'21789d52c1debcab59f8b6a99232de68')