pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/fonts/ms-ttf ms-ttf: convert to fonts.mk



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8fe05921df4
branches:  trunk
changeset: 394305:d8fe05921df4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Apr 08 07:59:24 2019 +0000

description:
ms-ttf: convert to fonts.mk

diffstat:

 fonts/ms-ttf/Makefile |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (38 lines):

diff -r 7478a2683b00 -r d8fe05921df4 fonts/ms-ttf/Makefile
--- a/fonts/ms-ttf/Makefile     Mon Apr 08 00:16:06 2019 +0000
+++ b/fonts/ms-ttf/Makefile     Mon Apr 08 07:59:24 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2015/11/25 12:50:14 jperkin Exp $
+# $NetBSD: Makefile,v 1.24 2019/04/08 07:59:24 wiz Exp $
 
 DISTNAME=      # empty
 PKGNAME=       ms-ttf-20020306
@@ -22,16 +22,11 @@
 NO_BIN_ON_FTP=         ${RESTRICTED}
 NO_SRC_ON_CDROM=       ${RESTRICTED}
 
-NO_CONFIGURE=  yes
-NO_BUILD=      yes
-
 DIST_SUBDIR=   ms-ttf
 EXTRACT_CMD=   ${LOCALBASE}/bin/cabextract -q $${extract_file}
-FONTDIR=       ${PREFIX}/share/fonts/X11/TTF
 DOCDIR=                ${PREFIX}/share/doc/ms-ttf
-FONTS_DIRS.ttf=        ${FONTDIR}
 
-INSTALLATION_DIRS=     ${FONTDIR} ${DOCDIR}
+INSTALLATION_DIRS+=    ${DOCDIR}
 
 post-extract:
        ${RUN}                                                          \
@@ -40,9 +35,7 @@
        done
 
 do-install:
-       cd ${WRKSRC} && for f in *.ttf ; do \
-               ${INSTALL_DATA} $$f ${DESTDIR}${FONTDIR}/$$f; \
-       done
        ${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DESTDIR}${DOCDIR}
 
+.include "../../mk/fonts.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index