[Midnightbsd-cvs] mports: x11-fonts/fontconfig: Update fontconfig version

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Jun 29 18:13:56 EDT 2008


Log Message:
-----------
Update fontconfig version

Modified Files:
--------------
    mports/x11-fonts/fontconfig:
        Makefile (r1.6 -> r1.7)
        distinfo (r1.3 -> r1.4)
        pkg-plist (r1.2 -> r1.3)

Removed Files:
-------------
    mports/x11-fonts/fontconfig/files:
        patch-fc-git

-------------- next part --------------
Index: pkg-plist
===================================================================
RCS file: /home/cvs/mports/x11-fonts/fontconfig/pkg-plist,v
retrieving revision 1.2
retrieving revision 1.3
diff -L x11-fonts/fontconfig/pkg-plist -L x11-fonts/fontconfig/pkg-plist -u -r1.2 -r1.3
--- x11-fonts/fontconfig/pkg-plist
+++ x11-fonts/fontconfig/pkg-plist
@@ -10,11 +10,12 @@
 etc/fonts/conf.avail/10-sub-pixel-vrgb.conf
 etc/fonts/conf.avail/10-unhinted.conf
 etc/fonts/conf.avail/20-fix-globaladvance.conf
-etc/fonts/conf.avail/20-lohit-gujarati.conf
 etc/fonts/conf.avail/20-unhint-small-vera.conf
-etc/fonts/conf.avail/30-amt-aliases.conf
+etc/fonts/conf.avail/25-unhint-nonlatin.conf
+etc/fonts/conf.avail/30-metric-aliases.conf
 etc/fonts/conf.avail/30-urw-aliases.conf
-etc/fonts/conf.avail/40-generic.conf
+etc/fonts/conf.avail/40-nonlatin.conf
+etc/fonts/conf.avail/45-latin.conf
 etc/fonts/conf.avail/49-sansserif.conf
 etc/fonts/conf.avail/50-user.conf
 etc/fonts/conf.avail/51-local.conf
@@ -28,11 +29,11 @@
 etc/fonts/conf.avail/90-synthetic.conf
 etc/fonts/conf.avail/README
 etc/fonts/conf.d/20-fix-globaladvance.conf
-etc/fonts/conf.d/20-lohit-gujarati.conf
 etc/fonts/conf.d/20-unhint-small-vera.conf
-etc/fonts/conf.d/30-amt-aliases.conf
+etc/fonts/conf.d/30-metric-aliases.conf
 etc/fonts/conf.d/30-urw-aliases.conf
-etc/fonts/conf.d/40-generic.conf
+etc/fonts/conf.d/40-nonlatin.conf
+etc/fonts/conf.d/45-latin.conf
 etc/fonts/conf.d/49-sansserif.conf
 etc/fonts/conf.d/50-user.conf
 etc/fonts/conf.d/51-local.conf
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/x11-fonts/fontconfig/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -L x11-fonts/fontconfig/Makefile -L x11-fonts/fontconfig/Makefile -u -r1.6 -r1.7
--- x11-fonts/fontconfig/Makefile
+++ x11-fonts/fontconfig/Makefile
@@ -8,7 +8,7 @@
 #
 
 PORTNAME=	fontconfig
-PORTVERSION=	2.4.2
+PORTVERSION=	2.5.0
 PORTEPOCH?=	1
 CATEGORIES=	x11-fonts
 MASTER_SITES=	http://fontconfig.org/release/
@@ -23,14 +23,13 @@
 		expat.6:${PORTSDIR}/textproc/expat2
 
 USE_GMAKE=	yes
-PREFIX?=	${X11BASE}
 USE_LDCONFIG=	yes
 USE_AUTOTOOLS=	libtool:15
 USE_GNOME=	gnomehack gnometarget pkgconfig ltverhack
 CONFIGURE_ARGS=	--with-confdir=${PREFIX}/etc/fonts \
 		--with-expat-includes=${LOCALBASE}/include \
 		--with-expat-lib=${LOCALBASE}/lib \
-		--with-default-fonts=${X11BASE}/lib/X11/fonts \
+		--with-default-fonts=${LOCALBASE}/lib/X11/fonts \
 		--with-cache-dir=/var/db/fontconfig \
 		--without-add-fonts \
 		--disable-docs
@@ -60,7 +59,12 @@
 	${INSTALL_MAN} ${FILESDIR}/${manpage} ${PREFIX}/man/man1
 .endfor
 .endif
