From d833cdd812d47ba27095100e7498a9b54d55f928 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jul 2017 13:25:36 +0100 Subject: Move more functionality into bjam eclass --- eclass/bjam.eclass | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'eclass/bjam.eclass') 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 : : : \"${CXXFLAGS}\" \"${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 +} + -- cgit v1.2.3