From owner-svn-ports-all@freebsd.org Sun Jul 23 08:05:02 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4B50C7F8D7; Sun, 23 Jul 2017 08:05:02 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C93B7C61E; Sun, 23 Jul 2017 08:05:02 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6N851Nf085467; Sun, 23 Jul 2017 08:05:01 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6N851Sj085460; Sun, 23 Jul 2017 08:05:01 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201707230805.v6N851Sj085460@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sun, 23 Jul 2017 08:05:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446457 - in head: . devel devel/bear X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head: . devel devel/bear X-SVN-Commit-Revision: 446457 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2017 08:05:02 -0000 Author: pi Date: Sun Jul 23 08:05:00 2017 New Revision: 446457 URL: https://svnweb.freebsd.org/changeset/ports/446457 Log: New port: devel/bear Bear is a tool that generates a compilation database for clang tooling. The JSON compilation database is used in the clang project to provide information on how a single compilation unit is processed. With this, it is easy to re-run the compilation with alternate programs. One way to get a compilation database is to use cmake as the build tool. Passing -DCMAKE_EXPORT_COMPILE_COMMANDS=ON to cmake generates the compile_commands.json file into the current directory. For non-cmake projects, Bear generates the JSON file during the build process. The concept behind Bear is: to execute the original build command and intercept the exec calls issued by the build tool. To achieve that, Bear uses the LD_PRELOAD or DYLD_INSERT_LIBRARIES mechanisms provided by the dynamic linker. WWW: https://github.com/rizsotto/Bear PR: 220475 Submitted by: Jov Added: head/devel/bear/ head/devel/bear/Makefile (contents, props changed) head/devel/bear/distinfo (contents, props changed) head/devel/bear/pkg-descr (contents, props changed) head/devel/bear/pkg-plist (contents, props changed) Modified: head/MOVED head/devel/Makefile Modified: head/MOVED ============================================================================== --- head/MOVED Sun Jul 23 07:29:06 2017 (r446456) +++ head/MOVED Sun Jul 23 08:05:00 2017 (r446457) @@ -7602,7 +7602,6 @@ devel/erlang-mustache|devel/erlang-bbmustache|2015-06- dns/maradns1|dns/maradns|2015-06-23|Has expired: MaraDNS 1 end-of-life: June 21, 2015, use dns/maradns net/py-soappy-devel||2015-06-25|Please use net/py-soappy instead. It's fresher than -devel devel/armv6-freebsd10.0-xdev||2015-06-27|Not usable for the purpose it has been intended for -devel/bear|devel/erlang-bear|2015-06-27|Renamed with erlang- prefix devel/common_lib|devel/erlang-common_lib|2015-06-27|Renamed with erlang- prefix devel/cowlib|devel/erlang-cowlib|2015-06-27|Renamed with erlang- prefix devel/cuttlefish|devel/erlang-cuttlefish|2015-06-27|Renamed with erlang- prefix Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Jul 23 07:29:06 2017 (r446456) +++ head/devel/Makefile Sun Jul 23 08:05:00 2017 (r446457) @@ -175,6 +175,7 @@ SUBDIR += bbfreeze-loader SUBDIR += bcc SUBDIR += bcpp + SUBDIR += bear SUBDIR += beautifyphp SUBDIR += bennugd-core SUBDIR += bennugd-modules Added: head/devel/bear/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bear/Makefile Sun Jul 23 08:05:00 2017 (r446457) @@ -0,0 +1,34 @@ +# Created by: Jov +# $FreeBSD$ + +PORTNAME= bear +PORTVERSION= 2.3.6 +CATEGORIES= devel +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= amutu@amutu.com +COMMENT= Tool that generates a compilation database for clang tooling + +LICENSE= GPLv3 + +USE_GITHUB= yes +GH_ACCOUNT= rizsotto +GH_PROJECT= Bear + +USES= cmake shebangfix python:2.7+ +USE_LDCONFIG= yes + +SHEBANG_FILES= bear/main.py.in + +OPTIONS_DEFINE= DOCS + +post-patch: + ${REINPLACE_CMD} -e '/install(FILES COPYING/d' \ + -e '/{CMAKE_INSTALL_DOCDIR}/d' \ + ${WRKSRC}/CMakeLists.txt + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include Added: head/devel/bear/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bear/distinfo Sun Jul 23 08:05:00 2017 (r446457) @@ -0,0 +1,3 @@ +TIMESTAMP = 1499241718 +SHA256 (rizsotto-Bear-2.3.6_GH0.tar.gz) = 94ceb407d4058b22563bc26b5a4d0d1d10df83987320e60e455e8a6a5616a75d +SIZE (rizsotto-Bear-2.3.6_GH0.tar.gz) = 41275 Added: head/devel/bear/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bear/pkg-descr Sun Jul 23 08:05:00 2017 (r446457) @@ -0,0 +1,16 @@ +Bear is a tool that generates a compilation database for clang +tooling. The JSON compilation database is used in the clang project +to provide information on how a single compilation unit is processed. +With this, it is easy to re-run the compilation with alternate +programs. One way to get a compilation database is to use cmake as +the build tool. Passing -DCMAKE_EXPORT_COMPILE_COMMANDS=ON to cmake +generates the compile_commands.json file into the current directory. +For non-cmake projects, Bear generates the JSON file during the +build process. + +The concept behind Bear is: to execute the original build command +and intercept the exec calls issued by the build tool. To achieve +that, Bear uses the LD_PRELOAD or DYLD_INSERT_LIBRARIES mechanisms +provided by the dynamic linker. + +WWW: https://github.com/rizsotto/Bear Added: head/devel/bear/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bear/pkg-plist Sun Jul 23 08:05:00 2017 (r446457) @@ -0,0 +1,4 @@ +bin/bear +lib/libear.so +man/man1/bear.1.gz +%%PORTDOCS%%%%DOCSDIR%%/README.md