Created attachment 391546 [details] bear-1.4.3.ebuild There're packages in portage (mainly vim/emacs plugins) that makes C/C++ development easier by using libclang for autocompletion/code navigation etc. All this plugins require correct compilation flags for sources. One of widely accepted formats for mapping source files to compilation flags is llvm compile database. Some build tools (like cmake) can generate llvm compilation database by themselves, but autotools/handwritten makefiles cannot. dev-util/bear can ease life of developer by intercepting compiler commands (via LD_PRELOAD) and store them in compilation database. Attached ebuild can also be used to compile from github repository (simply change name to bear-9999.ebuild).
Thx, I just wanted to open a request, too. Though there is an issue with you ebuild: It does not build for non-live version, because it extracts to ${WORKDIR}/Bear-${PV}, but portage expects it to be "bear-${PV}". MY_PN="${PN/b/B}" S="${WORKDIR}/${MY_PN}-${PV}" solves the issue. Two small nags: cmake-utils already handles the cmake-dep. And you inherit from multilib but don't use it. It would be really great to get bear into portage. I already used it for many projects to quickly get to hack on them (vim+youcompleteme).
Version 2.0.1 is available now. Please add this ebuild soon.
Created attachment 395848 [details] Fixed error in bear-1.4.3 ebuild Fixed error in ebuild as Franz Fellner suggested
Created attachment 395850 [details] bear-2.0.1.ebuild
The 2.0.1-ebuild is not complete yet. The bear-executable was rewritten in python, so we need at least a python-DEP. Looking at the description of the different python eclasses [1] I think we should use python-single-r1 [2]: "If your package installs Python scripts or modules, [...] use python-single-r1." I can do the changes, probably this evening. [1] http://wiki.gentoo.org/wiki/Project:Python/Eclasses [2] http://wiki.gentoo.org/wiki/Project:Python/python-single-r1
Created attachment 397770 [details] bear-2.0.2.ebuild Sry, was a long evening... * Update to bear-2.0.2 * make use of python-single-r1.eclass * cleaned up deps * minor general polishing Also made sure it works as live ebuild.
bear-2.0.3 was released april 4. There were only bugfixes, bear-2.0.2.ebuild can simply be copied over to bear-2.0.3.ebuild.
Is there any progress? I would find it very useful!
added in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=097ae2bc2410e259bc95344bfb8bacfb0c20720d