diff options
author | wiz <wiz@pkgsrc.org> | 2002-05-20 12:38:58 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-05-20 12:38:58 +0000 |
commit | 47468eabffa7de95ea98fbd12662a9a6557b4782 (patch) | |
tree | 811a243934c9a61bb875712d904ee5ce0e1a908c /fonts | |
parent | 017b14e12bc68214319f26eb8e45908376dea7dd (diff) | |
download | pkgsrc-47468eabffa7de95ea98fbd12662a9a6557b4782.tar.gz |
Initial import of mkfontalias:
creates a fonts.alias from the fonts.dir for TrueType fonts
Provided by rxg in pkg/16812.
Diffstat (limited to 'fonts')
-rw-r--r-- | fonts/mkfontalias/DESCR | 3 | ||||
-rw-r--r-- | fonts/mkfontalias/Makefile | 27 | ||||
-rw-r--r-- | fonts/mkfontalias/PLIST | 2 | ||||
-rw-r--r-- | fonts/mkfontalias/distinfo | 5 | ||||
-rw-r--r-- | fonts/mkfontalias/patches/patch-aa | 38 |
5 files changed, 75 insertions, 0 deletions
diff --git a/fonts/mkfontalias/DESCR b/fonts/mkfontalias/DESCR new file mode 100644 index 00000000000..1559dac7486 --- /dev/null +++ b/fonts/mkfontalias/DESCR @@ -0,0 +1,3 @@ +This is a short python utility to assist people in de-uglification of +their TrueType fonts. Basically, creates a fonts.alias file from the +fonts.dir file found in the directory. diff --git a/fonts/mkfontalias/Makefile b/fonts/mkfontalias/Makefile new file mode 100644 index 00000000000..935b8a02280 --- /dev/null +++ b/fonts/mkfontalias/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/05/20 12:38:58 wiz Exp $ +# + +DISTNAME= mkfontalias.py +PKGNAME= mkfontalias-20000521 +CATEGORIES= fonts +MASTER_SITES= http://home.c2i.net/dark/ +EXTRACT_SUFX= # empty + +MAINTAINER= rxg@netbsd.org +HOMEPAGE= http://home.c2i.net/dark/linux.html#fuzzy +COMMENT= creates a fonts.alias from the fonts.dir for TrueType fonts + +EXTRACT_ONLY= # empty +WRKSRC= ${WRKDIR} +NO_BUILD= yes + +PYTHON_PATCH_SCRIPTS= ${DISTNAME} + +do-extract: + ${CP} ${_DISTDIR}/${DISTNAME} ${WRKSRC} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mkfontalias.py ${PREFIX}/bin/mkfontalias + +.include "../../lang/python/application.buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/fonts/mkfontalias/PLIST b/fonts/mkfontalias/PLIST new file mode 100644 index 00000000000..eb85a84f2b6 --- /dev/null +++ b/fonts/mkfontalias/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/20 12:38:58 wiz Exp $ +bin/mkfontalias diff --git a/fonts/mkfontalias/distinfo b/fonts/mkfontalias/distinfo new file mode 100644 index 00000000000..a155f89c861 --- /dev/null +++ b/fonts/mkfontalias/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/05/20 12:38:58 wiz Exp $ + +SHA1 (mkfontalias.py) = 455a7ac5b355d2ac6606f94ffa5cffa5af9385c1 +Size (mkfontalias.py) = 3571 bytes +SHA1 (patch-aa) = c1ea1fd0cd708f84e63b4039c1986b93086dd0b5 diff --git a/fonts/mkfontalias/patches/patch-aa b/fonts/mkfontalias/patches/patch-aa new file mode 100644 index 00000000000..076ded4933a --- /dev/null +++ b/fonts/mkfontalias/patches/patch-aa @@ -0,0 +1,38 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/05/20 12:38:59 wiz Exp $ + +--- mkfontalias.py.orig Mon May 13 23:10:34 2002 ++++ mkfontalias.py +@@ -16,7 +16,7 @@ + # -- + import sys, string, os + +-_font_sizes = range(6, 16) + [ 18, 24 ] ++_font_sizes = range(6, 13) + [ 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72 ] + _infile = 'fonts.dir' + _outfile = 'fonts.alias' + +@@ -67,13 +67,8 @@ + sys.stderr.write ( 'Invalid font: %s\n' % (font) ) + sys.exit(1) + +- name = entries[2] +- +- map = _font_map.get ( name, None ) +- +- if map: +- # Create a bunch of aliases, for each size +- for size in _font_sizes: ++ # Create a bunch of aliases, for each size ++ for size in _font_sizes: + # Do the 'cheating' - fallback to size if not in the cheat map + real_size = _cheat_map.get ( size, size ) + +@@ -81,7 +76,7 @@ + str(real_size * 10) ] + + entries[9:], '-' ) + +- alias = string.join ( entries[:2] + [map] + entries[3:7] + ++ alias = string.join ( entries[:3] + entries[3:7] + + [ str(size), str(size * 10) ] + + _res + entries[11:], '-' ) + |