mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
Add gnu-unifont 1.0.0, unicode font.
PR: ports/121037 Submitted by: nrg milk <bsdports at gmail.com>
This commit is contained in:
parent
23f0a749a4
commit
3e2372b2ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209348
@ -273,6 +273,7 @@
|
||||
SUBDIR += gnome_subr
|
||||
SUBDIR += gnomebaker
|
||||
SUBDIR += gnomefind
|
||||
SUBDIR += gnu-unifont
|
||||
SUBDIR += googlog
|
||||
SUBDIR += gosa
|
||||
SUBDIR += gpart
|
||||
|
28
sysutils/gnu-unifont/Makefile
Normal file
28
sysutils/gnu-unifont/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: gnu-unifont
|
||||
# Date created: Feb 23 2008
|
||||
# Whom: nrg milk <bsdports@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gnu-unifont
|
||||
PORTVERSION= 1.0.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://chirashi-no-ura.net/files/
|
||||
DISTNAME= unifont.hex
|
||||
EXTRACT_SUFX= .tar.bz
|
||||
|
||||
MAINTAINER= bsdports@gmail.com
|
||||
COMMENT= Unicode font
|
||||
|
||||
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
|
||||
|
||||
USE_PERL= 5.8
|
||||
NO_BUILD= yes
|
||||
PLIST_FILES= lib/X11/fonts/local/unifont.pcf.gz
|
||||
|
||||
do-install:
|
||||
${CHMOD} +x ${FILESDIR}/hex2bdf
|
||||
${CAT} ${WRKDIR}/unifont.hex | ${FILESDIR}/hex2bdf | ${LOCALBASE}/bin/bdftopcf | ${GZIP_CMD} > ${WRKDIR}/unifont.pcf.gz
|
||||
${CP} ${WRKDIR}/unifont.pcf.gz ${LOCALBASE}/lib/X11/fonts/local/unifont.pcf.gz
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/gnu-unifont/distinfo
Normal file
3
sysutils/gnu-unifont/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (unifont.hex.tar.bz) = 8cc304ab7a4c84ae3845ee7ef76639c9
|
||||
SHA256 (unifont.hex.tar.bz) = bc4fbd356946a4267b28aa3053bb77859d56456eed0323d6db5590d455891c12
|
||||
SIZE (unifont.hex.tar.bz) = 554325
|
36
sysutils/gnu-unifont/files/hex2bdf
Normal file
36
sysutils/gnu-unifont/files/hex2bdf
Normal file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
while (<>) { $glyph{$1} = $2 if /(....):(.+)\n/; }
|
||||
@chars = sort keys %glyph; $[ = 1;
|
||||
# dbmopen (%charname, "/usr/share/unicode/unidata/charname.db", 0);
|
||||
|
||||
print "STARTFONT 2.1
|
||||
FONT -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
|
||||
SIZE 16 75 75
|
||||
FONTBOUNDINGBOX 16 16 0 -2
|
||||
STARTPROPERTIES 3
|
||||
FONT_ASCENT 14
|
||||
FONT_DESCENT 2
|
||||
DEFAULT_CHAR 32
|
||||
ENDPROPERTIES
|
||||
CHARS $#chars\n";
|
||||
|
||||
foreach $character (@chars)
|
||||
{
|
||||
$encoding = hex($character); $glyph = $glyph{$character};
|
||||
$width = length ($glyph) > 32 ? 2 : 1;
|
||||
$dwidth = $width * 8; $swidth= $width * 500;
|
||||
$glyph =~ s/((..){$width})/\n$1/g;
|
||||
$character = "$character $charname"
|
||||
if $charname = $charname{pack("n",hex($character))};
|
||||
|
||||
print "STARTCHAR U+$character
|
||||
ENCODING $encoding
|
||||
SWIDTH $swidth 0
|
||||
DWIDTH $dwidth 0
|
||||
BBX $dwidth 16 0 -2
|
||||
BITMAP $glyph
|
||||
ENDCHAR\n";
|
||||
}
|
||||
|
||||
print "ENDFONT\n";
|
6
sysutils/gnu-unifont/pkg-descr
Normal file
6
sysutils/gnu-unifont/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
GNU Unifont is a free bitmap font that covers
|
||||
the Unicode Basic Multilingual Plane (BMP),
|
||||
using an intermediate bitmapped font format.
|
||||
|
||||
Auther: Roman Czyborra <roman@czyborra.com>
|
||||
WWW: http://czyborra.com/unifont/
|
28
x11-fonts/gnu-unifont/Makefile
Normal file
28
x11-fonts/gnu-unifont/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: gnu-unifont
|
||||
# Date created: Feb 23 2008
|
||||
# Whom: nrg milk <bsdports@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gnu-unifont
|
||||
PORTVERSION= 1.0.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://chirashi-no-ura.net/files/
|
||||
DISTNAME= unifont.hex
|
||||
EXTRACT_SUFX= .tar.bz
|
||||
|
||||
MAINTAINER= bsdports@gmail.com
|
||||
COMMENT= Unicode font
|
||||
|
||||
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
|
||||
|
||||
USE_PERL= 5.8
|
||||
NO_BUILD= yes
|
||||
PLIST_FILES= lib/X11/fonts/local/unifont.pcf.gz
|
||||
|
||||
do-install:
|
||||
${CHMOD} +x ${FILESDIR}/hex2bdf
|
||||
${CAT} ${WRKDIR}/unifont.hex | ${FILESDIR}/hex2bdf | ${LOCALBASE}/bin/bdftopcf | ${GZIP_CMD} > ${WRKDIR}/unifont.pcf.gz
|
||||
${CP} ${WRKDIR}/unifont.pcf.gz ${LOCALBASE}/lib/X11/fonts/local/unifont.pcf.gz
|
||||
|
||||
.include <bsd.port.mk>
|
3
x11-fonts/gnu-unifont/distinfo
Normal file
3
x11-fonts/gnu-unifont/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (unifont.hex.tar.bz) = 8cc304ab7a4c84ae3845ee7ef76639c9
|
||||
SHA256 (unifont.hex.tar.bz) = bc4fbd356946a4267b28aa3053bb77859d56456eed0323d6db5590d455891c12
|
||||
SIZE (unifont.hex.tar.bz) = 554325
|
36
x11-fonts/gnu-unifont/files/hex2bdf
Normal file
36
x11-fonts/gnu-unifont/files/hex2bdf
Normal file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
while (<>) { $glyph{$1} = $2 if /(....):(.+)\n/; }
|
||||
@chars = sort keys %glyph; $[ = 1;
|
||||
# dbmopen (%charname, "/usr/share/unicode/unidata/charname.db", 0);
|
||||
|
||||
print "STARTFONT 2.1
|
||||
FONT -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
|
||||
SIZE 16 75 75
|
||||
FONTBOUNDINGBOX 16 16 0 -2
|
||||
STARTPROPERTIES 3
|
||||
FONT_ASCENT 14
|
||||
FONT_DESCENT 2
|
||||
DEFAULT_CHAR 32
|
||||
ENDPROPERTIES
|
||||
CHARS $#chars\n";
|
||||
|
||||
foreach $character (@chars)
|
||||
{
|
||||
$encoding = hex($character); $glyph = $glyph{$character};
|
||||
$width = length ($glyph) > 32 ? 2 : 1;
|
||||
$dwidth = $width * 8; $swidth= $width * 500;
|
||||
$glyph =~ s/((..){$width})/\n$1/g;
|
||||
$character = "$character $charname"
|
||||
if $charname = $charname{pack("n",hex($character))};
|
||||
|
||||
print "STARTCHAR U+$character
|
||||
ENCODING $encoding
|
||||
SWIDTH $swidth 0
|
||||
DWIDTH $dwidth 0
|
||||
BBX $dwidth 16 0 -2
|
||||
BITMAP $glyph
|
||||
ENDCHAR\n";
|
||||
}
|
||||
|
||||
print "ENDFONT\n";
|
6
x11-fonts/gnu-unifont/pkg-descr
Normal file
6
x11-fonts/gnu-unifont/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
GNU Unifont is a free bitmap font that covers
|
||||
the Unicode Basic Multilingual Plane (BMP),
|
||||
using an intermediate bitmapped font format.
|
||||
|
||||
Auther: Roman Czyborra <roman@czyborra.com>
|
||||
WWW: http://czyborra.com/unifont/
|
Loading…
Reference in New Issue
Block a user