diff options
-rw-r--r-- | eclass/bash-completion-r1.eclass | 25 | ||||
-rw-r--r-- | eclass/systemd.eclass | 43 |
2 files changed, 0 insertions, 68 deletions
diff --git a/eclass/bash-completion-r1.eclass b/eclass/bash-completion-r1.eclass deleted file mode 100644 index 41a50065..00000000 --- a/eclass/bash-completion-r1.eclass +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Temporary hack until gentoo fixes EAPI 6 support for bash-completion-r1.eclass - -inherit toolchain-funcs - -_bash-completion-r1_get_bashdir() { - if $(tc-getPKG_CONFIG) --exists bash-completion &>/dev/null; then - local path="$($(tc-getPKG_CONFIG) --variable=$1 bash-completion)" - echo "${path#${EPREFIX}}" - else - echo $2 - fi -} - -_bash-completion-r1_get_bashcompdir() { - _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion/completions -} - -dobashcomp() ( - insinto "$(_bash-completion-r1_get_bashcompdir)" - doins "${@}" -) diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass deleted file mode 100644 index 36806a08..00000000 --- a/eclass/systemd.eclass +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Temporary hack until gentoo fixes EAPI 6 support for systemd.eclass - -inherit toolchain-funcs - -DEPEND="virtual/pkgconfig" - -_systemd_get_unitdir() { - if $(tc-getPKG_CONFIG) --exists systemd; then - echo "$($(tc-getPKG_CONFIG) --variable=systemdsystemunitdir systemd)" - else - echo /usr/lib/systemd/system - fi -} - -systemd_get_unitdir() { - has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= - echo "${EPREFIX}$(_systemd_get_unitdir)" -} - -systemd_dounit() ( - insinto "$(_systemd_get_unitdir)" - doins "${@}" -) - -systemd_dotmpfilesd() { - for f; do - [[ ${f} == *.conf ]] \ - || die 'tmpfiles.d files need to have .conf suffix.' - done - ( - insinto /usr/lib/tmpfiles.d/ - doins "${@}" - ) -} - -systemd_with_unitdir() { - local optname=${1:-systemdsystemunitdir} - echo --with-${optname}="$(systemd_get_unitdir)" -} |