diff options
Diffstat (limited to 'eclass/bjam.eclass')
-rw-r--r-- | eclass/bjam.eclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/eclass/bjam.eclass b/eclass/bjam.eclass index f2007d9..6d8d662 100644 --- a/eclass/bjam.eclass +++ b/eclass/bjam.eclass @@ -8,13 +8,32 @@ # @BLURB: # @DESCRIPTION: +inherit eutils + src_prepare() { ebegin "Setting portage CXX and LD flags" sed -i "s|^using gcc .*|using gcc : : : <compileflags>\"${CXXFLAGS}\" <linkflags>\"${LDFLAGS}\" ;|" ${S}/Jamroot.jam eend $? } +src_test() { + bjambuild || die +} + bjambuild() { setarch $(uname -m) -RL b2 ${BJAMOPTS} variant=release -q $@ } +doxygenbuild() { + mkdir -p ${D}/usr/share/man + find ${S} -name Doxyfile -printf '%h %p\n' | while read d p ; do + ebegin "Building documentation in $d" + sed -i 's/^\(GENERATE_\w*\).*/\1 = NO/' "$p" + echo OUTPUT_DIRECTORY = ${D}/usr/share >> "$p" + echo PROJECT_NUMBER = ${PV} >> "$p" + echo GENERATE_MAN = YES >> "$p" + ( cd "$d" && doxygen ) + eend 0 + done +} + |