summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-08-30 12:43:10 -0700
committerZac Medico <zmedico@gentoo.org>2020-08-30 12:44:10 -0700
commit9a9af3c630d780bbdcf6ced300008c6af2a078d3 (patch)
tree213fe82060deb25a6cd39a7d04729994eea5894c /dev-util/editorconfig-geany
parentapp-metrics/collectd: drop old (diff)
downloadgentoo-9a9af3c630d780bbdcf6ced300008c6af2a078d3.tar.gz
gentoo-9a9af3c630d780bbdcf6ced300008c6af2a078d3.tar.bz2
gentoo-9a9af3c630d780bbdcf6ced300008c6af2a078d3.zip
dev-util/editorconfig-geany: Fix direct cc call
Closes: https://bugs.gentoo.org/739666 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-util/editorconfig-geany')
-rw-r--r--dev-util/editorconfig-geany/editorconfig-geany-0.2.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-util/editorconfig-geany/editorconfig-geany-0.2.ebuild b/dev-util/editorconfig-geany/editorconfig-geany-0.2.ebuild
index 3e1268e041e6..cc715d422e3c 100644
--- a/dev-util/editorconfig-geany/editorconfig-geany-0.2.ebuild
+++ b/dev-util/editorconfig-geany/editorconfig-geany-0.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -23,6 +23,7 @@ S=${WORKDIR}/${PN}-${EGIT_COMMIT#v}
src_prepare() {
eapply_user
sed -e "s|^\\(EDITORCONFIG_PREFIX =\\).*|\\1 ${EPREFIX}/usr|" \
+ -e "s|\\bcc\\b|$(tc-getCC)|" \
-e "s|^\\(CFLAGS =\\).*|\\1 -fPIC $("$(tc-getPKG_CONFIG)" --cflags geany geany) ${CFLAGS}|" \
-e "s|^\\(LDFLAGS =.*\\)|\\1 ${LDFLAGS}|" \
-e "s|\`pkg-config[^\`]*\`||" \