Bug 76919 - new port x11-fonts/latex-xft-fonts
Summary: new port x11-fonts/latex-xft-fonts
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 19:50 UTC by Andrew Thompson
Modified: 2005-03-09 06:43 UTC (History)
0 users

See Also:


Attachments
file.diff (397 bytes, patch)
2005-01-31 19:50 UTC, Andrew Thompson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Thompson 2005-01-31 19:50:18 UTC
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

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
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2005-03-07 18:42:47 UTC
State Changed
From-To: open->feedback


I have added a similar port (x11-fonts/texcm-ttf). 

Let's see with the submitter if x11-fonts/texcm-ttf is 
sufficient for Lyx, or if we have to add the missing fonts. 

What is the license of these fonts? 



Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2005-03-07 18:42:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry


Take it.
Comment 3 Andrew Thompson 2005-03-08 00:02:58 UTC
Hi Thierry,

The texcm-ttf port provides the correct fonts so you can close the PR
and use the following patch instead.

Thanks.


--- 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/texcm-ttf/cmex10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf
 .else
 LIB_DEPENDS+=	forms.1:${PORTSDIR}/x11-toolkits/xforms
 USE_XPM=	yes
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2005-03-09 06:43:17 UTC
State Changed
From-To: feedback->closed


Dependency added to LyX, thanks!