pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/grive Added net/grive version 0.3.0.20130502



details:   https://anonhg.NetBSD.org/pkgsrc/rev/530533d072c6
branches:  trunk
changeset: 635456:530533d072c6
user:      abs <abs%pkgsrc.org@localhost>
date:      Fri Jun 06 14:57:00 2014 +0000

description:
Added net/grive version 0.3.0.20130502

The purpose of this project is to provide an independent open
source implementation of Google Drive client for GNU/Linux. It
uses the Google Document List API to talk to the servers in Google.
The code is written in standard C++.

Currently as of version 0.2.0, grive can do two-side synchronization
between the Google Drive and local directory. It can download and
upload changed files. New directories in Google Drive and local
directory will also be downloaded/uploaded.

diffstat:

 net/grive/DESCR                                       |   9 +++
 net/grive/Makefile                                    |  43 +++++++++++++++++++
 net/grive/PLIST                                       |   3 +
 net/grive/distinfo                                    |   8 +++
 net/grive/patches/patch-cmake_Modules_FindJSONC.cmake |  17 +++++++
 net/grive/patches/patch-libgrive_src_protocol_Json.cc |  17 +++++++
 net/grive/patches/patch-libgrive_src_util_OS.cc       |  15 ++++++
 7 files changed, 112 insertions(+), 0 deletions(-)

diffs (140 lines):

diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/DESCR   Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,9 @@
+The purpose of this project is to provide an independent open
+source implementation of Google Drive client for GNU/Linux. It
+uses the Google Document List API to talk to the servers in Google.
+The code is written in standard C++.
+
+Currently as of version 0.2.0, grive can do two-side synchronization
+between the Google Drive and local directory. It can download and
+upload changed files. New directories in Google Drive and local
+directory will also be downloaded/uploaded.
diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/Makefile        Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
+
+DISTNAME=      ${GHNAME}-${GHDATE}-${GHCOMMIT}
+PKGNAME=       ${GHNAME}-0.3.0.${GHDATE}
+CATEGORIES=    net
+MASTER_SITES=  https://github.com/${GHACCOUNT}/${GHNAME}/archive/${GHCOMMIT}/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.lbreda.com/grive/start
+COMMENT=       Independent open source implementation of Google Drive client
+LICENSE=       gnu-gpl-v2
+
+GHACCOUNT=     Grive
+GHNAME=                grive
+GHDATE=                20130502
+GHCOMMIT=      27817e835fe115ebbda5410ec904aa49a2ad01f1
+
+WRKSRC=                ${WRKDIR}/grive-${GHCOMMIT}
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+SUBST_CLASSES+=                disableqt
+SUBST_MESSAGE.disableqt=Disable QT frontend
+SUBST_STAGE.disableqt= pre-configure
+SUBST_FILES.disableqt= CMakeLists.txt
+SUBST_SED.disableqt=   -e '/ bgrive/d'
+
+SUBST_CLASSES+=                manpath
+SUBST_MESSAGE.manpath= Fix manpath
+SUBST_STAGE.manpath=   pre-configure
+SUBST_FILES.manpath=   bgrive/CMakeLists.txt grive/CMakeLists.txt
+SUBST_SED.manpath=     -e 's,DESTINATION share/man,DESTINATION ${PKGMANDIR},g'
+
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/cppunit/buildlink3.mk"
+.include "../../devel/libiberty/buildlink3.mk"
+.include "../../devel/yajl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/PLIST   Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
+bin/grive
+man/man1/grive.1
diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/distinfo        Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
+
+SHA1 (grive-20130502-27817e835fe115ebbda5410ec904aa49a2ad01f1.tar.gz) = e3059b0ce32ea05d7b5457948317b39358dbb239
+RMD160 (grive-20130502-27817e835fe115ebbda5410ec904aa49a2ad01f1.tar.gz) = f2a8c3e67f24c01b45ba831f2b3b8c2b5e39fe5c
+Size (grive-20130502-27817e835fe115ebbda5410ec904aa49a2ad01f1.tar.gz) = 162471 bytes
+SHA1 (patch-cmake_Modules_FindJSONC.cmake) = 3038261ef82ad501ffeae18abbba562cc73ae435
+SHA1 (patch-libgrive_src_protocol_Json.cc) = 81087f290cba4f37aeac09742973a78fd9be0bb9
+SHA1 (patch-libgrive_src_util_OS.cc) = 79cdfe8f89e28901b44c1e8dc5f054a9ca03f061
diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/patches/patch-cmake_Modules_FindJSONC.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/patches/patch-cmake_Modules_FindJSONC.cmake     Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-cmake_Modules_FindJSONC.cmake,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
+
+Update for json-c 0.11 and later
+
+--- cmake/Modules/FindJSONC.cmake.orig 2013-05-02 16:40:04.000000000 +0000
++++ cmake/Modules/FindJSONC.cmake
+@@ -6,8 +6,8 @@
+ #  JSONC_INCLUDE_DIR - The JSON-C include directory.
+ #  JSONC_LIBRARY     - The JSON-C library to link against.
+ 
+-FIND_PATH(JSONC_INCLUDE_DIR json/json.h)
+-FIND_LIBRARY(JSONC_LIBRARY NAMES json)
++FIND_PATH(JSONC_INCLUDE_DIR NAMES json-c/json.h json/json.h)
++FIND_LIBRARY(JSONC_LIBRARY NAMES json-c json)
+ 
+ IF (JSONC_INCLUDE_DIR AND JSONC_LIBRARY)
+    SET(JSONC_FOUND TRUE)
diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/patches/patch-libgrive_src_protocol_Json.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/patches/patch-libgrive_src_protocol_Json.cc     Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-libgrive_src_protocol_Json.cc,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
+
+Update for json-c 0.11 and later
+
+--- libgrive/src/protocol/Json.cc.orig 2013-05-02 16:40:04.000000000 +0000
++++ libgrive/src/protocol/Json.cc
+@@ -29,8 +29,8 @@
+       #pragma warning(push)
+       #pragma warning(disable: 4005)
+ #endif
+-#include <json/json_tokener.h>
+-#include <json/linkhash.h>
++#include <json-c/json_tokener.h>
++#include <json-c/linkhash.h>
+ #ifdef _MSC_VER
+       #pragma warning(pop)
+ #endif
diff -r 1daba9ec2b5a -r 530533d072c6 net/grive/patches/patch-libgrive_src_util_OS.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/grive/patches/patch-libgrive_src_util_OS.cc   Fri Jun 06 14:57:00 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-libgrive_src_util_OS.cc,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
+
+Add __NetBSD__ to the 64bit Apple ctimespec stat case
+
+--- libgrive/src/util/OS.cc.orig       2013-05-02 16:40:04.000000000 +0000
++++ libgrive/src/util/OS.cc
+@@ -57,7 +57,7 @@ DateTime FileCTime( const std::string& f
+               ) ;
+       }
+       
+-#if defined __APPLE__ && defined __DARWIN_64_BIT_INO_T
++#if defined __NetBSD__ || ( defined __APPLE__ && defined __DARWIN_64_BIT_INO_T )
+       return DateTime( s.st_ctimespec.tv_sec, s.st_ctimespec.tv_nsec ) ;
+ #else
+       return DateTime( s.st_ctim.tv_sec, s.st_ctim.tv_nsec);



Home | Main Index | Thread Index | Old Index