pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/tex-texlive-scripts tex-texlive-scripts: add TeX...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf412e4940de
branches:  trunk
changeset: 391685:cf412e4940de
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Jan 12 10:46:59 2023 +0000

description:
tex-texlive-scripts: add TeX's opentype and truetype directory trees
to fontconfig search path so that fontspec works.

diffstat:

 print/tex-texlive-scripts/Makefile                    |  20 +++++++++++++++++-
 print/tex-texlive-scripts/PLIST                       |   3 +-
 print/tex-texlive-scripts/files/09-texlive-fonts.conf |   7 ++++++
 3 files changed, 27 insertions(+), 3 deletions(-)

diffs (78 lines):

diff -r 1f46e08480e6 -r cf412e4940de print/tex-texlive-scripts/Makefile
--- a/print/tex-texlive-scripts/Makefile        Thu Jan 12 10:25:26 2023 +0000
+++ b/print/tex-texlive-scripts/Makefile        Thu Jan 12 10:46:59 2023 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2022/06/28 11:35:32 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2023/01/12 10:46:59 markd Exp $
 
 DISTNAME=      texlive-scripts
 PKGNAME=       tex-${DISTNAME}-2022
-PKGREVISION=   1
+PKGREVISION=   2
 TEXLIVE_REV=   63029
 
 MAINTAINER=    minskim%NetBSD.org@localhost
@@ -23,9 +23,19 @@
 
 PKG_SYSCONFSUBDIR=     texmf
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "native"
+_FONTCONFDIR=  /etc/fonts/conf.d
+.else
+_FONTCONFDIR=  ${PKG_SYSCONFBASE}/fontconfig/conf.d
+.endif
+
 MAKE_DIRS+=    ${PKG_SYSCONFDIR}/web2c
 CONF_FILES+=   ${PREFIX}/share/texmf-dist/web2c/updmap.cfg \
                ${PKG_SYSCONFDIR}/web2c/updmap.cfg
+CONF_FILES+=   ${PREFIX}/share/fontconfig/conf.avail/09-texlive-fonts.conf \
+               ${_FONTCONFDIR}/09-texlive-fonts.conf
 
 TEX_TEXMF_DIRS+=       ${PKG_SYSCONFDIR} ${PREFIX}/share/texmf-dist
 
@@ -62,9 +72,15 @@
        ${MV} ${WRKSRC}/texmf-dist/scripts/texlive/${script} \
                ${WRKSRC}/bin/${script:S/.pl//}
 .endfor
+       ${SED} ${FILES_SUBST_SED} ${FILESDIR}/09-texlive-fonts.conf \
+                >${WRKDIR}/09-texlive-fonts.conf
+
+INSTALLATION_DIRS+=    share/fontconfig/conf.avail/
 
 post-install:
        ${LN} -sf fmtutil ${DESTDIR}${PREFIX}/bin/mktexfmt
        ${LN} -sf mktexlsr ${DESTDIR}${PREFIX}/bin/texhash
+       ${INSTALL_DATA} ${WRKDIR}/09-texlive-fonts.conf \
+               ${DESTDIR}${PREFIX}/share/fontconfig/conf.avail/09-texlive-fonts.conf
 
 .include "../../mk/bsd.pkg.mk"
diff -r 1f46e08480e6 -r cf412e4940de print/tex-texlive-scripts/PLIST
--- a/print/tex-texlive-scripts/PLIST   Thu Jan 12 10:25:26 2023 +0000
+++ b/print/tex-texlive-scripts/PLIST   Thu Jan 12 10:46:59 2023 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2020/05/10 03:56:44 markd Exp $
+@comment $NetBSD: PLIST,v 1.4 2023/01/12 10:46:59 markd Exp $
 bin/fmtutil
 bin/fmtutil-sys
 bin/fmtutil-user
@@ -11,6 +11,7 @@
 bin/updmap
 bin/updmap-sys
 bin/updmap-user
+share/fontconfig/conf.avail/09-texlive-fonts.conf
 share/texmf-dist/dvips/tetex/config.builtin35
 share/texmf-dist/dvips/tetex/config.dfaxhigh
 share/texmf-dist/dvips/tetex/config.dfaxlo
diff -r 1f46e08480e6 -r cf412e4940de print/tex-texlive-scripts/files/09-texlive-fonts.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/tex-texlive-scripts/files/09-texlive-fonts.conf     Thu Jan 12 10:46:59 2023 +0000
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <dir>@PREFIX@/share/texmf-dist/fonts/opentype</dir>
+  <dir>@PREFIX@/share/texmf-dist/fonts/truetype</dir>
+</fontconfig>
+



Home | Main Index | Thread Index | Old Index