git: 05edfd8dce10 - main - Add x11-fonts/monaspace: Innovative superfamily of fonts for code

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Sun, 12 Nov 2023 16:35:54 UTC
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05edfd8dce10cd56bfc17c35a3901e373bd0b002

commit 05edfd8dce10cd56bfc17c35a3901e373bd0b002
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2023-11-12 16:34:50 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2023-11-12 16:34:50 +0000

    Add x11-fonts/monaspace: Innovative superfamily of fonts for code
---
 x11-fonts/Makefile            |  1 +
 x11-fonts/monaspace/Makefile  | 28 ++++++++++++++++++++++++++++
 x11-fonts/monaspace/distinfo  |  3 +++
 x11-fonts/monaspace/pkg-descr |  6 ++++++
 4 files changed, 38 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index e229424c7217..14519d64d75b 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -178,6 +178,7 @@
     SUBDIR += mkbold-mkitalic
     SUBDIR += mkfontscale
     SUBDIR += mkitalic
+    SUBDIR += monaspace
     SUBDIR += mondulkiri
     SUBDIR += monoid
     SUBDIR += montecarlo_fonts
diff --git a/x11-fonts/monaspace/Makefile b/x11-fonts/monaspace/Makefile
new file mode 100644
index 000000000000..381b4e7e94ba
--- /dev/null
+++ b/x11-fonts/monaspace/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	monaspace
+DISTVERSION=	1.000
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://github.com/githubnext/monaspace/releases/download/v${DISTVERSION}/
+DISTNAME=	${PORTNAME}-v${DISTVERSION}
+
+MAINTAINER=	lwhsu@FreeBSD.org
+COMMENT=	Innovative superfamily of fonts for code
+WWW=		https://monaspace.githubnext.com
+
+LICENSE=	OFL11
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		fonts zip
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${FONTSDIR}
+
+	${INSTALL_DATA} ${WRKSRC}/fonts/otf/*.otf ${STAGEDIR}${FONTSDIR}
+	${LS} ${STAGEDIR}${FONTSDIR}/*.otf | ${SED} -e's,^${STAGEDIR},,' >> ${TMPPLIST}
+
+	${INSTALL_DATA} ${WRKSRC}/fonts/variable/*.ttf ${STAGEDIR}${FONTSDIR}
+	${LS} ${STAGEDIR}${FONTSDIR}/*.ttf | ${SED} -e's,^${STAGEDIR},,' >> ${TMPPLIST}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/monaspace/distinfo b/x11-fonts/monaspace/distinfo
new file mode 100644
index 000000000000..689f6e3fcf32
--- /dev/null
+++ b/x11-fonts/monaspace/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699806018
+SHA256 (monaspace-v1.000.zip) = 3e08376fd0aeca1f851fde0c08e18ca2d797f6a4c7a449670bf4d1270303c8f6
+SIZE (monaspace-v1.000.zip) = 122949327
diff --git a/x11-fonts/monaspace/pkg-descr b/x11-fonts/monaspace/pkg-descr
new file mode 100644
index 000000000000..3aa159d366b4
--- /dev/null
+++ b/x11-fonts/monaspace/pkg-descr
@@ -0,0 +1,6 @@
+The Monaspace type system is a monospaced type superfamily with some modern
+tricks up its sleeve. It consists of five variable axis typefaces. Each one has
+a distinct voice, but they are all metrics-compatible with one another,
+allowing you to mix and match them for a more expressive typographical palette.
+
+Letters on a grid is how we see our code. Why not make those letters better?