pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Tolerate uppercase .TTF (for uralic-ttf) and do a c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da752db07aa1
branches:  trunk
changeset: 394146:da752db07aa1
user:      maya <maya%pkgsrc.org@localhost>
date:      Thu Apr 04 10:27:35 2019 +0000

description:
Tolerate uppercase .TTF (for uralic-ttf) and do a case-insensitive compare
use find -print | xargs to avoid hitting find limits.

Thanks leot for lots of help figuring out why some packages were failing.

diffstat:

 mk/fonts.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 4385dbdc2961 -r da752db07aa1 mk/fonts.mk
--- a/mk/fonts.mk       Thu Apr 04 10:08:45 2019 +0000
+++ b/mk/fonts.mk       Thu Apr 04 10:27:35 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: fonts.mk,v 1.12 2019/04/04 07:34:11 maya Exp $
+# $NetBSD: fonts.mk,v 1.13 2019/04/04 10:27:35 maya Exp $
 #
 # Install .otf and .ttf font files.
 #
@@ -20,8 +20,8 @@
 
 install-fonts:
        ${STEP_MSG} "Installing all .otf and .ttf files from " ${WRKSRC}
-       find ${WRKSRC} -name '*.ttf' \
-           -exec ${INSTALL_DATA} "{}" ${DESTDIR}${TTF_FONTS_DIR} ";"
-       find ${WRKSRC} -name '*.otf' \
-           -exec ${INSTALL_DATA} "{}" ${DESTDIR}${OTF_FONTS_DIR} ";"
+       ${FIND} ${WRKSRC} -iname '*.ttf' -print | \
+           ${XARGS} -I % ${INSTALL_DATA} % ${DESTDIR}${TTF_FONTS_DIR}
+       ${FIND} ${WRKSRC} -iname '*.otf' -print | \
+           ${XARGS} -I % ${INSTALL_DATA} % ${DESTDIR}${OTF_FONTS_DIR}
 



Home | Main Index | Thread Index | Old Index