# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # bear # bear/pkg-descr # bear/pkg-plist # bear/Makefile # bear/distinfo # echo c - bear mkdir -p bear > /dev/null 2>&1 echo x - bear/pkg-descr sed 's/^X//' >bear/pkg-descr << '5799622933405a8bd23eb8915a0fc053' XBear is a tool that generates a compilation database for clang tooling. The XJSON compilation database is used in the clang project to provide information Xon how a single compilation unit is processed. With this, it is easy to re-run Xthe compilation with alternate programs. One way to get a compilation database Xis to use cmake as the build tool. Passing -DCMAKE_EXPORT_COMPILE_COMMANDS=ON Xto cmake generates the compile_commands.json file into the current directory. XFor non-cmake projects, Bear generates the JSON file during the build process. XThe concept behind Bear is: to execute the original build command and intercept Xthe exec calls issued by the build tool. To achieve that, Bear uses the XLD_PRELOAD or DYLD_INSERT_LIBRARIES mechanisms provided by the dynamic linker. X XWWW: https://github.com/rizsotto/Bear 5799622933405a8bd23eb8915a0fc053 echo x - bear/pkg-plist sed 's/^X//' >bear/pkg-plist << '16bb3e3305327595b21d363fc185a58e' Xbin/bear Xlib/libear.so Xman/man1/bear.1.gz X%%PORTDOCS%%%%DOCSDIR%%/README.md 16bb3e3305327595b21d363fc185a58e echo x - bear/Makefile sed 's/^X//' >bear/Makefile << '4fdb13c4b0aebe9f8e2aa1da7fa8457a' X# Created by: Jov X# $FreeBSD$ X XPORTNAME= bear XPORTVERSION= 2.3.6 XCATEGORIES= devel X XMAINTAINER= amutu@amutu.com XCOMMENT= Tool that generates a compilation database for clang tooling X XLICENSE= GPLv3 X XUSE_GITHUB= yes XGH_ACCOUNT= rizsotto XGH_PROJECT= Bear X XUSES= cmake shebangfix python:2.7+ XUSE_LDCONFIG= yes X XSHEBANG_FILES= bear/main.py.in X XOPTIONS_DEFINE= DOCS X Xpost-patch: X ${REINPLACE_CMD} -e '/install(FILES COPYING/d' \ X -e '/{CMAKE_INSTALL_DOCDIR}/d' \ X ${WRKSRC}/CMakeLists.txt X Xpost-install-DOCS-on: X ${MKDIR} ${STAGEDIR}${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} X X.include 4fdb13c4b0aebe9f8e2aa1da7fa8457a echo x - bear/distinfo sed 's/^X//' >bear/distinfo << 'bd8836fdb5e411dd37382d8ea5e42532' XTIMESTAMP = 1499241718 XSHA256 (rizsotto-Bear-2.3.6_GH0.tar.gz) = 94ceb407d4058b22563bc26b5a4d0d1d10df83987320e60e455e8a6a5616a75d XSIZE (rizsotto-Bear-2.3.6_GH0.tar.gz) = 41275 bd8836fdb5e411dd37382d8ea5e42532 exit