diff options
author | sat <sat@FreeBSD.org> | 2008-05-20 19:17:14 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2008-05-20 19:17:14 +0800 |
commit | df04f77bfe764e38807e0f38916baae105ecd51d (patch) | |
tree | 1907ef49f6738f1493a8bff382699de2d37f9da0 | |
parent | 5c8898a25dec37e69762243a59fb43141b7684cb (diff) | |
download | freebsd-ports-gnome-df04f77bfe764e38807e0f38916baae105ecd51d.tar.gz freebsd-ports-gnome-df04f77bfe764e38807e0f38916baae105ecd51d.tar.zst freebsd-ports-gnome-df04f77bfe764e38807e0f38916baae105ecd51d.zip |
Add port x11-fonts/kaputa:
Kaputa is a Unicode TrueType font for the Sinhalese script.
WWW: http://www.kaputa.com/slword/kaputaunicode.htm
Author: Thusitha Randunuge
-rw-r--r-- | x11-fonts/Makefile | 1 | ||||
-rw-r--r-- | x11-fonts/kaputa/Makefile | 45 | ||||
-rw-r--r-- | x11-fonts/kaputa/distinfo | 3 | ||||
-rw-r--r-- | x11-fonts/kaputa/pkg-descr | 4 | ||||
-rw-r--r-- | x11-fonts/kaputa/pkg-plist | 7 |
5 files changed, 60 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index 3fbd52bae3e9..2e75b7664942 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -81,6 +81,7 @@ SUBDIR += intlfonts SUBDIR += jmk-x11-fonts SUBDIR += junicode + SUBDIR += kaputa SUBDIR += lfpfonts-fix SUBDIR += lfpfonts-var SUBDIR += libFS 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%% |