diff options
author | abs <abs@pkgsrc.org> | 2014-06-06 14:57:00 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2014-06-06 14:57:00 +0000 |
commit | 4e1e5ab4c9aed245b2fd0c12b0bd54243601b88c (patch) | |
tree | 9612b0198801d23230b266cfd158b69bc5280550 /net/grive | |
parent | b59cd0feba20b48977807a84faf242df35285f51 (diff) | |
download | pkgsrc-4e1e5ab4c9aed245b2fd0c12b0bd54243601b88c.tar.gz |
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 (limited to 'net/grive')
-rw-r--r-- | net/grive/DESCR | 9 | ||||
-rw-r--r-- | net/grive/Makefile | 43 | ||||
-rw-r--r-- | net/grive/PLIST | 3 | ||||
-rw-r--r-- | net/grive/distinfo | 8 | ||||
-rw-r--r-- | net/grive/patches/patch-cmake_Modules_FindJSONC.cmake | 17 | ||||
-rw-r--r-- | net/grive/patches/patch-libgrive_src_protocol_Json.cc | 17 | ||||
-rw-r--r-- | net/grive/patches/patch-libgrive_src_util_OS.cc | 15 |
7 files changed, 112 insertions, 0 deletions
diff --git a/net/grive/DESCR b/net/grive/DESCR new file mode 100644 index 00000000000..4d2a2af44e6 --- /dev/null +++ b/net/grive/DESCR @@ -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 --git a/net/grive/Makefile b/net/grive/Makefile new file mode 100644 index 00000000000..0ee66275360 --- /dev/null +++ b/net/grive/Makefile @@ -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 +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 --git a/net/grive/PLIST b/net/grive/PLIST new file mode 100644 index 00000000000..4495b74f6f2 --- /dev/null +++ b/net/grive/PLIST @@ -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 --git a/net/grive/distinfo b/net/grive/distinfo new file mode 100644 index 00000000000..dbefec89a3e --- /dev/null +++ b/net/grive/distinfo @@ -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 --git a/net/grive/patches/patch-cmake_Modules_FindJSONC.cmake b/net/grive/patches/patch-cmake_Modules_FindJSONC.cmake new file mode 100644 index 00000000000..6a5f24d4697 --- /dev/null +++ b/net/grive/patches/patch-cmake_Modules_FindJSONC.cmake @@ -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 --git a/net/grive/patches/patch-libgrive_src_protocol_Json.cc b/net/grive/patches/patch-libgrive_src_protocol_Json.cc new file mode 100644 index 00000000000..f856514842e --- /dev/null +++ b/net/grive/patches/patch-libgrive_src_protocol_Json.cc @@ -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 --git a/net/grive/patches/patch-libgrive_src_util_OS.cc b/net/grive/patches/patch-libgrive_src_util_OS.cc new file mode 100644 index 00000000000..235161d6ee3 --- /dev/null +++ b/net/grive/patches/patch-libgrive_src_util_OS.cc @@ -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); |