From owner-svn-ports-head@FreeBSD.ORG Fri May 24 10:17:00 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6C5F3997; Fri, 24 May 2013 10:17:00 +0000 (UTC) (envelope-from wg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4DC9E187; Fri, 24 May 2013 10:17:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4OAH0CM060622; Fri, 24 May 2013 10:17:00 GMT (envelope-from wg@svn.freebsd.org) Received: (from wg@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4OAGxMQ060557; Fri, 24 May 2013 10:16:59 GMT (envelope-from wg@svn.freebsd.org) Message-Id: <201305241016.r4OAGxMQ060557@svn.freebsd.org> From: William Grzybowski Date: Fri, 24 May 2013 10:16:59 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2013 10:17:00 -0000 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 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 + +# 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 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/