diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2019-04-09 17:55:09 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2019-04-09 17:55:09 -0700 |
commit | 6790ee11d7e93abaac0b18e0d58e8949fba2cbb8 (patch) | |
tree | 1da703f9d4dd31d14980965c655b608c9d10b1c0 /dev-util/trace-cmd/trace-cmd-9999.ebuild | |
parent | dev-util/meson: arm64 stable (bug #682986) (diff) | |
download | gentoo-6790ee11d7e93abaac0b18e0d58e8949fba2cbb8.tar.gz gentoo-6790ee11d7e93abaac0b18e0d58e8949fba2cbb8.tar.bz2 gentoo-6790ee11d7e93abaac0b18e0d58e8949fba2cbb8.zip |
dev-util/trace-cmd: Clean up how flags are passed to the build system
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-util/trace-cmd/trace-cmd-9999.ebuild')
-rw-r--r-- | dev-util/trace-cmd/trace-cmd-9999.ebuild | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/dev-util/trace-cmd/trace-cmd-9999.ebuild b/dev-util/trace-cmd/trace-cmd-9999.ebuild index d38e2e55b21e..f9a2adfa4f0a 100644 --- a/dev-util/trace-cmd/trace-cmd-9999.ebuild +++ b/dev-util/trace-cmd/trace-cmd-9999.ebuild @@ -41,8 +41,8 @@ CONFIG_CHECK=" ~BLK_DEV_IO_TRACE" PATCHES=( - "${FILESDIR}"/${PN}-2.7-makefile.patch - "${FILESDIR}"/${PN}-2.7-soname.patch + "${FILESDIR}"/trace-cmd-2.7-makefile.patch + "${FILESDIR}"/trace-cmd-2.7-soname.patch ) pkg_setup() { @@ -51,30 +51,33 @@ pkg_setup() { } src_configure() { - MAKEOPTS+=" prefix=/usr - libdir=/usr/$(get_libdir) - CC=$(tc-getCC) - AR=$(tc-getAR) - $(usex audit '' '' 'NO_AUDIT=1')" + EMAKE_FLAGS=( + "prefix=/usr" + "libdir=/usr/$(get_libdir)" + "CC=$(tc-getCC)" + "AR=$(tc-getAR)" + $(usex audit '' '' 'NO_AUDIT=1') + $(usex udis86 '' '' 'NO_UDIS86=1') + ) if use python; then - MAKEOPTS+=" PYTHON_VERS=${EPYTHON//python/python-}" - MAKEOPTS+=" python_dir=$(python_get_sitedir)/${PN}" + EMAKE_FLAGS+=( + "PYTHON_VERS=${EPYTHON//python/python-}" + "python_dir=$(python_get_sitedir)/${PN}" + ) else - MAKEOPTS+=" NO_PYTHON=1" + EMAKE_FLAGS+=("NO_PYTHON=1") fi - - use udis86 || MAKEOPTS+=" NO_UDIS86=1" } src_compile() { - emake V=1 all_cmd libs + emake "${EMAKE_FLAGS[@]}" all_cmd libs use doc && emake doc } src_install() { - emake DESTDIR="${D}" V=1 install install_libs + emake "${EMAKE_FLAGS[@]}" DESTDIR="${D}" V=1 install install_libs use doc && emake DESTDIR="${D}" install_doc } |