diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-04-11 18:39:45 +0200 |
---|---|---|
committer | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-04-11 18:39:45 +0200 |
commit | c4d308a02e7d8d5a90cb8e6fb8d09109ade658cd (patch) | |
tree | 48ca8062b323d9b8219d3c16f8d7245845dd41ae /eclass | |
parent | clone eclasses for USE=prefix-chain: libtool, python-utils-r1 (diff) | |
download | prefix-c4d308a02e7d8d5a90cb8e6fb8d09109ade658cd.tar.gz prefix-c4d308a02e7d8d5a90cb8e6fb8d09109ade658cd.tar.bz2 prefix-c4d308a02e7d8d5a90cb8e6fb8d09109ade658cd.zip |
libtool.eclass (libtool_elt_patch_dir): support USE=prefix-chain
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/libtool.eclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 576abd3a5f..7f09f3760c 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -19,6 +19,16 @@ _LIBTOOL_ECLASS=1 DEPEND=">=app-portage/elt-patches-20170317" libtool_elt_patch_dir() { + if use prefix-chain; then + local parent parents + IFS=: eval 'parents=(${PORTAGE_READONLY_EPREFIXES})' + for parent in "${parents[@]}"; do + if [[ -d ${parent}/usr/share/elt-patches ]]; then + echo "${parent}/usr/share/elt-patches" + return 0 + fi + done + fi echo "${EPREFIX}/usr/share/elt-patches" } |