aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2008-05-10 06:50:57 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2008-05-10 06:50:57 +0000
commitd3265ce5d68fbcca6e63172bf8f8e37188ef89f7 (patch)
tree55d6a3069a4d01ae3ee7ab77d44f746a62e7373a /x11-fonts
parentb4e002bef707283f73ec87d3a9217752feea8dbe (diff)
downloadports-d3265ce5d68fbcca6e63172bf8f8e37188ef89f7.tar.gz
ports-d3265ce5d68fbcca6e63172bf8f8e37188ef89f7.zip
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/Makefile1
-rw-r--r--x11-fonts/code2001/Makefile44
-rw-r--r--x11-fonts/code2001/distinfo3
-rw-r--r--x11-fonts/code2001/pkg-descr5
-rw-r--r--x11-fonts/code2001/pkg-plist7
5 files changed, 60 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index 10ba9ae0adeb..df534dd46be7 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -16,6 +16,7 @@
SUBDIR += bitstream-vera
SUBDIR += c64bdf
SUBDIR += code2000
+ SUBDIR += code2001
SUBDIR += cyberbit-ttfonts
SUBDIR += cyr-rfx
SUBDIR += dejavu
diff --git a/x11-fonts/code2001/Makefile b/x11-fonts/code2001/Makefile
new file mode 100644
index 000000000000..d9dc37c751cb
--- /dev/null
+++ b/x11-fonts/code2001/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: Code2001
+# Date created: 10 May 2008
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= code2001
+PORTVERSION= 0.919
+CATEGORIES= x11-fonts
+MASTER_SITES= http://code2000.net/ CENKES/myports/${DIST_SUBDIR}
+DISTFILES= ${PORTNAME:U}${EXTRACT_SUFX:U}
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Free Plane 1 Unicode-based Font
+
+BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
+ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+
+USE_ZIP= yes
+PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
+FONTNAME= ${PORTNAME}
+FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
+
+MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
+MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
+FCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v
+
+post-extract:
+ @${MKDIR} ${WRKSRC}/
+ @${MV} ${WRKDIR}/CODE2001.TTF ${WRKSRC}/${FONTNAME}.ttf
+
+do-build:
+ @cd ${WRKSRC}/ && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD}
+
+do-install:
+ @${INSTALL} -d ${FONTSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/* ${FONTSDIR}/
+ @${ECHO_MSG} "===> Running fc-cache"
+ -${FCCACHE_CMD} ${FONTSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/code2001/distinfo b/x11-fonts/code2001/distinfo
new file mode 100644
index 000000000000..be13d8834c79
--- /dev/null
+++ b/x11-fonts/code2001/distinfo
@@ -0,0 +1,3 @@
+MD5 (code2001-0.919/CODE2001.ZIP) = d14291cea24f4f89df5d226f4e2b1307
+SHA256 (code2001-0.919/CODE2001.ZIP) = 6e8173132072d099db5bdc3f8035a2519f6d92d65beab75efd0c3b697c8fe048
+SIZE (code2001-0.919/CODE2001.ZIP) = 212279
diff --git a/x11-fonts/code2001/pkg-descr b/x11-fonts/code2001/pkg-descr
new file mode 100644
index 000000000000..dd03cddd07e9
--- /dev/null
+++ b/x11-fonts/code2001/pkg-descr
@@ -0,0 +1,5 @@
+Code2001 is a Plane 1 Unicode-based font (TTF). The font is correctly
+encoded for Plane 1 per the latest TTF/OTF specifications.
+
+WWW: http://code2000.net/code2001.htm
+Author: James Kass
diff --git a/x11-fonts/code2001/pkg-plist b/x11-fonts/code2001/pkg-plist
new file mode 100644
index 000000000000..abbe63b17e84
--- /dev/null
+++ b/x11-fonts/code2001/pkg-plist
@@ -0,0 +1,7 @@
+%%FONTSDIR%%/code2001.ttf
+%%FONTSDIR%%/fonts.dir
+%%FONTSDIR%%/fonts.scale
+@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
+@unexec rm -f %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || true
+@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
+@dirrm %%FONTSDIR%%