aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/gentium
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-04-04 23:08:07 +0800
committerthierry <thierry@FreeBSD.org>2004-04-04 23:08:07 +0800
commit55fa1b646e9e153861e1e2ca07e53106e05ff8ad (patch)
tree621e92cee3a7f1a8b466fa5df2fb7045fd60f33d /x11-fonts/gentium
parentc871e3b6fbca17d35bfad8636cfe65e1d3783a77 (diff)
downloadfreebsd-ports-gnome-55fa1b646e9e153861e1e2ca07e53106e05ff8ad.tar.gz
freebsd-ports-gnome-55fa1b646e9e153861e1e2ca07e53106e05ff8ad.tar.zst
freebsd-ports-gnome-55fa1b646e9e153861e1e2ca07e53106e05ff8ad.zip
Add gentium 1.0.1, gentium TrueType font collection.
PR: 65044 Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> Approved by: mat (mentor)
Diffstat (limited to 'x11-fonts/gentium')
-rw-r--r--x11-fonts/gentium/Makefile97
-rw-r--r--x11-fonts/gentium/distinfo2
-rw-r--r--x11-fonts/gentium/files/fonts.dir45
-rw-r--r--x11-fonts/gentium/pkg-descr7
-rw-r--r--x11-fonts/gentium/pkg-message15
-rw-r--r--x11-fonts/gentium/pkg-plist24
6 files changed, 190 insertions, 0 deletions
diff --git a/x11-fonts/gentium/Makefile b/x11-fonts/gentium/Makefile
new file mode 100644
index 000000000000..e95c7b027ccb
--- /dev/null
+++ b/x11-fonts/gentium/Makefile
@@ -0,0 +1,97 @@
+# New ports collection makefile for: Gentium Font Family
+# Date created: March 31 2004
+# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk>
+#
+# $FreeBSD$
+#
+# This port is shamelessly copied from Joe Marcus Clarke's bitstream-vera
+# port.
+#
+# A note about MASTER_SITES. The bsd.port.mk system, expects (not
+# unreasonably) that the name of the distfile being fetched should be
+# the last component of the URL it passes to fetch(1). Unfortunately,
+# in this case the master site uses some sort of fancy content
+# management system and the URL required to download the distfile is
+# strictly:
+#
+# http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=Gentium_101_LT&_sc=1
+#
+# No mention of the distfile there. Hack around the problem by adding
+# a dummy argument to the CGI arg list, which the site ignores, but
+# that serves to placate bsd.ports.mk
+
+PORTNAME= gentium
+PORTVERSION= 1.0.1
+CATEGORIES= x11-fonts
+MASTER_SITES= http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=Gentium_101_LT&_sc=1&dummy=/
+DISTNAME= fonts-ttf-${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= m.seaman@infracaninophile.co.uk
+COMMENT= Gentium TrueType font collection
+
+BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+NO_CDROM= License forbids commercial distribution without permission
+NO_BUILD= yes
+
+PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" \
+ FONTNAME=${FONTNAME}
+
+MSG_FILE= ${PKGDIR}/pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+#
+# Local variables
+#
+
+FONTNAME= ${PORTNAME}
+FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
+
+DOCSLIST= CHANGELOG FAQ Gentium-Greek-Specimen.pdf \
+ Gentium-RU-A3Proofs.pdf Gentium-RU-Specimen.pdf \
+ HISTORY INSTALL ISSUES QUOTES README THANKS
+
+.SILENT:
+
+post-patch:
+ ${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
+
+#
+# Install
+#
+
+do-install: install-fonts install-conf install-docs
+
+install-fonts:
+ ${MKDIR} ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
+ ${INSTALL_DATA} ${FILESDIR}/fonts.dir ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${FONTSDIR}
+
+install-conf:
+ ${MKDIR} ${PREFIX}/etc/fonts
+ if [ ! -f ${PREFIX}/etc/fonts/local.conf ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/local.conf ${PREFIX}/etc/fonts ; \
+ fi
+ ${INSTALL_DATA} ${WRKSRC}/local.conf \
+ ${PREFIX}/etc/fonts/local.conf-${FONTNAME}
+
+install-docs:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ @for doc in ${DOCSLIST} ; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$doc ${DOCSDIR} ; \
+ done
+.endif
+
+post-install:
+ ${ECHO_MSG} "===> Running fc-cache"
+ -${X11BASE}/bin/fc-cache -f -v ${FONTSDIR}
+ ${ECHO_MSG}
+ ${CAT} ${PKGMESSAGE}
+ ${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/gentium/distinfo b/x11-fonts/gentium/distinfo
new file mode 100644
index 000000000000..f38259c4549e
--- /dev/null
+++ b/x11-fonts/gentium/distinfo
@@ -0,0 +1,2 @@
+MD5 (fonts-ttf-gentium-1.0.1.tar.bz2) = 78eea9e9831768bdb8aae7ee9a2e7782
+SIZE (fonts-ttf-gentium-1.0.1.tar.bz2) = 1789522
diff --git a/x11-fonts/gentium/files/fonts.dir b/x11-fonts/gentium/files/fonts.dir
new file mode 100644
index 000000000000..77e808e5e851
--- /dev/null
+++ b/x11-fonts/gentium/files/fonts.dir
@@ -0,0 +1,45 @@
+44
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-ascii-0
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-fcd8859-15
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso10646-1
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-1
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-10
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-15
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-2
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-3
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-4
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-7
+GentiumI.ttf -misc-Gentium-medium-i-normal--0-0-0-0-p-0-iso8859-9
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-ascii-0
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-fcd8859-15
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso10646-1
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-1
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-10
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-15
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-2
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-3
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-4
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-7
+GentiumAlt.ttf -misc-GentiumAlt-medium-r-normal--0-0-0-0-p-0-iso8859-9
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-ascii-0
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-fcd8859-15
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso10646-1
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-1
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-10
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-15
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-2
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-3
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-4
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-7
+GentiumAItI.ttf -misc-GentiumAlt-medium-i-normal--0-0-0-0-p-0-iso8859-9
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-ascii-0
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-fcd8859-15
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso10646-1
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-1
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-10
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-15
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-2
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-3
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-4
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-7
+Gentium.ttf -misc-Gentium-medium-r-normal--0-0-0-0-p-0-iso8859-9
diff --git a/x11-fonts/gentium/pkg-descr b/x11-fonts/gentium/pkg-descr
new file mode 100644
index 000000000000..fc9526740b42
--- /dev/null
+++ b/x11-fonts/gentium/pkg-descr
@@ -0,0 +1,7 @@
+Gentium is a typeface family designed to enable the diverse ethnic
+groups around the world who use the Latin script to produce readable,
+high-quality publications. It supports a wide range of Latin-based
+alphabets and includes glyphs that correspond to all the Latin ranges
+of Unicode.
+
+WWW: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=Gentium
diff --git a/x11-fonts/gentium/pkg-message b/x11-fonts/gentium/pkg-message
new file mode 100644
index 000000000000..f2cc5d30720f
--- /dev/null
+++ b/x11-fonts/gentium/pkg-message
@@ -0,0 +1,15 @@
+IMPORTANT - READ CAREFULLY: Please read the COPYRIGHT included with these fonts
+before using. The copyright can be found at
+
+ %%FONTSDIR%%/COPYING.
+
+To use these fonts, follow the instructions below.
+
+Make sure that the freetype module is loaded. If it is not, add the following
+line to the "Modules" section of XF86Config:
+
+ Load "freetype"
+
+Add the following line to the "Files" section of XF86Config:
+
+ FontPath "%%FONTSDIR%%/"
diff --git a/x11-fonts/gentium/pkg-plist b/x11-fonts/gentium/pkg-plist
new file mode 100644
index 000000000000..33f6e4053e15
--- /dev/null
+++ b/x11-fonts/gentium/pkg-plist
@@ -0,0 +1,24 @@
+@unexec if cmp -s %D/etc/fonts/local.conf %D/etc/fonts/local.conf-%%FONTNAME%%; then rm -f %D/etc/fonts/local.conf; fi
+etc/fonts/local.conf-%%FONTNAME%%
+@exec [ ! -f %B/local.conf ] && cp %B/%f %B/local.conf
+%%FONTSDIR%%/COPYING
+%%FONTSDIR%%/fonts.dir
+%%FONTSDIR%%/Gentium.ttf
+%%FONTSDIR%%/GentiumAItI.ttf
+%%FONTSDIR%%/GentiumAlt.ttf
+%%FONTSDIR%%/GentiumI.ttf
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/FAQ
+%%PORTDOCS%%%%DOCSDIR%%/Gentium-Greek-Specimen.pdf
+%%PORTDOCS%%%%DOCSDIR%%/Gentium-RU-A3Proofs.pdf
+%%PORTDOCS%%%%DOCSDIR%%/Gentium-RU-Specimen.pdf
+%%PORTDOCS%%%%DOCSDIR%%/HISTORY
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/ISSUES
+%%PORTDOCS%%%%DOCSDIR%%/QUOTES
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/THANKS
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
+@dirrm %%FONTSDIR%%
+@exec %%X11BASE%%/bin/fc-cache -f -v %%FONTSDIR%% || /usr/bin/true