summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-09-09 17:16:27 +0200
committerUlrich Müller <ulm@gentoo.org>2020-09-12 18:02:58 +0200
commit80f9e1b4058fddc6df645f36c06367a676a11cbe (patch)
tree00c198a310f848b2c20de64b29ea82fc9ff05b0c /eclass/eutils.eclass
parenteutils.eclass: Specify supported EAPIs. (diff)
downloadgentoo-80f9e1b4058fddc6df645f36c06367a676a11cbe.tar.gz
gentoo-80f9e1b4058fddc6df645f36c06367a676a11cbe.tar.bz2
gentoo-80f9e1b4058fddc6df645f36c06367a676a11cbe.zip
edos2unix.eclass: New eclass, split off from eutils.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass18
1 files changed, 3 insertions, 15 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index f74074fb4f16..3b3e328ba30d 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -21,10 +21,10 @@ _EUTILS_ECLASS=1
# implicitly inherited (now split) eclasses
case ${EAPI:-0} in
0|1|2|3|4|5|6)
- inherit desktop epatch estack ltprune multilib preserve-libs \
- toolchain-funcs vcs-clean
+ inherit desktop edos2unix epatch estack ltprune multilib \
+ preserve-libs toolchain-funcs vcs-clean
;;
- 7) ;;
+ 7) inherit edos2unix ;;
*) die "${ECLASS} is banned in EAPI ${EAPI}" ;;
esac
@@ -63,18 +63,6 @@ emktemp() {
fi
}
-# @FUNCTION: edos2unix
-# @USAGE: <file> [more files ...]
-# @DESCRIPTION:
-# A handy replacement for dos2unix, recode, fixdos, etc... This allows you
-# to remove all of these text utilities from DEPEND variables because this
-# is a script based solution. Just give it a list of files to convert and
-# they will all be changed from the DOS CRLF format to the UNIX LF format.
-edos2unix() {
- [[ $# -eq 0 ]] && return 0
- sed -i 's/\r$//' -- "$@" || die
-}
-
# @FUNCTION: strip-linguas
# @USAGE: [<allow LINGUAS>|<-i|-u> <directories of .po files>]
# @DESCRIPTION: