summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2015-12-02 20:02:02 +0100
committerMartin Väth <martin@mvath.de>2015-12-02 20:02:02 +0100
commite6a9c3b1753b45305078896d62e0a32027e4197b (patch)
tree071687592aa3ea2f8a0a8bb41eba721c5b101764 /eclass
parentapp-shells/zshrc-mv: Version bump (diff)
downloadmv-e6a9c3b1753b45305078896d62e0a32027e4197b.tar.gz
mv-e6a9c3b1753b45305078896d62e0a32027e4197b.tar.bz2
mv-e6a9c3b1753b45305078896d62e0a32027e4197b.zip
Drop temporary eclass hacks
Diffstat (limited to 'eclass')
-rw-r--r--eclass/bash-completion-r1.eclass25
-rw-r--r--eclass/systemd.eclass43
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)"
-}