Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 2015 22:24:47 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396445 - in head/devel/llvm37: . files
Message-ID:  <201509082224.t88MOlJh028300@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Tue Sep  8 22:24:46 2015
New Revision: 396445
URL: https://svnweb.freebsd.org/changeset/ports/396445

Log:
  Make clang-format.py look for clang-format37 rather than clang-format in
  $PATH.

Added:
  head/devel/llvm37/files/clang-patch-tools_clang_tools_clang-format_clang-format.py   (contents, props changed)
Modified:
  head/devel/llvm37/Makefile

Modified: head/devel/llvm37/Makefile
==============================================================================
--- head/devel/llvm37/Makefile	Tue Sep  8 22:23:11 2015	(r396444)
+++ head/devel/llvm37/Makefile	Tue Sep  8 22:24:46 2015	(r396445)
@@ -2,7 +2,7 @@
 
 PORTNAME=	llvm
 DISTVERSION=	3.7.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel lang
 MASTER_SITES=	http://llvm.org/${PRE_}releases/${LLVM_RELEASE}/${RCDIR}
 DISTNAME=	${PORTNAME}-${DISTVERSION}.src
@@ -40,7 +40,8 @@ OPTIONS_SUB=	yes
 CLANG_DESC=	Build clang
 CLANG_EXTRA_PATCHES= \
 		${PATCHDIR}/clang-patch-fformat_extensions.diff \
-		${PATCHDIR}/clang-patch-tools_clang_lib_Headers_CMakeLists.txt
+		${PATCHDIR}/clang-patch-tools_clang_lib_Headers_CMakeLists.txt \
+		${PATCHDIR}/clang-patch-tools_clang_tools_clang-format_clang-format.py
 CLANG_CONFLICTS_INSTALL=	clang-devel-3.[1234567]*
 CLANG_DISTFILES=	cfe-${DISTVERSION}.src${EXTRACT_SUFX}
 CLANG_CMAKE_ON=		-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp

Added: head/devel/llvm37/files/clang-patch-tools_clang_tools_clang-format_clang-format.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/llvm37/files/clang-patch-tools_clang_tools_clang-format_clang-format.py	Tue Sep  8 22:24:46 2015	(r396445)
@@ -0,0 +1,11 @@
+--- tools/clang/tools/clang-format/clang-format.py.orig	2015-09-08 20:44:00 UTC
++++ tools/clang/tools/clang-format/clang-format.py
+@@ -34,7 +34,7 @@ import vim
+ 
+ # set g:clang_format_path to the path to clang-format if it is not on the path
+ # Change this to the full path if clang-format is not on the path.
+-binary = 'clang-format'
++binary = 'clang-format37'
+ if vim.eval('exists("g:clang_format_path")') == "1":
+   binary = vim.eval('g:clang_format_path')
+ 



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