Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2019 02:06:25 +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: r490696 - head/x11-fonts/spleen
Message-ID:  <201901190206.x0J26PVN085874@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Jan 19 02:06:24 2019
New Revision: 490696
URL: https://svnweb.freebsd.org/changeset/ports/490696

Log:
  x11-fonts/spleen: Use x11-fonts/vtfontcvt-ng
  
  and drop other workarounds for the buggy/incomplete base vtfontcvt(8).
  
  We still check for /usr/bin/vtfontcvt in the port as an easy way
  to exclude the VT option on systems where users have opted out of
  vt(4) entirely or on DragonFly where it does not make sense to
  provide vt(4) fonts.

Modified:
  head/x11-fonts/spleen/Makefile
  head/x11-fonts/spleen/distinfo

Modified: head/x11-fonts/spleen/Makefile
==============================================================================
--- head/x11-fonts/spleen/Makefile	Sat Jan 19 02:05:38 2019	(r490695)
+++ head/x11-fonts/spleen/Makefile	Sat Jan 19 02:06:24 2019	(r490696)
@@ -2,6 +2,7 @@
 
 PORTNAME=	spleen
 DISTVERSION=	1.0.3
+PORTREVISION=	1
 CATEGORIES=	x11-fonts
 MASTER_SITES=	https://github.com/fcambus/spleen/releases/download/${DISTVERSION}/
 PKGNAMESUFFIX=	-font
@@ -29,19 +30,15 @@ TYPE_DESC=		Font type
 VT_DESC=		Install vt(4) fonts
 X11_DESC=		Install Xorg bitmap fonts
 
-# 32x64 appears to be too large for vtfontcvt in supported FreeBSD
-# releases, cf. PR 205707.  Provide a pregenerated file for now.
-VT_DISTFILES=		spleen-${PORTVERSION}/spleen-32x64.fnt.gz:spleenvt32
-VT_MASTER_SITES=	LOCAL/tobik:spleenvt32
+# vtfontcvt is broken with large fonts, so use Dmitry Wagin's
+# improved version from https://bugs.freebsd.org/205707 that
+# doesn't have this problem.
+VT_BUILD_DEPENDS=	vtfontcvt-ng:x11-fonts/vtfontcvt-ng
 
 X11_BUILD_DEPENDS=	bdftopcf:x11-fonts/bdftopcf
 X11_USES=		fonts
 X11_USES_OFF=		fonts:none
 
-post-extract-VT-on:
-	${GUNZIP_CMD} -c ${DISTDIR}/spleen-${PORTVERSION}/spleen-32x64.fnt.gz \
-		> ${WRKSRC}/spleen-32x64.fnt
-
 post-patch:
 	@${REINPLACE_CMD} -E 's/^FONT "(.*)"$$/FONT \1/g' ${WRKSRC}/*.bdf
 
@@ -49,9 +46,8 @@ do-build:
 	@${DO_NADA}
 
 do-build-VT-on:
-.for sz in 5x8 8x16 12x24 16x32
-	vtfontcvt ${sz:S/^/-w /:S/x/ -h /} \
-		${WRKSRC}/spleen-${sz}.bdf ${WRKSRC}/spleen-${sz}.fnt
+.for sz in 5x8 8x16 12x24 16x32 32x64
+	vtfontcvt-ng ${WRKSRC}/spleen-${sz}.bdf ${WRKSRC}/spleen-${sz}.fnt
 .endfor
 
 do-build-X11-on:

Modified: head/x11-fonts/spleen/distinfo
==============================================================================
--- head/x11-fonts/spleen/distinfo	Sat Jan 19 02:05:38 2019	(r490695)
+++ head/x11-fonts/spleen/distinfo	Sat Jan 19 02:06:24 2019	(r490696)
@@ -1,5 +1,3 @@
 TIMESTAMP = 1543783491
 SHA256 (spleen-1.0.3.tar.gz) = f63ef1dd84e27545b0a42389d0bd4e58393aab211a5d2ce936ebaa97be0672cb
 SIZE (spleen-1.0.3.tar.gz) = 45934
-SHA256 (spleen-1.0.3/spleen-32x64.fnt.gz) = 53100baaaee1b68c0c7ac41f1b42fbb77d7d964e8309b9ed3de41b5ff69afbb8
-SIZE (spleen-1.0.3/spleen-32x64.fnt.gz) = 3481



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