Add patch to fix issues with having ":unscaled" in font paths.
authorJoshua Baergen <joshuabaergen@gentoo.org>
Sun, 27 Nov 2005 19:31:44 +0000 (19:31 +0000)
committerJoshua Baergen <joshuabaergen@gentoo.org>
Sun, 27 Nov 2005 19:31:44 +0000 (19:31 +0000)
Package-Manager: portage-2.0.53_rc7

x11-libs/libXfont/ChangeLog
x11-libs/libXfont/Manifest
x11-libs/libXfont/files/digest-libXfont-0.99.2-r1 [new file with mode: 0644]
x11-libs/libXfont/files/fontpath_unscaled.patch [new file with mode: 0644]
x11-libs/libXfont/libXfont-0.99.2-r1.ebuild [new file with mode: 0644]

index 2cab809f2e214d6ddfb8861e808f4ac4abf9c9f9..8033d7b0fcfb07088699e1135e1bddb5e75d0f16 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for x11-libs/libXfont
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXfont/ChangeLog,v 1.12 2005/11/11 17:31:59 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXfont/ChangeLog,v 1.13 2005/11/27 19:31:44 joshuabaergen Exp $
+
+*libXfont-0.99.2-r1 (27 Nov 2005)
+
+  27 Nov 2005; Joshua Baergen <joshuabaergen@gentoo.org>
+  +files/fontpath_unscaled.patch, +libXfont-0.99.2-r1.ebuild:
+  Add patch to fix issues with having ":unscaled" in font paths.
 
 *libXfont-0.99.2 (11 Nov 2005)
 
index 7556ad7a6fdf2a8518ebc9924e7c5d2215acbd3c..b144bcadba802096f805c43f9d4bfdbd58d39174 100644 (file)
@@ -1,6 +1,9 @@
-MD5 0194ecbfdc8e2033e0c127a04a56ce7f ChangeLog 1929
+MD5 c0a10d98445e092353f98be37a154ed5 ChangeLog 2153
 MD5 dd0c0304a6075f824a2878eea6579315 files/digest-libXfont-0.99.1 68
 MD5 171ae24ee1c999cef301062401c94654 files/digest-libXfont-0.99.2 68
+MD5 171ae24ee1c999cef301062401c94654 files/digest-libXfont-0.99.2-r1 68
+MD5 3b5984d16ea4e3bd9ebbd78243c987bb files/fontpath_unscaled.patch 3430
 MD5 9759ed4a026f2b1034b653c782608a2e libXfont-0.99.1.ebuild 864
+MD5 da541f0d613533cad86a4639d0600ecc libXfont-0.99.2-r1.ebuild 914
 MD5 e16576a27e21d84a39b8edd318fe5402 libXfont-0.99.2.ebuild 860
 MD5 a37bab73e2f24b213932c30997d3d360 metadata.xml 156
diff --git a/x11-libs/libXfont/files/digest-libXfont-0.99.2-r1 b/x11-libs/libXfont/files/digest-libXfont-0.99.2-r1
new file mode 100644 (file)
index 0000000..c89adcf
--- /dev/null
@@ -0,0 +1 @@
+MD5 5cf961b00af1bcb2d55146e8dfb48c3f libXfont-0.99.2.tar.bz2 540390
diff --git a/x11-libs/libXfont/files/fontpath_unscaled.patch b/x11-libs/libXfont/files/fontpath_unscaled.patch
new file mode 100644 (file)
index 0000000..e872b5e
--- /dev/null
@@ -0,0 +1,123 @@
+--- src/fontfile/fontdir.c     2005/07/09 06:36:13     1.5
++++ src/fontfile/fontdir.c     2005/11/14 20:40:42     1.6
+@@ -107,12 +107,9 @@
+     FontDirectoryPtr  dir;
+     int                       dirlen;
+     int                       needslash = 0;
+-#ifdef FONTDIRATTRIB
+     char              *attrib;
+     int                       attriblen;
+-#endif
+ 
+-#ifdef FONTDIRATTRIB
+ #if !defined(__UNIXOS2__) && !defined(WIN32)
+     attrib = strchr(dirName, ':');
+ #else
+@@ -126,20 +123,13 @@
+       dirlen = strlen(dirName);
+       attriblen = 0;
+     }
+-#else
+-    dirlen = strlen(dirName);
+-#endif
+     if (dirName[dirlen - 1] != '/')
+ #ifdef NCD
+     if (dirlen)     /* leave out slash for builtins */
+ #endif
+       needslash = 1;
+-#ifdef FONTDIRATTRIB
+     dir = (FontDirectoryPtr) xalloc(sizeof *dir + dirlen + needslash + 1 +
+                                   (attriblen ? attriblen + 1 : 0));
+-#else
+-    dir = (FontDirectoryPtr) xalloc(sizeof *dir + dirlen + needslash + 1);
+-#endif
+     if (!dir)
+       return (FontDirectoryPtr)0;
+     if (!FontFileInitTable (&dir->scalable, 0))
+@@ -156,7 +146,6 @@
+     dir->directory = (char *) (dir + 1);
+     dir->dir_mtime = 0;
+     dir->alias_mtime = 0;
+-#ifdef FONTDIRATTRIB
+     if (attriblen)
+       dir->attributes = dir->directory + dirlen + needslash + 1;
+     else
+@@ -165,9 +154,6 @@
+     dir->directory[dirlen] = '\0';
+     if (dir->attributes)
+       strcpy(dir->attributes, attrib);
+-#else
+-    strcpy(dir->directory, dirName);
+-#endif
+     if (needslash)
+       strcat(dir->directory, "/");
+     return dir;
+@@ -633,9 +619,7 @@
+     FontScalableExtraPtr    extra;
+     FontEntryPtr          bitmap = 0, scalable;
+     Bool                  isscale;
+-#ifdef FONTDIRATTRIB
+     Bool                  scalable_xlfd;
+-#endif
+ 
+     renderer = FontFileMatchRenderer (fileName);
+     if (!renderer)
+@@ -661,7 +645,6 @@
+             (vals.values_supplied & PIXELSIZE_MASK) != PIXELSIZE_ARRAY &&
+             (vals.values_supplied & POINTSIZE_MASK) != POINTSIZE_ARRAY &&
+             !(vals.values_supplied & ENHANCEMENT_SPECIFY_MASK);
+-#ifdef FONTDIRATTRIB
+ #define UNSCALED_ATTRIB "unscaled"
+     scalable_xlfd = (isscale &&
+               (((vals.values_supplied & PIXELSIZE_MASK) == 0) ||
+@@ -689,7 +672,6 @@
+               ptr1 = ptr2 + 1;
+       } while (ptr2);
+     }
+-#endif
+     if (!isscale || (vals.values_supplied & SIZE_SPECIFY_MASK))
+     {
+       /*
+--- src/fontfile/dirfile.c     2005/07/09 06:36:13     1.5
++++ src/fontfile/dirfile.c     2005/11/14 20:40:42     1.6
+@@ -58,10 +58,8 @@
+     char        file_name[MAXFONTFILENAMELEN];
+     char        font_name[MAXFONTNAMELEN];
+     char        dir_file[MAXFONTFILENAMELEN];
+-#ifdef FONTDIRATTRIB
+     char      dir_path[MAXFONTFILENAMELEN];
+     char      *ptr;
+-#endif
+     FILE       *file;
+     int         count,
+                 i,
+@@ -74,7 +72,6 @@
+     if (strlen(directory) + 1 + sizeof(FontDirFile) > sizeof(dir_file))
+       return BadFontPath;
+ 
+-#ifdef FONTDIRATTRIB
+     /* Check for font directory attributes */
+ #if !defined(__UNIXOS2__) && !defined(WIN32)
+     if ((ptr = strchr(directory, ':'))) {
+@@ -88,9 +85,6 @@
+       strcpy(dir_path, directory);
+     }
+     strcpy(dir_file, dir_path);
+-#else
+-    strcpy(dir_file, directory);
+-#endif
+     if (dir_file[strlen(dir_file) - 1] != '/')
+       strcat(dir_file, "/");
+     strcat(dir_file, FontDirFile);
+@@ -147,11 +141,7 @@
+     } else if (errno != ENOENT) {
+       return BadFontPath;
+     }
+-#ifdef FONTDIRATTRIB
+     status = ReadFontAlias(dir_path, FALSE, &dir);
+-#else
+-    status = ReadFontAlias(directory, FALSE, &dir);
+-#endif
+     if (status != Successful) {
+       if (dir)
+           FontFileFreeDir (dir);
diff --git a/x11-libs/libXfont/libXfont-0.99.2-r1.ebuild b/x11-libs/libXfont/libXfont-0.99.2-r1.ebuild
new file mode 100644 (file)
index 0000000..f28051c
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXfont/libXfont-0.99.2-r1.ebuild,v 1.1 2005/11/27 19:31:44 joshuabaergen Exp $
+
+# Must be before x-modular eclass is inherited
+#SNAPSHOT="yes"
+
+inherit x-modular
+
+DESCRIPTION="X.Org Xfont library"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE="cid truetype speedo bitmap-fonts ipv6"
+RDEPEND="x11-libs/xtrans
+       x11-libs/libfontenc
+       x11-proto/xproto
+       x11-proto/fontsproto
+       truetype? ( >=media-libs/freetype-2 )"
+DEPEND="${RDEPEND}
+       x11-proto/fontcacheproto"
+
+PATCHES="${FILESDIR}/fontpath_unscaled.patch"
+
+CONFIGURE_OPTIONS="$(use_enable cid)
+       $(use_enable speedo)
+       $(use_enable truetype freetype)
+       $(use_enable bitmap-fonts pcfformat)
+       $(use_enable bitmap-fonts bdfformat)
+       $(use_enable bitmap-fonts snfformat)
+       $(use_enable ipv6)
+       --enable-type1"