ltprune.eclass: Split prune_libtool_files out of eutils
authorMichał Górny <mgorny@gentoo.org>
Sun, 12 Mar 2017 10:20:36 +0000 (11:20 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 18 Mar 2017 07:33:18 +0000 (08:33 +0100)
commite625e0a8cf6111d88c2be8eb4505a4371bcdc010
treea7672cdd8defb2a25bae67ec513410286d5deb8f
parent8400f95b08817f1755b5fb8a2443f170bbfc058c
ltprune.eclass: Split prune_libtool_files out of eutils

Move the prune_libtool_files into a dedicated ltprune.eclass.
The function is quite complex and depends on toolchain-funcs. It has
a separate maintainer, is not useful to non-autotools ebuilds, and even
there it is frequently replaced by the simpler 'find ... -delete' call.

The new eclass is implicitly inherited by eutils in EAPI 6 and older
in order to preserve compatibility with existing ebuilds. However, all
ebuilds should switch to inheriting it directly.

The split has been suggested by Ulrich Müller.
eclass/eutils.eclass
eclass/ltprune.eclass [new file with mode: 0644]