Date: Fri, 24 May 2013 13:30:00 GMT From: Javad Kouhi <javad.kouhi@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/177906: [new port] x11-fonts/fpf Free Persian font Message-ID: <201305241330.r4ODU0G9074326@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/177906; it has been noted by GNATS. From: Javad Kouhi <javad.kouhi@gmail.com> To: Raphael Kubo da Costa <rakuco@freebsd.org> Cc: bug-followup@freebsd.org Subject: Re: ports/177906: [new port] x11-fonts/fpf Free Persian font Date: Fri, 24 May 2013 17:53:04 +0430 Hello, Sorry for the delayed reply. There's no special reason for using ttmkfdir instead of mkfontdir. Thanks for the suggestions. Here is a new shar file: # 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: # # fpf # fpf/pkg-descr # fpf/pkg-plist # fpf/pkg-message # fpf/distinfo # fpf/Makefile # echo c - fpf mkdir -p fpf > /dev/null 2>&1 echo x - fpf/pkg-descr sed 's/^X//' >fpf/pkg-descr << 'cb465e944bfc7a46667ce21be85ffac1' XFree Persian Uniucode Font Project aims to provide a set of XPersian unicode fonts that covers part of ISO 10464/Unicode UCS X(Universal Characters Set). X XThis release is first release of this sets that contain one font, XFPUF-nakhost that based on Nazli fonts from www.farsiweb.info. XFPUF fixed some Unicode problems. X XWWW: http://fpf.sourceforge.net cb465e944bfc7a46667ce21be85ffac1 echo x - fpf/pkg-plist sed 's/^X//' >fpf/pkg-plist << '16d59335948d6e2e07a520262b891a47' X%%FONTSDIR%%/fonts.dir X%%FONTSDIR%%/fonts.scale X%%FONTSDIR%%/FreeFarsi-Bold.ttf X%%FONTSDIR%%/FreeFarsi-BoldItalic.ttf X%%FONTSDIR%%/FreeFarsi-Italic.ttf X%%FONTSDIR%%/FreeFarsi-Mono.ttf X%%FONTSDIR%%/FreeFarsi.ttf X@dirrm %%FONTSDIR%% 16d59335948d6e2e07a520262b891a47 echo x - fpf/pkg-message sed 's/^X//' >fpf/pkg-message << '926f9f1d4ab29b3cd9ecbde62451bf98' 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. 926f9f1d4ab29b3cd9ecbde62451bf98 echo x - fpf/distinfo sed 's/^X//' >fpf/distinfo << '613cbfaf92eacfd9eb40bf853acf1912' XSHA256 (fpf-1.0.0-Beta-1.zip) = dbd6195ec5095d56ef2b6f9aa32e00866c81ee5fb8a4bdbfa5537eb1347020ca XSIZE (fpf-1.0.0-Beta-1.zip) = 176217 613cbfaf92eacfd9eb40bf853acf1912 echo x - fpf/Makefile sed 's/^X//' >fpf/Makefile << '5386330fe930eb17e1ac2581d9764de9' X# $FreeBSD$ X XPORTNAME= fpf XPORTVERSION= 1.0.0 XCATEGORIES= x11-fonts XMASTER_SITES= SF XMASTER_SITE_SUBDIR= fpf/fpf/fpf-1.0.0-beta-1/ XDISTNAME= ${PORTNAME}-${PORTVERSION}-Beta-1 X XMAINTAINER= javad.kouhi@gmail.com XCOMMENT= Free Persian font X XLICENSE= GPLv2 X XBUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ X fc-cache:${PORTSDIR}/x11-fonts/fontconfig X XUSE_ZIP= yes X XWRKSRC= ${WRKDIR}/FreePersianFont XPLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" XFONTSDIR?= ${PREFIX}/lib/X11/fonts/${PORTNAME} X XMKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir XFCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v X Xdo-build: X cd ${WRKSRC} && ${MKFONTDIR_CMD} X Xdo-install: X ${MKDIR} ${FONTSDIR} X ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR} X ${INSTALL_DATA} ${WRKSRC}/fonts.dir ${FONTSDIR} X Xpost-install: X @${CP} ${FONTSDIR}/fonts.dir ${FONTSDIR}/fonts.scale X @${ECHO_MSG} "===> Running fc-cache" X -${FCCACHE_CMD} ${FONTSDIR}/ X @${ECHO_MSG} X @${CAT} ${PKGMESSAGE} X @${ECHO_MSG} X X.include <bsd.port.mk> 5386330fe930eb17e1ac2581d9764de9 exit Thanks for your time. Regards. On Sun, May 19, 2013 at 9:23 PM, Raphael Kubo da Costa <rakuco@freebsd.org> wrote: > > Thanks for the patch. A few questions: > > - Since this is a TTF font, doesn't it make sense to depend on > fontconfig like the other fonts, as well as run fc-cache at install > time? > > - Is there a reason for depending on ttmkfdir instead of mkfontdir? How > about mkfontscale?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305241330.r4ODU0G9074326>