[Midnightbsd-cvs] mports: mports/x11-fonts: Add Redhat's LIberation fonts.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Jun 26 13:56:55 EDT 2008


Log Message:
-----------
Add Redhat's LIberation fonts.

Modified Files:
--------------
    mports/x11-fonts:
        Makefile (r1.8 -> r1.9)

Added Files:
-----------
    mports/x11-fonts/liberation-fonts-ttf:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/x11-fonts/liberation-fonts-ttf/files:
        pkg-message.in (r1.1)

-------------- next part --------------
--- /dev/null
+++ x11-fonts/liberation-fonts-ttf/pkg-descr
@@ -0,0 +1,10 @@
+LIBERATION font software consists of TrueType-OpenType formatted font software
+for rendering LIBERATION typefaces in sans serif, serif, and monospaced
+character styles.
+
+There are three sets: Sans (a substitute for Arial, Albany, Helvetica, Nimbus
+Sans L, and Bitstream Vera Sans), Serif (a substitute for Times New Roman,
+Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono (a substitute for
+Courier New, Cumberland, Courier, Nimbus Mono L, and Bitstream Vera Sans Mono).
+
+WWW: https://www.redhat.com/promo/fonts/
--- /dev/null
+++ x11-fonts/liberation-fonts-ttf/pkg-plist
@@ -0,0 +1,18 @@
+ at comment $FreeBSD: ports/x11-fonts/liberation-fonts-ttf/pkg-plist,v 1.2 2008/06/11 20:41:13 thierry Exp $
+%%FONTDIR%%/LiberationMono-Bold.ttf
+%%FONTDIR%%/LiberationMono-BoldItalic.ttf
+%%FONTDIR%%/LiberationMono-Italic.ttf
+%%FONTDIR%%/LiberationMono-Regular.ttf
+%%FONTDIR%%/LiberationSans-Bold.ttf
+%%FONTDIR%%/LiberationSans-BoldItalic.ttf
+%%FONTDIR%%/LiberationSans-Italic.ttf
+%%FONTDIR%%/LiberationSans-Regular.ttf
+%%FONTDIR%%/LiberationSerif-Bold.ttf
+%%FONTDIR%%/LiberationSerif-BoldItalic.ttf
+%%FONTDIR%%/LiberationSerif-Italic.ttf
+%%FONTDIR%%/LiberationSerif-Regular.ttf
+%%FONTDIR%%/License.txt
+%%FONTDIR%%/fonts.dir
+%%FONTDIR%%/fonts.scale
+ at rmtry %%FONTDIR%%/fonts.cache-1
+ at dirrm %%FONTDIR%%
--- /dev/null
+++ x11-fonts/liberation-fonts-ttf/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for:	Liberation fonts
+# Date created:		17 May 2007
+# Whom:			Thierry Thomas <thierry at pompo.net>
+#
+# $MidnightBSD: mports/x11-fonts/liberation-fonts-ttf/Makefile,v 1.1 2008/06/26 17:56:52 laffer1 Exp $
+# $FreeBSD: ports/x11-fonts/liberation-fonts-ttf/Makefile,v 1.4 2008/06/11 20:41:13 thierry Exp $
+#
+
+PORTNAME=	liberation-fonts-ttf
+PORTVERSION=	1.0
+CATEGORIES=	x11-fonts
+MASTER_SITES=	https://www.redhat.com/f/fonts/
+DISTNAME=	liberation-fonts
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Liberation fonts from Red Hat to replace MS TTF fonts
+LICENSE=	restricted
+# possible licensing issues.
+
+BUILD_DEPENDS=	mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale	\
+		mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+
+USE_XORG=	x11
+
+PLIST_SUB=	FONTDIR="${FONTDIR:S|${PREFIX}/||}"
+
+SUB_FILES=	pkg-message
+PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_LIST=	FONTDIR=${FONTDIR}
+
+FONTNAME=	Liberation
+FONTDIR=	${PREFIX}/lib/X11/fonts/${FONTNAME}
+INSTDAT=	License.txt fonts.dir fonts.scale
+
+MKFONTSCL_CMD=	${LOCALBASE}/bin/mkfontscale
+MKFONTDIR_CMD=	${LOCALBASE}/bin/mkfontdir
+
+do-build:
+	cd ${WRKSRC} &&	\
+	${MKFONTSCL_CMD}
+	${REINPLACE_CMD} -e 's|-misc-|-redhat-|' ${WRKSRC}/fonts.scale
+	cd ${WRKSRC} &&	\
+	${MKFONTDIR_CMD}
+
+do-install:
+	${MKDIR} ${FONTDIR}
+	cd ${WRKSRC} &&	\
+	${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
+
+.include <bsd.port.mk>
--- /dev/null
+++ x11-fonts/liberation-fonts-ttf/distinfo
@@ -0,0 +1,3 @@
+MD5 (liberation-fonts.tar.gz) = f7d82c491914a318a6f0d426c5eb1432
+SHA256 (liberation-fonts.tar.gz) = 5749c27f3deb5da323961e86efed1306fc072bea9065790d0047ad61471be6a5
+SIZE (liberation-fonts.tar.gz) = 1863680
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/x11-fonts/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -L x11-fonts/Makefile -L x11-fonts/Makefile -u -r1.8 -r1.9
--- x11-fonts/Makefile
+++ x11-fonts/Makefile
@@ -53,6 +53,7 @@
     SUBDIR += libXfont
     SUBDIR += libXfontcache
     SUBDIR += libXft
+    SUBDIR += liberation-fonts-ttf
     SUBDIR += libfontenc
     SUBDIR += linux-fontconfig
     SUBDIR += mkfontdir
--- /dev/null
+++ x11-fonts/liberation-fonts-ttf/files/pkg-message.in
@@ -0,0 +1,10 @@
+You can start using the fonts by following these instructions:
+
+Make sure that the freetype module is loaded.  If it is not, add the following
+line to the "Modules" section of your X11 / x.org configuration file:
+
+	Load "freetype"
+
+Add the following line to the "Files" section:
+
+	FontPath "%%FONTDIR%%/"


More information about the Midnightbsd-cvs mailing list