From owner-svn-ports-head@FreeBSD.ORG Tue Jul 30 07:42:03 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DB7D3311; Tue, 30 Jul 2013 07:42:03 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C937A295F; Tue, 30 Jul 2013 07:42:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6U7g3DS025410; Tue, 30 Jul 2013 07:42:03 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6U7g3r0025409; Tue, 30 Jul 2013 07:42:03 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201307300742.r6U7g3r0025409@svn.freebsd.org> From: Alexey Dokuchaev Date: Tue, 30 Jul 2013 07:42:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r323947 - head/net/grive 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: Tue, 30 Jul 2013 07:42:03 -0000 Author: danfe Date: Tue Jul 30 07:42:03 2013 New Revision: 323947 URL: http://svnweb.freebsd.org/changeset/ports/323947 Log: - Contrary to what comment says, we do not need clang or GCC 4.6+ to build, we just need to patch one source file a bit - Remove opportunistic MAKE_JOBS_UNSAFE, let us see the failure log first - Miscellaneous cleanups (fix header, drop MASTER_SITES and FETCH_ARGS) Modified: head/net/grive/Makefile Modified: head/net/grive/Makefile ============================================================================== --- head/net/grive/Makefile Tue Jul 30 07:40:14 2013 (r323946) +++ head/net/grive/Makefile Tue Jul 30 07:42:03 2013 (r323947) @@ -1,10 +1,9 @@ -# Created by: ktsin@acm.org +# Created by: Key-Teck SIN # $FreeBSD$ PORTNAME= grive PORTVERSION= 0.2.0 CATEGORIES= net -MASTER_SITES= GH MAINTAINER= ktsin@acm.org COMMENT= Open source client for Google Drive @@ -27,35 +26,14 @@ 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 +# Allow to build with GCC 4.2 +post-patch: + @${REINPLACE_CMD} -e 's,log::,gr::&,g' ${WRKSRC}/grive/src/main.cc post-install: @${STRIP_CMD} ${PREFIX}/bin/grive -.include +.include