Skip to content

Commit

Permalink
mate-extra/mate-system-monitor: fix quoting for pkg-config
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/756238
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
floppym committed Dec 14, 2020
1 parent 46b2d4e commit 59f1666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=6

inherit mate
inherit mate toolchain-funcs

if [[ ${PV} != 9999 ]]; then
KEYWORDS="amd64 ~arm ~arm64 x86"
Expand Down Expand Up @@ -51,9 +51,10 @@ src_configure() {
if use elogind || use systemd; then
myconf+=( --enable-systemd )
if use elogind; then
local pkgconfig="$(tc-getPKG_CONFIG)"
myconf+=(
SYSTEMD_CFLAGS=`pkg-config --cflags "libelogind" 2>/dev/null`
SYSTEMD_LIBS=`pkg-config --libs "libelogind" 2>/dev/null`
SYSTEMD_CFLAGS="$(${pkgconfig} --cflags "libelogind")"
SYSTEMD_LIBS="$(${pkgconfig} --libs "libelogind")"
)
fi
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=6

inherit mate
inherit mate toolchain-funcs

if [[ ${PV} != 9999 ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
Expand Down Expand Up @@ -51,9 +51,10 @@ src_configure() {
if use elogind || use systemd; then
myconf+=( --enable-systemd )
if use elogind; then
local pkgconfig="$(tc-getPKG_CONFIG)"
myconf+=(
SYSTEMD_CFLAGS=`pkg-config --cflags "libelogind" 2>/dev/null`
SYSTEMD_LIBS=`pkg-config --libs "libelogind" 2>/dev/null`
SYSTEMD_CFLAGS="$(${pkgconfig} --cflags "libelogind")"
SYSTEMD_LIBS="$(${pkgconfig} --libs "libelogind")"
)
fi
else
Expand Down

0 comments on commit 59f1666

Please sign in to comment.