sys-apps/file: refactor cross-compile logic
authorMike Gilbert <floppym@gentoo.org>
Sat, 4 Jan 2020 18:07:12 +0000 (13:07 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sat, 4 Jan 2020 18:08:29 +0000 (13:08 -0500)
commit30b0ca3905ccd1bff0a5f1641adf2226d57f23b1
tree80a70fa2e669781e7fb60f9017ecdcdc99e78e4a
parente12749dc1604ab9b1990d846cc71d8e525765d90
sys-apps/file: refactor cross-compile logic

Add build_src_configure and need_build_file helper functions.
Pass --disable-{bzlib,xzlib,zlib} to configure in build_src_configure.
Use tc-env_build helper in build_src_configure.
Convert "ROOT=/ has_version" to PMS-compliant "has_version -b".
Make ECONF_SOURCE and PATH local variables.

Closes: https://bugs.gentoo.org/704776
Package-Manager: Portage-2.3.84_p2, Repoman-2.3.20_p24
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/file/file-5.38.ebuild
sys-apps/file/file-9999.ebuild