From ffdd97b0e6a8904e5fb9a9ff1cc7a239069d3c85 Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Fri, 24 May 2013 10:16:58 +0000 Subject: 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) --- net/grive/Makefile | 61 ++++++++++++++++++++++++++++++ net/grive/distinfo | 2 + net/grive/files/patch-grive_CMakeLists.txt | 8 ++++ net/grive/files/patch-st_ctimespec | 13 +++++++ net/grive/pkg-descr | 4 ++ 5 files changed, 88 insertions(+) create mode 100644 net/grive/Makefile create mode 100644 net/grive/distinfo create mode 100644 net/grive/files/patch-grive_CMakeLists.txt create mode 100644 net/grive/files/patch-st_ctimespec create mode 100644 net/grive/pkg-descr (limited to 'net/grive') diff --git a/net/grive/Makefile b/net/grive/Makefile new file mode 100644 index 000000000000..ac5b11af2e73 --- /dev/null +++ b/net/grive/Makefile @@ -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 diff --git a/net/grive/distinfo b/net/grive/distinfo new file mode 100644 index 000000000000..bafac1634e5b --- /dev/null +++ b/net/grive/distinfo @@ -0,0 +1,2 @@ +SHA256 (grive-0.2.0.tar.gz) = f9b32eb9da9f2d47b6642248e1e25606e9ab2cd5b3e94730b23399250ec7f2ec +SIZE (grive-0.2.0.tar.gz) = 144474 diff --git a/net/grive/files/patch-grive_CMakeLists.txt b/net/grive/files/patch-grive_CMakeLists.txt new file mode 100644 index 000000000000..43ff928f2ca6 --- /dev/null +++ b/net/grive/files/patch-grive_CMakeLists.txt @@ -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 ) diff --git a/net/grive/files/patch-st_ctimespec b/net/grive/files/patch-st_ctimespec new file mode 100644 index 000000000000..99c6c86927f2 --- /dev/null +++ b/net/grive/files/patch-st_ctimespec @@ -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); diff --git a/net/grive/pkg-descr b/net/grive/pkg-descr new file mode 100644 index 000000000000..1068c66e9b9a --- /dev/null +++ b/net/grive/pkg-descr @@ -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/ -- cgit v1.2.3