From b81dc09a1e655fb28b8ac60a5807377fff9139c6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 18 May 2017 21:33:48 +0100 Subject: Introduce the bjam.eclass #aboutTime and do some general updates on the latest netfs ebuild --- eclass/bjam.eclass | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 eclass/bjam.eclass (limited to 'eclass/bjam.eclass') diff --git a/eclass/bjam.eclass b/eclass/bjam.eclass new file mode 100644 index 0000000..f2007d9 --- /dev/null +++ b/eclass/bjam.eclass @@ -0,0 +1,20 @@ +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: bjam.eclass +# @MAINTAINER: +# randomdan +# @AUTHOR: +# randomdan +# @BLURB: +# @DESCRIPTION: + +src_prepare() { + ebegin "Setting portage CXX and LD flags" + sed -i "s|^using gcc .*|using gcc : : : \"${CXXFLAGS}\" \"${LDFLAGS}\" ;|" ${S}/Jamroot.jam + eend $? +} + +bjambuild() { + setarch $(uname -m) -RL b2 ${BJAMOPTS} variant=release -q $@ +} + -- cgit v1.2.3