Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2013 10:16:59 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318949 - in head/net: . grive grive/files
Message-ID:  <201305241016.r4OAGxMQ060557@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Fri May 24 10:16:58 2013
New Revision: 318949
URL: http://svnweb.freebsd.org/changeset/ports/318949

Log:
  Grive is an independent implementation of Google Drive client. It uses
  the Google Document List API to talk to the servers in Google.
  
  WWW: http://www.lbreda.com/grive/
  
  PR:		ports/178025
  Submitted by:	Key-Teck SIN <ktsin@acm.org>
  Approved by:	culot (mentor)

Added:
  head/net/grive/
  head/net/grive/Makefile   (contents, props changed)
  head/net/grive/distinfo   (contents, props changed)
  head/net/grive/files/
  head/net/grive/files/patch-grive_CMakeLists.txt   (contents, props changed)
  head/net/grive/files/patch-st_ctimespec   (contents, props changed)
  head/net/grive/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Fri May 24 10:10:16 2013	(r318948)
+++ head/net/Makefile	Fri May 24 10:16:58 2013	(r318949)
@@ -191,6 +191,7 @@
     SUBDIR += gpxe
     SUBDIR += gq
     SUBDIR += grdesktop
+    SUBDIR += grive
     SUBDIR += grsync
     SUBDIR += gsk
     SUBDIR += gspoof

Added: head/net/grive/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grive/Makefile	Fri May 24 10:16:58 2013	(r318949)
@@ -0,0 +1,61 @@
+# Created by: ktsin@acm.org
+# $FreeBSD$
+
+PORTNAME=	grive
+PORTVERSION=	0.2.0
+CATEGORIES=	net
+MASTER_SITES=	GH
+
+MAINTAINER=	ktsin@acm.org
+COMMENT=	Open source client for Google Drive
+
+LICENSE=	GPLv2
+
+BUILD_DEPENDS=	${LOCALBASE}/lib/libiberty.a:${PORTSDIR}/devel/binutils
+LIB_DEPENDS=	boost_filesystem:${PORTSDIR}/devel/boost-libs \
+		curl:${PORTSDIR}/ftp/curl \
+		expat:${PORTSDIR}/textproc/expat2 \
+		gcrypt:${PORTSDIR}/security/libgcrypt \
+		json:${PORTSDIR}/devel/json-c
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Grive
+GH_PROJECT=	${PORTNAME}
+GH_COMMIT=	93d696a
+GH_TAGNAME=	v${PORTVERSION}
+
+USES=		cmake
+CXXFLAGS+=	-I${LOCALBASE}/include
+
+MAKE_JOBS_UNSAFE=	yes
+
+FETCH_ARGS=	-pRr
+
+PLIST_FILES=	bin/grive
+MAN1=		grive.1
+
+.include <bsd.port.pre.mk>
+
+# We need clang or GCC 4.6+ to build
+# Piece of code copied from bsd.gecko.mk
+.if ${CC} == "cc" && (exists(/usr/bin/clang) && ${OSVERSION} >= 900014)
+CC=		/usr/bin/clang
+.endif
+.if ${CXX} == "c++" && (exists(/usr/bin/clang++) && ${OSVERSION} >= 900014)
+CXX=		/usr/bin/clang++
+.endif
+.if ${CPP} == "cpp" && (exists(/usr/bin/clang-cpp) && ${OSVERSION} >= 900045)
+CPP=		/usr/bin/clang-cpp
+.endif
+.if ${CC} != "cc" && ${CPP} == "cpp"
+CPP=		${CC} -E
+.endif
+# fallback to gcc otherwise
+.if ${CC} == "cc" || ${CXX} == "c++"
+USE_GCC=	4.6+
+.endif
+
+post-install:
+	@${STRIP_CMD} ${PREFIX}/bin/grive
+
+.include <bsd.port.post.mk>

Added: head/net/grive/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grive/distinfo	Fri May 24 10:16:58 2013	(r318949)
@@ -0,0 +1,2 @@
+SHA256 (grive-0.2.0.tar.gz) = f9b32eb9da9f2d47b6642248e1e25606e9ab2cd5b3e94730b23399250ec7f2ec
+SIZE (grive-0.2.0.tar.gz) = 144474

Added: head/net/grive/files/patch-grive_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grive/files/patch-grive_CMakeLists.txt	Fri May 24 10:16:58 2013	(r318949)
@@ -0,0 +1,8 @@
+--- 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 @@
+ )
+ 
+ install(TARGETS grive_executable RUNTIME DESTINATION bin)
+-install(FILES doc/grive.1 DESTINATION share/man/man1 )
++install(FILES doc/grive.1 DESTINATION man/man1 )

Added: head/net/grive/files/patch-st_ctimespec
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grive/files/patch-st_ctimespec	Fri May 24 10:16:58 2013	(r318949)
@@ -0,0 +1,13 @@
+diff --git libgrive/src/util/OS.cc libgrive/src/util/OS.cc
+index 0d51136..469e373 100644
+--- libgrive/src/util/OS.cc
++++ libgrive/src/util/OS.cc
+@@ -57,7 +57,7 @@ DateTime FileCTime( const std::string& filename )
+ 		) ;
+ 	}
+ 	
+-#if defined __APPLE__ && defined __DARWIN_64_BIT_INO_T
++#if defined(__FreeBSD__) && __FreeBSD_version < 900000
+ 	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);

Added: head/net/grive/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grive/pkg-descr	Fri May 24 10:16:58 2013	(r318949)
@@ -0,0 +1,4 @@
+Grive is an independent implementation of Google Drive client. It uses
+the Google Document List API to talk to the servers in Google.
+
+WWW: http://www.lbreda.com/grive/



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