Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2016 23:51:58 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421593 - in head/net: . grive2 grive2/files
Message-ID:  <201609082351.u88Npwi8089504@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cpm
Date: Thu Sep  8 23:51:57 2016
New Revision: 421593
URL: https://svnweb.freebsd.org/changeset/ports/421593

Log:
  New port: net/grive2 Open source client for Google Drive
  
  Grive2 is the fork of original "Grive" Google Drive client with the
  support for the new Drive REST API and partial sync.
  
  WWW: https://github.com/vitalif/grive2/
  
  Submitted by:	me
  Reviewed by:	amdmi3, feld (mentors)
  Approved by:	amdmi3, feld (mentors)
  Differential Revision:	D7675

Added:
  head/net/grive2/
     - copied from r421023, head/net/grive/
  head/net/grive2/files/patch-libgrive_src_util_File.cc   (contents, props changed)
Deleted:
  head/net/grive2/files/patch-cmake__Modules__FindJSONC.cmake
  head/net/grive2/files/patch-libgrive__src__protocol__Json.cc
  head/net/grive2/files/patch-libgrive_src_drive_State.cc
  head/net/grive2/files/patch-st_ctimespec
Modified:
  head/net/Makefile
  head/net/grive2/Makefile
  head/net/grive2/distinfo
  head/net/grive2/files/patch-grive_CMakeLists.txt
  head/net/grive2/pkg-descr

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Thu Sep  8 23:40:03 2016	(r421592)
+++ head/net/Makefile	Thu Sep  8 23:51:57 2016	(r421593)
@@ -187,6 +187,7 @@
     SUBDIR += grilo
     SUBDIR += grilo-plugins
     SUBDIR += grive
+    SUBDIR += grive2
     SUBDIR += grsync
     SUBDIR += gsk
     SUBDIR += gspoof

Modified: head/net/grive2/Makefile
==============================================================================
--- head/net/grive/Makefile	Sun Aug 28 15:20:21 2016	(r421023)
+++ head/net/grive2/Makefile	Thu Sep  8 23:51:57 2016	(r421593)
@@ -1,40 +1,32 @@
-# Created by: Key-Teck SIN <ktsin@acm.org>
+# Created by: Carlos J Puga Medina <cpm@FreeBSD.org>
 # $FreeBSD$
 
-PORTNAME=	grive
-PORTVERSION=	0.3.0
-PORTREVISION=	3
+PORTNAME=	grive2
+PORTVERSION=	0.5.0
+DISTVERSIONPREFIX=	v
 CATEGORIES=	net
 
-MAINTAINER=	ktsin@acm.org
+MAINTAINER=	cpm@FreeBSD.org
 COMMENT=	Open source client for Google Drive
 
 LICENSE=	GPLv2
-
-BROKEN_powerpc64=	Does not build
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libboost_filesystem.so:devel/boost-libs \
 		libcurl.so:ftp/curl \
 		libexpat.so:textproc/expat2 \
 		libgcrypt.so:security/libgcrypt \
-		libjson-c.so:devel/json-c \
+		libgpg-error.so:security/libgpg-error \
 		libyajl.so:devel/yajl
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	Grive
-GH_TAGNAME=	27817e8
+CONFLICTS_INSTALL=	grive-[0-9]*
 
-USES=		cmake
-CXXFLAGS+=	-I${LOCALBASE}/include
+USE_GITHUB=	yes
+GH_ACCOUNT=	vitalif
 
-PLIST_FILES=	bin/grive man/man1/grive.1.gz
+USES=		cmake pkgconfig localbase
 
-post-patch:
-	@${REINPLACE_CMD} -e '/FIND_LIBRARY/s,json,&-c,' \
-		${WRKSRC}/cmake/Modules/FindJSONC.cmake
-# Do not build Qt4-based frontend: it's buggy and quite useless anyway
-	@${REINPLACE_CMD} -e '/ bgrive/d' ${WRKSRC}/CMakeLists.txt
-# Allow to build with GCC 4.2
-	@${REINPLACE_CMD} -e 's,log::,gr::&,g' ${WRKSRC}/grive/src/main.cc
+PLIST_FILES=	bin/grive \
+		man/man1/grive.1.gz
 
 .include <bsd.port.mk>

Modified: head/net/grive2/distinfo
==============================================================================
--- head/net/grive/distinfo	Sun Aug 28 15:20:21 2016	(r421023)
+++ head/net/grive2/distinfo	Thu Sep  8 23:51:57 2016	(r421593)
@@ -1,2 +1,3 @@
-SHA256 (Grive-grive-0.3.0-27817e8_GH0.tar.gz) = 901bdbb340b07b5fbc759892e6805ad98b60cbed05bf041ab10286c8f35302da
-SIZE (Grive-grive-0.3.0-27817e8_GH0.tar.gz) = 162467
+TIMESTAMP = 1472387091
+SHA256 (vitalif-grive2-v0.5.0_GH0.tar.gz) = 24641ef4802eb93bb55e7069bca55c4fb8aa17fd88833b9c89a1b2ee7d266567
+SIZE (vitalif-grive2-v0.5.0_GH0.tar.gz) = 162886

Modified: head/net/grive2/files/patch-grive_CMakeLists.txt
==============================================================================
--- head/net/grive/files/patch-grive_CMakeLists.txt	Sun Aug 28 15:20:21 2016	(r421023)
+++ head/net/grive2/files/patch-grive_CMakeLists.txt	Thu Sep  8 23:51:57 2016	(r421593)
@@ -1,6 +1,6 @@
---- grive/CMakeLists.txt.orig	2012-07-07 23:43:18.000000000 +0800
-+++ grive/CMakeLists.txt	2013-04-21 23:34:38.000000000 +0800
-@@ -27,4 +27,4 @@
+--- grive/CMakeLists.txt.orig	2016-01-14 20:51:31 UTC
++++ grive/CMakeLists.txt
+@@ -26,4 +26,4 @@ set_target_properties( grive_executable
  )
  
  install(TARGETS grive_executable RUNTIME DESTINATION bin)

Added: head/net/grive2/files/patch-libgrive_src_util_File.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grive2/files/patch-libgrive_src_util_File.cc	Thu Sep  8 23:51:57 2016	(r421593)
@@ -0,0 +1,10 @@
+--- libgrive/src/util/File.cc.orig	2016-08-28 12:56:18 UTC
++++ libgrive/src/util/File.cc
+@@ -32,6 +32,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <fcntl.h>
++#include <unistd.h>
+ 
+ #ifdef WIN32
+ 	#include <io.h>

Modified: head/net/grive2/pkg-descr
==============================================================================
--- head/net/grive/pkg-descr	Sun Aug 28 15:20:21 2016	(r421023)
+++ head/net/grive2/pkg-descr	Thu Sep  8 23:51:57 2016	(r421593)
@@ -1,4 +1,4 @@
-Grive is an independent implementation of Google Drive client. It uses
-the Google Document List API to talk to Google's servers.
+Grive2 is the fork of original "Grive" Google Drive client with the
+support for the new Drive REST API and partial sync.
 
-WWW: http://www.lbreda.com/grive/
+WWW: https://github.com/vitalif/grive2/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609082351.u88Npwi8089504>