Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2018 10:10:58 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r486403 - in head/x11-fonts: . tamsyn tamsyn/files
Message-ID:  <201812021010.wB2AAwsa007609@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Dec  2 10:10:58 2018
New Revision: 486403
URL: https://svnweb.freebsd.org/changeset/ports/486403

Log:
  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/

Added:
  head/x11-fonts/tamsyn/
  head/x11-fonts/tamsyn/Makefile   (contents, props changed)
  head/x11-fonts/tamsyn/distinfo   (contents, props changed)
  head/x11-fonts/tamsyn/files/
  head/x11-fonts/tamsyn/files/fonts.alias   (contents, props changed)
  head/x11-fonts/tamsyn/files/paste-char.awk   (contents, props changed)
  head/x11-fonts/tamsyn/pkg-descr   (contents, props changed)
  head/x11-fonts/tamsyn/pkg-plist   (contents, props changed)
Modified:
  head/x11-fonts/Makefile

Modified: head/x11-fonts/Makefile
==============================================================================
--- head/x11-fonts/Makefile	Sun Dec  2 10:05:59 2018	(r486402)
+++ head/x11-fonts/Makefile	Sun Dec  2 10:10:58 2018	(r486403)
@@ -183,6 +183,7 @@
     SUBDIR += stix-fonts
     SUBDIR += suxus
     SUBDIR += symbola
+    SUBDIR += tamsyn
     SUBDIR += terminus-font
     SUBDIR += terminus-ttf
     SUBDIR += tkfont

Added: head/x11-fonts/tamsyn/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fonts/tamsyn/Makefile	Sun Dec  2 10:10:58 2018	(r486403)
@@ -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>

Added: head/x11-fonts/tamsyn/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fonts/tamsyn/distinfo	Sun Dec  2 10:10:58 2018	(r486403)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1543700249
+SHA256 (tamsyn-font-1.11.tar.gz) = 97be1b604441b725548c454a92603993eb96e493f508845638a86c8d64fbf24e
+SIZE (tamsyn-font-1.11.tar.gz) = 58384

Added: head/x11-fonts/tamsyn/files/fonts.alias
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fonts/tamsyn/files/fonts.alias	Sun Dec  2 10:10:58 2018	(r486403)
@@ -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"

Added: head/x11-fonts/tamsyn/files/paste-char.awk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fonts/tamsyn/files/paste-char.awk	Sun Dec  2 10:10:58 2018	(r486403)
@@ -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
+	}
+}

Added: head/x11-fonts/tamsyn/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fonts/tamsyn/pkg-descr	Sun Dec  2 10:10:58 2018	(r486403)
@@ -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/

Added: head/x11-fonts/tamsyn/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-fonts/tamsyn/pkg-plist	Sun Dec  2 10:10:58 2018	(r486403)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812021010.wB2AAwsa007609>