Updated pcb2gcode to compile w/ latest boost/gcc

This commit is contained in:
layman
2021-03-25 15:42:58 +01:00
parent 3158f5c12a
commit 97c5fdbb53
2 changed files with 15 additions and 3 deletions
@@ -24,18 +24,30 @@ LICENSE="GPL-2"
SLOT="0"
IUSE=""
RDEPEND="sci-electronics/gerbv"
RDEPEND=">=sci-electronics/gerbv-2.1.0"
DEPEND="dev-cpp/gtkmm:2.4
dev-libs/boost
${RDEPEND}"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf -i
eautoreconf
fi
default
}
src_configure() {
default
# Workaround for GCC 10.2 / Boost 1.75
sed -i "${S}"/Makefile \
-e "/BOOST_CPPFLAGS_SYSTEM =/d" \
-e "/GEOS_CFLAGS_SYSTEM =/d" || die
}
src_install() {
cd "${BUILD_DIR}"
exeinto /usr/bin