|
Lines 19-27
Link Here
|
| 19 |
LICENSE="UoI-NCSA" |
19 |
LICENSE="UoI-NCSA" |
| 20 |
SLOT="0" |
20 |
SLOT="0" |
| 21 |
KEYWORDS="~amd64 ~arm ~x86 ~amd64-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
21 |
KEYWORDS="~amd64 ~arm ~x86 ~amd64-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
| 22 |
IUSE="debug kernel_FreeBSD multitarget +static-analyzer test" |
22 |
IUSE="debug +doc kernel_FreeBSD multitarget +python static-analyzer test" |
| 23 |
|
23 |
|
| 24 |
DEPEND="static-analyzer? ( dev-lang/perl )" |
24 |
DEPEND="static-analyzer? ( dev-lang/perl ) |
|
|
25 |
doc? ( app-doc/doxygen )" |
| 25 |
RDEPEND="~sys-devel/llvm-${PV}[multitarget=]" |
26 |
RDEPEND="~sys-devel/llvm-${PV}[multitarget=]" |
| 26 |
|
27 |
|
| 27 |
S=${WORKDIR}/llvm-${PV}.src |
28 |
S=${WORKDIR}/llvm-${PV}.src |
|
Lines 125-131
Link Here
|
| 125 |
} |
126 |
} |
| 126 |
|
127 |
|
| 127 |
src_compile() { |
128 |
src_compile() { |
| 128 |
emake VERBOSE=1 KEEP_SYMBOLS=1 REQUIRES_RTTI=1 clang-only |
129 |
emake KEEP_SYMBOLS=1 REQUIRES_RTTI=1 clang-only |
| 129 |
} |
130 |
} |
| 130 |
|
131 |
|
| 131 |
src_test() { |
132 |
src_test() { |
|
Lines 148-153
Link Here
|
| 148 |
src_install() { |
149 |
src_install() { |
| 149 |
cd "${S}"/tools/clang || die "cd clang failed" |
150 |
cd "${S}"/tools/clang || die "cd clang failed" |
| 150 |
emake KEEP_SYMBOLS=1 DESTDIR="${D}" install |
151 |
emake KEEP_SYMBOLS=1 DESTDIR="${D}" install |
|
|
152 |
# ATTENTION There is some BUG in a clang Makefiles: doxygened htmls won't |
| 153 |
# install w/ `make install`... |
| 154 |
if use doc; then |
| 155 |
cd "${S}"/tools/clang/docs || die "cd clang/docs failed" |
| 156 |
emake ENABLE_DOXYGEN=1 BUILD_FOR_WEBSITE=1 DESTDIR="${D}" install-doxygen |
| 157 |
cd .. |
| 158 |
# TODO `make install-doxygen` in clang is UGLY! Need to clean *.md5 and *.map |
| 159 |
# files from installed API documentation! |
| 160 |
fi |
| 151 |
|
161 |
|
| 152 |
if use static-analyzer ; then |
162 |
if use static-analyzer ; then |
| 153 |
dobin tools/scan-build/ccc-analyzer |
163 |
dobin tools/scan-build/ccc-analyzer |
|
Lines 168-173
Link Here
|
| 168 |
python_execute_function install-scan-view |
178 |
python_execute_function install-scan-view |
| 169 |
fi |
179 |
fi |
| 170 |
|
180 |
|
|
|
181 |
if use python; then |
| 182 |
cd ${S}/tools/clang/bindings/python/clang |
| 183 |
install-cindex() { |
| 184 |
insinto "$(python_get_sitedir)"/clang |
| 185 |
doins cindex.py __init__.py |
| 186 |
} |
| 187 |
python_execute_function install-cindex |
| 188 |
fi |
| 189 |
|
| 171 |
# Fix install_names on Darwin. The build system is too complicated |
190 |
# Fix install_names on Darwin. The build system is too complicated |
| 172 |
# to just fix this, so we correct it post-install |
191 |
# to just fix this, so we correct it post-install |
| 173 |
if [[ ${CHOST} == *-darwin* ]] ; then |
192 |
if [[ ${CHOST} == *-darwin* ]] ; then |