New port: x11-fonts/tamsyn
Tamsyn is a monospaced bitmap font for programming available in regular and bold styles in sizes 5x9, 6x12, 7x13, 7x14, 8x15, 8x16, and 10x20 for both Xorg and vt(4). WWW: http://www.fial.com/~scott/tamsyn-font/
This commit is contained in:
parent
8bb418ca53
commit
ffac12d15b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=486403
@ -183,6 +183,7 @@
|
||||
SUBDIR += stix-fonts
|
||||
SUBDIR += suxus
|
||||
SUBDIR += symbola
|
||||
SUBDIR += tamsyn
|
||||
SUBDIR += terminus-font
|
||||
SUBDIR += terminus-ttf
|
||||
SUBDIR += tkfont
|
||||
|
83
x11-fonts/tamsyn/Makefile
Normal file
83
x11-fonts/tamsyn/Makefile
Normal file
@ -0,0 +1,83 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= tamsyn-font
|
||||
DISTVERSION= 1.11
|
||||
CATEGORIES= x11-fonts
|
||||
MASTER_SITES= http://www.fial.com/~scott/tamsyn-font/download/
|
||||
|
||||
MAINTAINER= tobik@FreeBSD.org
|
||||
COMMENT= Monospaced bitmap font for programming
|
||||
|
||||
LICENSE= TAMSYN
|
||||
LICENSE_NAME= Tamsyn License
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_DEFAULT= VT X11
|
||||
OPTIONS_MULTI= TYPE
|
||||
OPTIONS_MULTI_TYPE= VT X11
|
||||
.if !exists(/usr/bin/vtfontcvt)
|
||||
OPTIONS_EXCLUDE= VT
|
||||
.endif
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
TYPE_DESC= Font type
|
||||
VT_DESC= Install vt(4) fonts
|
||||
X11_DESC= Install Xorg bitmap fonts
|
||||
|
||||
VT_BUILD_DEPENDS= pcf2bdf:x11-fonts/pcf2bdf
|
||||
VT_CHARFIX_7x14= 168 # U+00A8 (DIAERESIS)
|
||||
VT_CHARFIX_8x15= 180 # U+00B4 (ACUTE ACCENT)
|
||||
VT_CHARFIX_8x16= 180
|
||||
|
||||
X11_USES= fonts
|
||||
X11_USES_OFF= fonts:none
|
||||
|
||||
do-build:
|
||||
@${DO_NADA}
|
||||
|
||||
do-build-VT-on:
|
||||
.for sz in 5x9 6x12 7x13 7x14 8x15 8x16 10x20
|
||||
pcf2bdf -o ${WRKSRC}/Tamsyn${sz}r.bdf ${WRKSRC}/Tamsyn${sz}r.pcf
|
||||
pcf2bdf -o ${WRKSRC}/Tamsyn${sz}b.bdf ${WRKSRC}/Tamsyn${sz}b.pcf
|
||||
.endfor
|
||||
.for sz in 5x9 6x12 7x13 7x14 8x15 8x16 10x20
|
||||
.if !empty(VT_CHARFIX_${sz})
|
||||
# Fix fonts that are missing some characters in the regular fonts
|
||||
# that are available in the bold fonts, which vtfontcvt does not
|
||||
# like.
|
||||
${MV} ${WRKSRC}/Tamsyn${sz}r.bdf \
|
||||
${WRKSRC}/Tamsyn${sz}r.bdf.orig
|
||||
${AWK} -f ${FILESDIR}/paste-char.awk \
|
||||
-v copy=${VT_CHARFIX_${sz}} \
|
||||
${WRKSRC}/Tamsyn${sz}b.bdf \
|
||||
${WRKSRC}/Tamsyn${sz}r.bdf.orig \
|
||||
> ${WRKSRC}/Tamsyn${sz}r.bdf
|
||||
.endif
|
||||
vtfontcvt ${sz:S/^/-w /:S/x/ -h /} \
|
||||
${WRKSRC}/Tamsyn${sz}r.bdf \
|
||||
${WRKSRC}/Tamsyn${sz}b.bdf \
|
||||
${WRKSRC}/Tamsyn${sz}.fnt
|
||||
.endfor
|
||||
|
||||
do-build-X11-on:
|
||||
${GZIP_CMD} ${WRKSRC}/*.pcf
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${FONTSDIR}
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
do-install-VT-on:
|
||||
${INSTALL_DATA} ${WRKSRC}/*.fnt ${STAGEDIR}${FONTSDIR}
|
||||
|
||||
do-install-X11-on:
|
||||
${INSTALL_DATA} ${FILESDIR}/fonts.alias ${WRKSRC}/*.pcf.gz \
|
||||
${STAGEDIR}${FONTSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
x11-fonts/tamsyn/distinfo
Normal file
3
x11-fonts/tamsyn/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1543700249
|
||||
SHA256 (tamsyn-font-1.11.tar.gz) = 97be1b604441b725548c454a92603993eb96e493f508845638a86c8d64fbf24e
|
||||
SIZE (tamsyn-font-1.11.tar.gz) = 58384
|
14
x11-fonts/tamsyn/files/fonts.alias
Normal file
14
x11-fonts/tamsyn/files/fonts.alias
Normal file
@ -0,0 +1,14 @@
|
||||
tamsyn-5x9 "-Misc-Tamsyn-Medium-R-Normal--9-65-100-100-C-50-ISO8859-1"
|
||||
tamsyn-bold-5x9 "-Misc-Tamsyn-Bold-R-Normal--9-65-100-100-C-50-ISO8859-1"
|
||||
tamsyn-6x12 "-Misc-Tamsyn-Medium-R-Normal--12-87-100-100-C-60-ISO8859-1"
|
||||
tamsyn-bold-6x12 "-Misc-Tamsyn-Bold-R-Normal--12-87-100-100-C-60-ISO8859-1"
|
||||
tamsyn-7x13 "-Misc-Tamsyn-Medium-R-Normal--13-94-100-100-C-70-ISO8859-1"
|
||||
tamsyn-bold-7x13 "-Misc-Tamsyn-Bold-R-Normal--13-94-100-100-C-70-ISO8859-1"
|
||||
tamsyn-7x14 "-Misc-Tamsyn-Medium-R-Normal--14-101-100-100-C-70-ISO8859-1"
|
||||
tamsyn-bold-7x14 "-Misc-Tamsyn-Bold-R-Normal--14-101-100-100-C-70-ISO8859-1"
|
||||
tamsyn-8x15 "-Misc-Tamsyn-Medium-R-Normal--15-108-100-100-C-80-ISO8859-1"
|
||||
tamsyn-bold-8x15 "-Misc-Tamsyn-Bold-R-Normal--15-108-100-100-C-80-ISO8859-1"
|
||||
tamsyn-8x16 "-Misc-Tamsyn-Medium-R-Normal--16-116-100-100-C-80-ISO8859-1"
|
||||
tamsyn-bold-8x16 "-Misc-Tamsyn-Bold-R-Normal--16-116-100-100-C-80-ISO8859-1"
|
||||
tamsyn-10x20 "-Misc-Tamsyn-Medium-R-Normal--20-145-100-100-C-100-ISO8859-1"
|
||||
tamsyn-bold-10x20 "-Misc-Tamsyn-Bold-R-Normal--20-145-100-100-C-100-ISO8859-1"
|
47
x11-fonts/tamsyn/files/paste-char.awk
Normal file
47
x11-fonts/tamsyn/files/paste-char.awk
Normal file
@ -0,0 +1,47 @@
|
||||
BEGIN {
|
||||
char = copy
|
||||
found = 0
|
||||
lineslen = 1
|
||||
paste = 0
|
||||
prevchar = -1
|
||||
}
|
||||
|
||||
paste {
|
||||
if ($1 == "CHARS") {
|
||||
printf "CHARS %s\n", $2 + 1
|
||||
} else {
|
||||
print
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/^STARTCHAR/, /^ENDCHAR/ {
|
||||
if (!paste) {
|
||||
lines[lineslen++] = $0
|
||||
}
|
||||
}
|
||||
|
||||
$1 == "ENCODING" {
|
||||
if ($2 == char) {
|
||||
found = 1
|
||||
char = prevchar
|
||||
}
|
||||
prevchar = $2
|
||||
}
|
||||
|
||||
$1 == "ENDCHAR" {
|
||||
if (paste && found) {
|
||||
print ""
|
||||
for (i = 1; i < lineslen; i++) {
|
||||
print lines[i]
|
||||
}
|
||||
found = 0
|
||||
} else if (found) {
|
||||
paste = 1
|
||||
found = 0
|
||||
nextfile
|
||||
} else if (!paste) {
|
||||
lineslen = 1
|
||||
found = 0
|
||||
}
|
||||
}
|
5
x11-fonts/tamsyn/pkg-descr
Normal file
5
x11-fonts/tamsyn/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Tamsyn is a monospaced bitmap font for programming available in
|
||||
regular and bold styles in sizes 5x9, 6x12, 7x13, 7x14, 8x15, 8x16,
|
||||
and 10x20 for both Xorg and vt(4).
|
||||
|
||||
WWW: http://www.fial.com/~scott/tamsyn-font/
|
23
x11-fonts/tamsyn/pkg-plist
Normal file
23
x11-fonts/tamsyn/pkg-plist
Normal file
@ -0,0 +1,23 @@
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn10x20.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn10x20b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn10x20r.pcf.gz
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn5x9.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn5x9b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn5x9r.pcf.gz
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn6x12.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn6x12b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn6x12r.pcf.gz
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn7x13.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn7x13b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn7x13r.pcf.gz
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn7x14.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn7x14b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn7x14r.pcf.gz
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn8x15.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn8x15b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn8x15r.pcf.gz
|
||||
%%VT%%%%FONTSDIR%%/Tamsyn8x16.fnt
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn8x16b.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/Tamsyn8x16r.pcf.gz
|
||||
%%X11%%%%FONTSDIR%%/fonts.alias
|
Loading…
Reference in New Issue
Block a user