--- clang-3.2.ebuild 2012-12-21 13:18:47.000000000 +0400 +++ clang-3.2-r1.ebuild 2012-12-22 07:53:34.000000000 +0400 @@ -19,10 +19,10 @@ LICENSE="UoI-NCSA" SLOT="0" KEYWORDS="~amd64 ~arm ~x86 ~amd64-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="debug kernel_FreeBSD multitarget +static-analyzer test" +IUSE="c++0x debug doc kernel_FreeBSD multitarget python +static-analyzer test" DEPEND="static-analyzer? ( dev-lang/perl )" -RDEPEND="~sys-devel/llvm-${PV}[multitarget=]" +RDEPEND="~sys-devel/llvm-${PV}[multitarget=,c++0x=]" S=${WORKDIR}/llvm-${PV}.src @@ -95,7 +95,9 @@ --with-optimize-option= $(use_enable !debug optimized) $(use_enable debug assertions) - $(use_enable debug expensive-checks)" + $(use_enable debug expensive-checks) + $(use_enable doc doxygen) + $(use_enable c++0x cxx11)" # Setup the search path to include the Prefix includes if use prefix ; then @@ -159,6 +161,15 @@ python_execute_function install-scan-view fi + if use python; then + cd ${S}/tools/clang/bindings/python/clang + install-cindex() { + insinto "$(python_get_sitedir)"/clang + doins cindex.py enumerations.py __init__.py + } + python_execute_function install-cindex + fi + # AddressSanitizer symbolizer (currently separate) dobin "${S}"/projects/compiler-rt/lib/asan/scripts/asan_symbolize.py @@ -187,6 +198,11 @@ # Remove unnecessary headers on FreeBSD, bug #417171 use kernel_FreeBSD && rm "${ED}"usr/$(get_libdir)/clang/${PV}/include/{arm_neon,std,float,iso,limits,tgmath,varargs}*.h + + # Remove useless *.md5 and *.map files from doxygen documentation + if use doc ; then + cd ${D}/usr/share/doc/${PF}/html/doxygen && rm *.md5 *.map + fi } pkg_postinst() {