Date: Tue, 1 Feb 2005 08:44:34 +1300 From: Andrew Thompson <andy@fud.org.nz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/76919: add new port x11-fonts/latex-xft-fonts Message-ID: <20050131194434.GA18415@thingy.tbd.co.nz> Resent-Message-ID: <200501311950.j0VJoIjx015148@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76919 >Category: ports >Synopsis: add new port x11-fonts/latex-xft-fonts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jan 31 19:50:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andrew Thompson >Release: FreeBSD 5.3-BETA6 i386 >Organization: >Environment: System: FreeBSD hudson.fire.org.nz 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Sat Oct 16 09:21:06 NZDT 2004 root@hudson.fire.org.nz:/usr/obj/usr/src/sys/HUDSON i386 >Description: Add latex-xft-fonts and add RUN_DEPENDS to LyX when compiled with QT shar file attached with latex-xft-fonts port and a diff for LyX at the bottom >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # x11-fonts/latex-xft-fonts # x11-fonts/latex-xft-fonts/Makefile # x11-fonts/latex-xft-fonts/pkg-message # x11-fonts/latex-xft-fonts/pkg-descr # x11-fonts/latex-xft-fonts/pkg-plist # x11-fonts/latex-xft-fonts/distinfo # echo c - x11-fonts/latex-xft-fonts mkdir -p x11-fonts/latex-xft-fonts > /dev/null 2>&1 echo x - x11-fonts/latex-xft-fonts/Makefile sed 's/^X//' >x11-fonts/latex-xft-fonts/Makefile << 'END-of-x11-fonts/latex-xft-fonts/Makefile' X# New ports collection makefile for: Latex XFT Font Family X# Date created: February 1 2005 X# Whom: Andrew Thompson <andy@fud.org.nz> X# X# $FreeBSD$ X# X XPORTNAME= latex-xft-fonts XPORTVERSION= 0.1 XCATEGORIES= x11-fonts XMASTER_SITES= http://www.movement.uklinux.net/ X XMAINTAINER= andy@fud.org.nz XCOMMENT= xft-compatible versions of some LaTeX fonts X XBUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig XRUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig X XUSE_X_PREFIX= yes XNO_BUILD= yes X XPLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" X XMSG_FILE= ${PKGDIR}/pkg-message XPKGMESSAGE= ${WRKDIR}/pkg-message X X# X# Local variables X# X XFONTNAME= ${PORTNAME} XFONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME} X X.SILENT: X Xpost-patch: X ${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE} X X# X# Install X# Xdo-install: install-fonts install-docs X Xinstall-fonts: X ${MKDIR} ${FONTSDIR} X ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR} X Xinstall-docs: X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} X.endif X Xpost-install: X ${ECHO_MSG} "===> Running fc-cache" X -${X11BASE}/bin/fc-cache -f -v ${FONTSDIR} X ${ECHO_MSG} X ${CAT} ${PKGMESSAGE} X ${ECHO_MSG} X X.include <bsd.port.mk> END-of-x11-fonts/latex-xft-fonts/Makefile echo x - x11-fonts/latex-xft-fonts/pkg-message sed 's/^X//' >x11-fonts/latex-xft-fonts/pkg-message << 'END-of-x11-fonts/latex-xft-fonts/pkg-message' XMake sure that the freetype module is loaded. If it is not, add the following Xline to the "Modules" section of your X Windows configuration file: X X Load "freetype" X XAdd the following line to the "Files" section of X Windows configuration file: X X FontPath "%%FONTSDIR%%/" X XNote: your X Windows configuration file is typically /etc/X11/XF86Config Xif you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org. END-of-x11-fonts/latex-xft-fonts/pkg-message echo x - x11-fonts/latex-xft-fonts/pkg-descr sed 's/^X//' >x11-fonts/latex-xft-fonts/pkg-descr << 'END-of-x11-fonts/latex-xft-fonts/pkg-descr' XLatex-xft-fonts contains xft-compatible versions of LaTeX fonts for Xuse with visual math symbol display in LyX. You will need to install Xthis package if your version of Qt is using Xft for displaying Xfonts. X XWWW: http://movementarian.org/ END-of-x11-fonts/latex-xft-fonts/pkg-descr echo x - x11-fonts/latex-xft-fonts/pkg-plist sed 's/^X//' >x11-fonts/latex-xft-fonts/pkg-plist << 'END-of-x11-fonts/latex-xft-fonts/pkg-plist' X%%FONTSDIR%%/cmex10.ttf X%%FONTSDIR%%/cmmi10.ttf X%%FONTSDIR%%/cmr10.ttf X%%FONTSDIR%%/cmsy10.ttf X%%FONTSDIR%%/msam10.ttf X%%FONTSDIR%%/msbm10.ttf X%%FONTSDIR%%/wasy10.ttf X%%PORTDOCS%%share/doc/latex-xft-fonts/README X%%PORTDOCS%%@dirrm share/doc/latex-xft-fonts X@unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true X@dirrm %%FONTSDIR%% X@exec %%X11BASE%%/bin/fc-cache -f -v %%FONTSDIR%% || /usr/bin/true END-of-x11-fonts/latex-xft-fonts/pkg-plist echo x - x11-fonts/latex-xft-fonts/distinfo sed 's/^X//' >x11-fonts/latex-xft-fonts/distinfo << 'END-of-x11-fonts/latex-xft-fonts/distinfo' XMD5 (latex-xft-fonts-0.1.tar.gz) = 0f3275e403be5fdbd14117dd8a26675f XSIZE (latex-xft-fonts-0.1.tar.gz) = 91730 END-of-x11-fonts/latex-xft-fonts/distinfo exit --- print/lyx.orig/Makefile Tue Feb 1 08:32:29 2005 +++ print/lyx/Makefile Tue Feb 1 08:35:19 2005 @@ -42,6 +42,7 @@ CONFIGURE_ARGS+= --with-frontend=qt QTCPPFLAGS+= ${PTHREAD_CFLAGS} QTCFGLIBS+= ${PTHREAD_LIBS} +RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/latex-xft-fonts/cmex10.ttf:${PORTSDIR}/x11-fonts/latex-xft-fonts .else LIB_DEPENDS+= forms.1:${PORTSDIR}/x11-toolkits/xforms USE_XPM= yes >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050131194434.GA18415>