git: 77bb4d5d3f87 - main - x11-fonts/gentium-plus-compact: New port: Gentium Plus TrueType font collection, compact variant

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 17 Mar 2025 17:16:46 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=77bb4d5d3f87a2a026ac9634e969bce66d0abbd2

commit 77bb4d5d3f87a2a026ac9634e969bce66d0abbd2
Author:     Zoltán Király <ports@zoltankiraly.com>
AuthorDate: 2025-03-17 17:06:23 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-03-17 17:06:23 +0000

    x11-fonts/gentium-plus-compact: New port: Gentium Plus TrueType font collection, compact variant
    
    https://software.sil.org/gentium/
    
    PR:     283804
---
 x11-fonts/Makefile                                 |  1 +
 x11-fonts/gentium-plus-compact/Makefile            | 55 ++++++++++++++++++++++
 x11-fonts/gentium-plus-compact/distinfo            |  3 ++
 .../gentium-plus-compact/files/pkg-message.in      | 17 +++++++
 x11-fonts/gentium-plus-compact/pkg-descr           | 16 +++++++
 5 files changed, 92 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index e87568b30c03..f3c6823e9698 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -127,6 +127,7 @@
     SUBDIR += gensen
     SUBDIR += gentium-basic
     SUBDIR += gentium-plus
+    SUBDIR += gentium-plus-compact
     SUBDIR += genwan
     SUBDIR += genyo
     SUBDIR += genyog
diff --git a/x11-fonts/gentium-plus-compact/Makefile b/x11-fonts/gentium-plus-compact/Makefile
new file mode 100644
index 000000000000..ef768996350b
--- /dev/null
+++ b/x11-fonts/gentium-plus-compact/Makefile
@@ -0,0 +1,55 @@
+PORTNAME=	GentiumPlusCompact
+DISTVERSION=	6.200
+CATEGORIES=	x11-fonts
+# Use the port maintainer's GitHub to fetch the font, since the SIL server
+# embeds dynamic content into the file.
+MASTER_SITES=	https://raw.githubusercontent.com/zoliky/distfiles/refs/heads/main/
+
+MAINTAINER=	ports@zoltankiraly.com
+COMMENT=	Gentium Plus TrueType font collection, compact variant
+WWW=		https://software.sil.org/gentium/
+
+LICENSE=	OFL11
+LICENSE_FILE=	${WRKSRC}/OFL.txt
+
+USES=		fonts zip
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+PLIST_FILES=	${FONTSDIR}/GentiumBookPlusCompact-Bold.ttf       \
+		${FONTSDIR}/GentiumBookPlusCompact-BoldItalic.ttf \
+		${FONTSDIR}/GentiumBookPlusCompact-Italic.ttf     \
+		${FONTSDIR}/GentiumBookPlusCompact-Regular.ttf    \
+		${FONTSDIR}/GentiumPlusCompact-Bold.ttf           \
+		${FONTSDIR}/GentiumPlusCompact-BoldItalic.ttf     \
+		${FONTSDIR}/GentiumPlusCompact-Italic.ttf         \
+		${FONTSDIR}/GentiumPlusCompact-Regular.ttf
+
+DOCSLIST=	FONTLOG.txt OFL-FAQ.txt README.txt         \
+		documentation/pdf/resources.pdf            \
+		documentation/pdf/features.pdf             \
+		documentation/pdf/developer.pdf            \
+		documentation/pdf/design.pdf               \
+		documentation/pdf/faq.pdf                  \
+		documentation/pdf/about.pdf                \
+		documentation/pdf/history.pdf              \
+		documentation/pdf/index.pdf                \
+		documentation/pdf/charset.pdf              \
+		documentation/pdf/support.pdf              \
+		documentation/pdf/versions.pdf
+PORTDOCS=	${DOCSLIST:C,^.*/,,}
+
+OPTIONS_DEFINE=	DOCS
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}${FONTSDIR}
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCSLIST:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/gentium-plus-compact/distinfo b/x11-fonts/gentium-plus-compact/distinfo
new file mode 100644
index 000000000000..e51718442da1
--- /dev/null
+++ b/x11-fonts/gentium-plus-compact/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1741720487
+SHA256 (GentiumPlusCompact-6.200.zip) = 66d29b34d8c8306088a43c05ecedbaf60baeea61dcd96ddcc53a1da718a832d6
+SIZE (GentiumPlusCompact-6.200.zip) = 4176084
diff --git a/x11-fonts/gentium-plus-compact/files/pkg-message.in b/x11-fonts/gentium-plus-compact/files/pkg-message.in
new file mode 100644
index 000000000000..0b3cc2d3ff66
--- /dev/null
+++ b/x11-fonts/gentium-plus-compact/files/pkg-message.in
@@ -0,0 +1,17 @@
+[
+{ type: install
+  message: <<EOM
+To use these fonts, add the following line to the "Files" section of
+xorg.conf:
+
+	FontPath "%%FONTSDIR%%/"
+
+Users of older versions of X may additionally have to make sure that
+the freetype module is loaded.  Check /var/log/Xorg.0.log for error
+messages.  If freetype is required, add the following line to the
+"Modules" section of xorg.conf:
+
+	Load "freetype"
+EOM
+}
+]
diff --git a/x11-fonts/gentium-plus-compact/pkg-descr b/x11-fonts/gentium-plus-compact/pkg-descr
new file mode 100644
index 000000000000..75f2c7502b34
--- /dev/null
+++ b/x11-fonts/gentium-plus-compact/pkg-descr
@@ -0,0 +1,16 @@
+Gentium is a typeface family designed to enable the diverse ethnic
+groups around the world who use the Latin, Cyrillic and Greek scripts
+to produce readable, high-quality publications. It supports a wide
+range of Latin- and Cyrillic-based alphabets.
+
+The design is intended to be highly readable, reasonably compact, and
+visually attractive. The Latin letters are designed to naturally
+harmonize with the traditional 26 ones. Diacritics are treated with
+careful thought and attention to their use. Gentium also supports both
+polytonic and monotonic Greek. Gentium Plus now includes more extended
+Latin glyphs (Unicode 5.1), archaic Greek symbols, and full extended
+Cyrillic script support.
+
+This compact variant has been created with TypeTuner Web, by setting
+the "Line spacing" feature to "Tight", and will not be able to be
+TypeTuned again.