From: Martin Mokrejs Date: Sat, 21 Apr 2018 08:12:23 +0000 (+0200) Subject: sci-matchematics/glpk: respect EPREFIX X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=424ab08f0e139226daea9ac2834555b65544f84f;p=gentoo.git sci-matchematics/glpk: respect EPREFIX Prepend EPREFIX in front of hardcoded include path. All modified ebuilds emerged successfully on a Gentoo::RAP host. Bug: https://bugs.gentoo.org/597620 Closes: https://github.com/gentoo/gentoo/pull/7238 --- diff --git a/sci-mathematics/glpk/glpk-4.63.ebuild b/sci-mathematics/glpk/glpk-4.63.ebuild index 4721b1832852..b32475f03a75 100644 --- a/sci-mathematics/glpk/glpk-4.63.ebuild +++ b/sci-mathematics/glpk/glpk-4.63.ebuild @@ -29,6 +29,7 @@ PATCHES=( ) src_prepare() { + sed -e 's#CPPFLAGS="-I/usr/include/mysql#CPPFLAGS="-I'"${EPREFIX}"'/usr/include/mysql#' -i configure.ac || die use odbc && [[ -z $(type -P odbc_config) ]] && \ append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)