summaryrefslogtreecommitdiff
path: root/net/grive2
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2015-06-16 16:15:37 +0000
committerabs <abs@pkgsrc.org>2015-06-16 16:15:37 +0000
commitde1859ff24e1e149d984c14e0e06a05d48f87bf7 (patch)
treecc541bab59b08222f13db0e2dcda6d9ecd211d41 /net/grive2
parentb48f7e7d1d46e5ca4f43c3bd1c2a112ace6fc968 (diff)
downloadpkgsrc-de1859ff24e1e149d984c14e0e06a05d48f87bf7.tar.gz
Added net/grive2 version 0.4.0.20150531
This is the fork of original "Grive" (https://github.com/Grive/grive) Google Drive client with the support for the new Drive REST API and partial sync. Grive can be considered still beta or pre-beta quality. It simply downloads all the files in your Google Drive into the current directory. After you make some changes to the local files, run grive again and it will upload your changes back to your Google Drive. New files created locally or in Google Drive will be uploaded or downloaded respectively. Deleted files will also be "removed". Currently Grive will NOT destroy any of your files: it will only move the files to a directory named .trash or put them in the Google Drive trash. You can always recover them.
Diffstat (limited to 'net/grive2')
-rw-r--r--net/grive2/DESCR13
-rw-r--r--net/grive2/Makefile36
-rw-r--r--net/grive2/PLIST3
-rw-r--r--net/grive2/distinfo10
-rw-r--r--net/grive2/patches/patch-libgrive_CMakeLists.txt15
-rw-r--r--net/grive2/patches/patch-libgrive_src_util_OS.cc15
-rw-r--r--net/grive2/patches/patch-libgrive_test_drive_EntryTest.cc15
-rw-r--r--net/grive2/patches/patch-libgrive_test_drive_ResourceTest.cc18
-rw-r--r--net/grive2/patches/patch-libgrive_test_drive_ResourceTreeTest.cc17
9 files changed, 142 insertions, 0 deletions
diff --git a/net/grive2/DESCR b/net/grive2/DESCR
new file mode 100644
index 00000000000..2868d15cb53
--- /dev/null
+++ b/net/grive2/DESCR
@@ -0,0 +1,13 @@
+This is the fork of original "Grive" (https://github.com/Grive/grive)
+Google Drive client with the support for the new Drive REST API
+and partial sync.
+
+Grive can be considered still beta or pre-beta quality. It simply
+downloads all the files in your Google Drive into the current
+directory. After you make some changes to the local files, run
+grive again and it will upload your changes back to your Google
+Drive. New files created locally or in Google Drive will be uploaded
+or downloaded respectively. Deleted files will also be "removed".
+Currently Grive will NOT destroy any of your files: it will only
+move the files to a directory named .trash or put them in the Google
+Drive trash. You can always recover them.
diff --git a/net/grive2/Makefile b/net/grive2/Makefile
new file mode 100644
index 00000000000..695d9359b7a
--- /dev/null
+++ b/net/grive2/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+DISTNAME= ${GHNAME}-${GHDATE}-${GHCOMMIT}
+PKGNAME= ${GHNAME}-0.4.0.${GHDATE}
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=${GHACCOUNT}/${GHNAME}/archive/${GHCOMMIT}/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/vitalif/Grive2
+COMMENT= Independent open source implementation of Google Drive client
+LICENSE= gnu-gpl-v2
+
+GHACCOUNT= vitalif
+GHNAME= grive2
+GHDATE= 20150531
+GHCOMMIT= 06eb1a7df2032144f99473fd812412514834a1ee
+
+WRKSRC= ${WRKDIR}/grive2-${GHCOMMIT}
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+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/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/grive2/PLIST b/net/grive2/PLIST
new file mode 100644
index 00000000000..763568fc95c
--- /dev/null
+++ b/net/grive2/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+bin/grive
+man/man1/grive.1
diff --git a/net/grive2/distinfo b/net/grive2/distinfo
new file mode 100644
index 00000000000..afd68f562b7
--- /dev/null
+++ b/net/grive2/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+SHA1 (grive2-20150531-06eb1a7df2032144f99473fd812412514834a1ee.tar.gz) = e77a4d64f2fa2dbb69d9a7df1998424d261c263e
+RMD160 (grive2-20150531-06eb1a7df2032144f99473fd812412514834a1ee.tar.gz) = 3affce2d7b3112cc49941e4ea5cf81f6e2af49fe
+Size (grive2-20150531-06eb1a7df2032144f99473fd812412514834a1ee.tar.gz) = 158413 bytes
+SHA1 (patch-libgrive_CMakeLists.txt) = fa81eae7f6c70478c757c897fab3fb1d297b25b0
+SHA1 (patch-libgrive_src_util_OS.cc) = ac5a59b717af6029134eb299b36a5862df193c38
+SHA1 (patch-libgrive_test_drive_EntryTest.cc) = 16627f2bb0f1b547a1be287c65c82793ac3a3f45
+SHA1 (patch-libgrive_test_drive_ResourceTest.cc) = b2337741b60c3f98481ecbe65f42e3dbf2382c09
+SHA1 (patch-libgrive_test_drive_ResourceTreeTest.cc) = a2e8e44f82996cbe506475c9c451e44eb04507b3
diff --git a/net/grive2/patches/patch-libgrive_CMakeLists.txt b/net/grive2/patches/patch-libgrive_CMakeLists.txt
new file mode 100644
index 00000000000..cc3d3504d07
--- /dev/null
+++ b/net/grive2/patches/patch-libgrive_CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD: patch-libgrive_CMakeLists.txt,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+currently unit tests are broken
+
+--- libgrive/CMakeLists.txt.orig 2015-06-16 13:59:21.000000000 +0000
++++ libgrive/CMakeLists.txt
+@@ -111,7 +111,7 @@ endif()
+ #install(FILES ${UTIL_HEADERS} DESTINATION include/grive/util)
+ #install(FILES ${XML_HEADERS} DESTINATION include/grive/xml)
+
+-IF ( CPPUNIT_FOUND )
++IF ( 0 ) # ( CPPUNIT_FOUND ) -- currently unit tests broken
+ message("-- Building unitary tests along with the library and the binary")
+ set( OPT_INCS ${CPPUNIT_INCLUDE_DIR} )
+
diff --git a/net/grive2/patches/patch-libgrive_src_util_OS.cc b/net/grive2/patches/patch-libgrive_src_util_OS.cc
new file mode 100644
index 00000000000..eada43138c9
--- /dev/null
+++ b/net/grive2/patches/patch-libgrive_src_util_OS.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-libgrive_src_util_OS.cc,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+Add __NetBSD__ to the 64bit Apple ctimespec stat case
+
+--- libgrive/src/util/OS.cc.orig 2015-05-31 19:35:15.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);
diff --git a/net/grive2/patches/patch-libgrive_test_drive_EntryTest.cc b/net/grive2/patches/patch-libgrive_test_drive_EntryTest.cc
new file mode 100644
index 00000000000..09a30543701
--- /dev/null
+++ b/net/grive2/patches/patch-libgrive_test_drive_EntryTest.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-libgrive_test_drive_EntryTest.cc,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+Fix include
+
+--- libgrive/test/drive/EntryTest.cc.orig 2015-05-31 19:35:15.000000000 +0000
++++ libgrive/test/drive/EntryTest.cc
+@@ -21,7 +21,7 @@
+
+ #include "Assert.hh"
+
+-#include "drive/Entry.hh"
++#include "base/Entry.hh"
+ #include "xml/Node.hh"
+ #include "xml/NodeSet.hh"
+ #include "xml/TreeBuilder.hh"
diff --git a/net/grive2/patches/patch-libgrive_test_drive_ResourceTest.cc b/net/grive2/patches/patch-libgrive_test_drive_ResourceTest.cc
new file mode 100644
index 00000000000..cdc5f03d5d5
--- /dev/null
+++ b/net/grive2/patches/patch-libgrive_test_drive_ResourceTest.cc
@@ -0,0 +1,18 @@
+$NetBSD: patch-libgrive_test_drive_ResourceTest.cc,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+Fix include
+
+--- libgrive/test/drive/ResourceTest.cc.orig 2015-05-31 19:35:15.000000000 +0000
++++ libgrive/test/drive/ResourceTest.cc
+@@ -21,9 +21,9 @@
+
+ #include "Assert.hh"
+
+-#include "drive/Resource.hh"
++#include "base/Resource.hh"
+
+-#include "drive/Entry.hh"
++#include "base/Entry.hh"
+ #include "xml/Node.hh"
+
+ #include <iostream>
diff --git a/net/grive2/patches/patch-libgrive_test_drive_ResourceTreeTest.cc b/net/grive2/patches/patch-libgrive_test_drive_ResourceTreeTest.cc
new file mode 100644
index 00000000000..15de4633c09
--- /dev/null
+++ b/net/grive2/patches/patch-libgrive_test_drive_ResourceTreeTest.cc
@@ -0,0 +1,17 @@
+$NetBSD: patch-libgrive_test_drive_ResourceTreeTest.cc,v 1.1.1.1 2015/06/16 16:15:37 abs Exp $
+
+Fix include
+
+--- libgrive/test/drive/ResourceTreeTest.cc.orig 2015-05-31 19:35:15.000000000 +0000
++++ libgrive/test/drive/ResourceTreeTest.cc
+@@ -21,8 +21,8 @@
+
+ #include "Assert.hh"
+
+-#include "drive/ResourceTree.hh"
+-#include "drive/Resource.hh"
++#include "base/ResourceTree.hh"
++#include "base/Resource.hh"
+
+ #include <iostream>
+