-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
# Fix portability issues.
sed -i \
- -e 's:echo -n:printf %s:' \
+ -e 's/echo -n/printf %s/' \
configure || die
default
}
./configure --prefix=/usr || die
sed -i \
- -e "s:-pipe -O2:${CFLAGS}:" \
- -e "s:^\(LDFLAGS=\).*:\1${LDFLAGS}:" \
- -e "s:-Wpointer-arith::" \
+ -e "s/-pipe -O2/${CFLAGS}/" \
+ -e "s/^\(LDFLAGS=\).*/\1${LDFLAGS}/" \
+ -e "s/-Wpointer-arith//" \
MCONFIG || die
}