-	${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf.default; \
+	if [ ! -f ${PREFIX}/etc/fonts/fonts.conf ]; then \
+		${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf; \
+		${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf.default; \
+	else \
+		${INSTALL_DATA} ${WRKSRC}/fonts.conf ${PREFIX}/etc/fonts/fonts.conf.default; \
+	fi
 
 .include <bsd.port.post.mk>
 
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/x11-fonts/fontconfig/distinfo,v
retrieving revision 1.3
retrieving revision 1.4
diff -L x11-fonts/fontconfig/distinfo -L x11-fonts/fontconfig/distinfo -u -r1.3 -r1.4
--- x11-fonts/fontconfig/distinfo
+++ x11-fonts/fontconfig/distinfo
@@ -1,3 +1,3 @@
-MD5 (fontconfig-2.4.2.tar.gz) = f035852f521b54677f2b5c9e2f6d54a4
-SHA256 (fontconfig-2.4.2.tar.gz) = 63a3d6413182817b91eea327b58c243f1865acfc40bef61fc52d2b0431341363
-SIZE (fontconfig-2.4.2.tar.gz) = 1278340
+MD5 (fontconfig-2.5.0.tar.gz) = 21d14af8ecf645ef76211c782cdd7aeb
+SHA256 (fontconfig-2.5.0.tar.gz) = 34c6badb4cb7eb496779d30616903de400fa244838ea39c2a7f63eaa5fdf0efe
+SIZE (fontconfig-2.5.0.tar.gz) = 1385058
--- x11-fonts/fontconfig/files/patch-fc-git
+++ /dev/null
@@ -1,80 +0,0 @@
---- src/fcfreetype.c.orig	Sat Apr 14 01:46:21 2007
-+++ src/fcfreetype.c	Sat Apr 14 01:48:33 2007
-@@ -2413,6 +2413,19 @@ FcGlyphNameToUcs4 (FcChar8 *name)
- }
- 
- /*
-+* Work around a bug in some FreeType versions which fail
-+* to correctly bounds check glyph name buffers and overwrite
-+* the stack. As Postscript names have a limit of 127 characters,
-+* this should be sufficient.
-+*/
-+
-+#if FC_GLYPHNAME_MAXLEN < 127
-+# define FC_GLYPHNAME_BUFLEN 127
-+#else
-+# define FC_GLYPHNAME_BUFLEN FC_GLYPHNAME_MAXLEN
-+#endif
-+
-+/*
-  * Search through a font for a glyph by name.  This is
-  * currently a linear search as there doesn't appear to be
-  * any defined order within the font
-@@ -2421,11 +2434,11 @@ static FT_UInt
- FcFreeTypeGlyphNameIndex (FT_Face face, const FcChar8 *name)
- {
-     FT_UInt gindex;
--    FcChar8 name_buf[FC_GLYPHNAME_MAXLEN + 2];
-+    FcChar8 name_buf[FC_GLYPHNAME_BUFLEN + 2];
- 
-     for (gindex = 0; gindex < (FT_UInt) face->num_glyphs; gindex++)
-     {
--	if (FT_Get_Glyph_Name (face, gindex, name_buf, FC_GLYPHNAME_MAXLEN+1) == 0)
-+	if (FT_Get_Glyph_Name (face, gindex, name_buf, FC_GLYPHNAME_BUFLEN+1) == 0)
- 	    if (!strcmp ((char *) name, (char *) name_buf))
- 		return gindex;
-     }
-@@ -2715,11 +2728,11 @@ FcFreeTypeCharSetAndSpacing (FT_Face fac
-      */
-     if (FcFreeTypeUseNames (face))
-     {
--	FcChar8 name_buf[FC_GLYPHNAME_MAXLEN + 2];
-+	FcChar8 name_buf[FC_GLYPHNAME_BUFLEN + 2];
- 
- 	for (glyph = 0; glyph < (FT_UInt) face->num_glyphs; glyph++)
- 	{
--	    if (FT_Get_Glyph_Name (face, glyph, name_buf, FC_GLYPHNAME_MAXLEN+1) == 0)
-+	    if (FT_Get_Glyph_Name (face, glyph, name_buf, FC_GLYPHNAME_BUFLEN+1) == 0)
- 	    {
- 		ucs4 = FcGlyphNameToUcs4 (name_buf);
- 		if (ucs4 != 0xffff && 
---- fc-glyphname/fc-glyphname.c.orig	Sat Apr 14 01:49:42 2007
-+++ fc-glyphname/fc-glyphname.c	Sat Apr 14 01:49:55 2007
-@@ -206,7 +206,7 @@ insert (FcGlyphName *gn, FcGlyphName **t
-     i = (int) (h % hash);
-     while (table[i])
-     {
--	if (!r) r = (int) (h % rehash);
-+	if (!r) r = (int) (h % rehash + 1);
- 	i += r;
- 	if (i >= hash)
- 	    i -= hash;
---- src/fcpat.c.orig	Sat Apr 14 01:51:00 2007
-+++ src/fcpat.c	Sat Apr 14 01:52:23 2007
-@@ -925,10 +925,13 @@ FcPatternDuplicate (const FcPattern *ori
-     for (i = 0; i < orig->num; i++)
-     {
- 	for (l = FcPatternEltValues(e + i); l; l = FcValueListNext(l))
--	    if (!FcPatternObjectAdd (new, e[i].object,
--				     FcValueCanonicalize(&l->value),
--				     FcTrue))
-+	{
-+	    if (!FcPatternObjectAddWithBinding (new, e[i].object,
-+	                                        FcValueCanonicalize(&l->value),
-+						l->binding,
-+						FcTrue))
- 		goto bail1;
-+	}
-     }
- 
-     return new;


More information about the Midnightbsd-cvs mailing list