commit:     8d2e15cf4583a187dcf6b1cb6232b6fff2207999
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Thu Oct 31 18:05:44 2024 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Thu Oct 31 18:05:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=8d2e15cf

dmd-r1.eclass: don't edos2unix source files

The edos2unix command takes a lot of time to go over all source and
documentation files. Changing the source files shouldn't change the
produced binaries and there is little to be gained by changing the html
files.

Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>

 eclass/dmd-r1.eclass | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/eclass/dmd-r1.eclass b/eclass/dmd-r1.eclass
index 49ec257..ad53677 100644
--- a/eclass/dmd-r1.eclass
+++ b/eclass/dmd-r1.eclass
@@ -133,18 +133,6 @@ dmd-r1_src_unpack() {
        mv -T "phobos-${MY_VER}" "${S}/phobos" || die
 }
 
-dmd-r1_src_prepare() {
-       einfo "Removing dos-style line endings."
-       local file
-       while read -rd '' file; do
-               edos2unix "${file}"
-       done < <( find "${WORKDIR}" \( -name '*.txt' -o -name '*.html' -o -name 
'*.d' \
-                                  -o -name '*.di' -o -name '*.ddoc' -type f \) 
\
-                                  -print0 )
-
-       default
-}
-
 dmd-r1_src_compile() {
        einfo "Building dmd build script"
        dlang_compile_bin dmd/compiler/src/build{,.d}
@@ -429,5 +417,4 @@ _dmd_foreach_abi() {
 
 fi
 
-EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile src_test 
src_install \
-                                pkg_postinst pkg_postrm
+EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install 
pkg_postinst pkg_postrm

Reply via email to