aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/kaputa
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2008-05-20 11:17:14 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2008-05-20 11:17:14 +0000
commitc8f71402ce2876821586ff1d62254d7881de0d2c (patch)
tree59e480248304c23144b90960b1b5fcb0874465c8 /x11-fonts/kaputa
parent57c69d0c248f6d153deba77d0ea36bd34b93fcbf (diff)
downloadports-c8f71402ce2876821586ff1d62254d7881de0d2c.tar.gz
ports-c8f71402ce2876821586ff1d62254d7881de0d2c.zip
Notes
Diffstat (limited to 'x11-fonts/kaputa')
-rw-r--r--x11-fonts/kaputa/Makefile45
-rw-r--r--x11-fonts/kaputa/distinfo3
-rw-r--r--x11-fonts/kaputa/pkg-descr4
-rw-r--r--x11-fonts/kaputa/pkg-plist7
4 files changed, 59 insertions, 0 deletions
diff --git a/x11-fonts/kaputa/Makefile b/x11-fonts/kaputa/Makefile
new file mode 100644
index 000000000000..c140745235f1
--- /dev/null
+++ b/x11-fonts/kaputa/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: kaputa
+# Date created: 20 May 2008
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= kaputa
+PORTVERSION= 1.000
+CATEGORIES= x11-fonts
+MASTER_SITES= http://www.info.lk/slword/ \
+ CENKES/myports/${DIST_SUBDIR}
+DISTNAME= ${PORTNAME}unicode
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Free unicode font for Sinhala script
+
+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}/kaputaunicode.ttf ${WRKSRC}/kaputa.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/kaputa/distinfo b/x11-fonts/kaputa/distinfo
new file mode 100644
index 000000000000..594d7f09055e
--- /dev/null
+++ b/x11-fonts/kaputa/distinfo
@@ -0,0 +1,3 @@
+MD5 (kaputa-1.000/kaputaunicode.zip) = 865e3587715d44c277e98222e937ded2
+SHA256 (kaputa-1.000/kaputaunicode.zip) = fb905860bbe9a6fcf51479c68cfd6415f12b300331c7a541c3a8c1f7d791cde8
+SIZE (kaputa-1.000/kaputaunicode.zip) = 76171
diff --git a/x11-fonts/kaputa/pkg-descr b/x11-fonts/kaputa/pkg-descr
new file mode 100644
index 000000000000..d6ba93142b2a
--- /dev/null
+++ b/x11-fonts/kaputa/pkg-descr
@@ -0,0 +1,4 @@
+Kaputa is a Unicode TrueType font for the Sinhalese script.
+
+WWW: http://www.kaputa.com/slword/kaputaunicode.htm
+Author: Thusitha Randunuge
diff --git a/x11-fonts/kaputa/pkg-plist b/x11-fonts/kaputa/pkg-plist
new file mode 100644
index 000000000000..16c0347f690b
--- /dev/null
+++ b/x11-fonts/kaputa/pkg-plist
@@ -0,0 +1,7 @@
+%%FONTSDIR%%/fonts.dir
+%%FONTSDIR%%/fonts.scale
+%%FONTSDIR%%/kaputa.ttf
+@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%%