summaryrefslogtreecommitdiff
path: root/japanese/font-kochi
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/font-kochi')
-rw-r--r--japanese/font-kochi/Makefile64
-rw-r--r--japanese/font-kochi/distinfo3
-rw-r--r--japanese/font-kochi/files/20-unhint-kochittfonts.conf14
-rw-r--r--japanese/font-kochi/files/62-fonts-kochittfonts.conf24
-rw-r--r--japanese/font-kochi/files/pkg-install.in94
-rw-r--r--japanese/font-kochi/pkg-descr3
-rw-r--r--japanese/font-kochi/pkg-plist21
7 files changed, 0 insertions, 223 deletions
diff --git a/japanese/font-kochi/Makefile b/japanese/font-kochi/Makefile
deleted file mode 100644
index d9889af7e169..000000000000
--- a/japanese/font-kochi/Makefile
+++ /dev/null
@@ -1,64 +0,0 @@
-# New ports collection makefile for: Kochi TrueType fonts
-# Date created: 6 January 2001
-# Whom: KANOU Hiroki <kanou@mil.allnet.ne.jp>
-#
-# $FreeBSD$
-#
-
-PORTNAME= kochi-ttfonts
-PORTVERSION= 20030809
-PORTREVISION= 4
-CATEGORIES= japanese x11-fonts
-MASTER_SITES= http://downloads.sourceforge.jp/efont/5411/ \
- ${MASTER_SITE_PORTS_JP}
-DISTFILES= kochi-substitute-${PORTVERSION}.tar.bz2
-
-MAINTAINER= hrs@FreeBSD.org
-COMMENT= Free Japanese TrueType fonts named 'Kochi'
-
-RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-
-USE_BZIP2= yes
-NO_BUILD= yes
-
-PKGINSTALL= ${WRKDIR}/pkg-install
-PKGDEINSTALL= ${WRKDIR}/pkg-install
-SUB_FILES= pkg-install
-SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
-PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
- LOCAL_FONTSDIR=${LOCAL_FONTSDIR} \
- DATADIR=share/${PORTNAME}
-WRKSRC= ${WRKDIR}/kochi-substitute-${PORTVERSION}
-
-LOCAL_FONTSDIR= share/fonts
-X_FONTSDIR= lib/X11/fonts
-
-PORTDOCS= README.ja COPYING docs
-
-do-install:
- ${MKDIR} ${DATADIR}
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
- ${INSTALL_DATA} ${WRKSRC}/*.ttf ${DATADIR}
- ${MKDIR} ${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
- ${LN} -s -f \
- ${DATADIR}/*.ttf ${LOCALBASE}/${LOCAL_FONTSDIR}/TrueType/
- ${MKDIR} ${LOCALBASE}/${X_FONTSDIR}/TrueType
- ${LN} -s -f \
- ${DATADIR}/*.ttf ${LOCALBASE}/${X_FONTSDIR}/TrueType/
- ${INSTALL_DATA} ${FILESDIR}/20-unhint-kochittfonts.conf \
- ${FILESDIR}/62-fonts-kochittfonts.conf \
- ${PREFIX}/etc/fonts/conf.avail
- ${LN} -s -f ../conf.avail/20-unhint-kochittfonts.conf \
- ${PREFIX}/etc/fonts/conf.d/20-unhint-kochittfonts.conf
- ${LN} -s -f ../conf.avail/62-fonts-kochittfonts.conf \
- ${PREFIX}/etc/fonts/conf.d/62-fonts-kochittfonts.conf
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${CP} -R ${PORTDOCS} ${DOCSDIR}
-.endif
-
-post-install:
- ${LOCALBASE}/bin/fc-cache -f -v ${LOCALBASE}/${X_FONTSDIR}/TrueType
- ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-
-.include <bsd.port.mk>
diff --git a/japanese/font-kochi/distinfo b/japanese/font-kochi/distinfo
deleted file mode 100644
index 4bd4cb17c50e..000000000000
--- a/japanese/font-kochi/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (kochi-substitute-20030809.tar.bz2) = c4b14e287cf2b1688c649e2274e128b3
-SHA256 (kochi-substitute-20030809.tar.bz2) = f4d69b24538833bf7e2c4de5e01713b3f1440960a6cc2a5993cb3c68cd23148c
-SIZE (kochi-substitute-20030809.tar.bz2) = 8675822
diff --git a/japanese/font-kochi/files/20-unhint-kochittfonts.conf b/japanese/font-kochi/files/20-unhint-kochittfonts.conf
deleted file mode 100644
index 262064b7132d..000000000000
--- a/japanese/font-kochi/files/20-unhint-kochittfonts.conf
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- $FreeBSD$ -->
-<fontconfig>
- <match target="font">
- <test name="family">
- <string>Kochi Mincho</string>
- <string>Kochi Gothic</string>
- </test>
- <edit name="autohint">
- <bool>false</bool>
- </edit>
- </match>
-</fontconfig>
diff --git a/japanese/font-kochi/files/62-fonts-kochittfonts.conf b/japanese/font-kochi/files/62-fonts-kochittfonts.conf
deleted file mode 100644
index 99f3ff0746bc..000000000000
--- a/japanese/font-kochi/files/62-fonts-kochittfonts.conf
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- $FreeBSD$ -->
-<fontconfig>
- <alias>
- <family>serif</family>
- <prefer>
- <family>Kochi Mincho</family>
- </prefer>
- </alias>
- <alias>
- <family>sans-serif</family>
- <prefer>
- <family>Kochi Gothic</family>
- </prefer>
- </alias>
- <alias>
- <family>monospace</family>
- <prefer>
- <family>Kochi Mincho</family>
- <family>Kochi Gothic</family>
- </prefer>
- </alias>
-</fontconfig>
diff --git a/japanese/font-kochi/files/pkg-install.in b/japanese/font-kochi/files/pkg-install.in
deleted file mode 100644
index e054af6696b9..000000000000
--- a/japanese/font-kochi/files/pkg-install.in
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-X_FONTSDIR=%%X_FONTSDIR%%/TrueType
-
-catfontsdir ()
-{
- while read _IN
- do
- case "${_IN}" in
- *-kochi-*|[0-9]*|"") ;;
- *-aliastt-*|[0-9]*|"") ;;
- *) echo ${_IN} ;;
- esac
- done
-}
-
-ROMA=""
-BOLD="ds=y"
-ITAL="ai=0.15"
-OBLI="ai=0.15"
-RITA="ai=0.08"
-ROBL="ai=0.08"
-
-make_xlfd()
-{
- _enc=$1
- _file=$2
- _vendor=$3
- _fname=$4
- _poc=$5
-
- case "${_poc}:${_enc}" in
- p:jisx0201.1976-*) PFIX="bw=0.5" ;;
- c:jisx0201.1976-*) PFIX="bw=0.5" ;;
- p:*) PFIX="" ;;
- c:*) PFIX="" ;;
- esac
-
- set -- "${ROMA}" medium-r \
- ${BOLD} bold-r \
- ${ITAL} medium-i \
- ${ITAL}:${BOLD} bold-i \
- ${OBLI} medium-o \
- ${OBLI}:${BOLD} bold-o \
- ${RITA} medium-ri \
- ${RITA}:${BOLD} bold-ri \
- ${ROBL} medium-ro \
- ${ROBL}:${BOLD} bold-ro
- while [ $# != 0 ]; do
- _prefix="${PFIX}:$1"; shift
- _variant=$1; shift
- printf "%s:%s -%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \
- $_prefix $_file $_vendor $_fname $_variant $_poc $_enc
- done | sed -e 's,::,:,g' -e 's,^:,,'
-}
-
-addentries ()
-{
- for ENC in iso8859-1 iso10646-1 jisx0201.1976-0 jisx0208.1983-0 jisx0208.1990-0
- do
- make_xlfd $ENC kochi-mincho-subst.ttf kochi mincho c
- make_xlfd $ENC kochi-mincho-subst.ttf kochi mincho p
- make_xlfd $ENC kochi-mincho-subst.ttf aliastt mincho c
- make_xlfd $ENC kochi-mincho-subst.ttf aliastt mincho p
- make_xlfd $ENC kochi-gothic-subst.ttf kochi gothic c
- make_xlfd $ENC kochi-gothic-subst.ttf kochi gothic p
- make_xlfd $ENC kochi-gothic-subst.ttf aliastt gothic c
- make_xlfd $ENC kochi-gothic-subst.ttf aliastt gothic p
- done
-}
-
-nfonts ()
-{
- _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L}
-}
-
-case "$2" in
-POST-INSTALL)
- cd ${X_FONTSDIR}
- touch fonts.dir
- (catfontsdir < fonts.dir; addentries) > fonts.dir.tmp
- nfonts < fonts.dir.tmp > fonts.dir
- cat fonts.dir.tmp >> fonts.dir
- rm -f fonts.dir.tmp
- ;;
-DEINSTALL)
- cd ${X_FONTSDIR}
- catfontsdir < fonts.dir > fonts.dir.tmp
- nfonts < fonts.dir.tmp > fonts.dir
- cat fonts.dir.tmp >> fonts.dir
- rm -f fonts.dir.tmp
- ;;
-esac
diff --git a/japanese/font-kochi/pkg-descr b/japanese/font-kochi/pkg-descr
deleted file mode 100644
index ef9292d08935..000000000000
--- a/japanese/font-kochi/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-Free Japanese TrueType fonts named 'Kochi Mincho' and 'Kochi Gothic'.
-
-WWW: http://www.on.cs.keio.ac.jp/~yasu/jp_fonts.html
diff --git a/japanese/font-kochi/pkg-plist b/japanese/font-kochi/pkg-plist
deleted file mode 100644
index abe8bc150fad..000000000000
--- a/japanese/font-kochi/pkg-plist
+++ /dev/null
@@ -1,21 +0,0 @@
-@comment $FreeBSD$
-%%DATADIR%%/kochi-mincho-subst.ttf
-%%DATADIR%%/kochi-gothic-subst.ttf
-@dirrm %%DATADIR%%
-%%LOCAL_FONTSDIR%%/TrueType/kochi-mincho-subst.ttf
-%%LOCAL_FONTSDIR%%/TrueType/kochi-gothic-subst.ttf
-@dirrmtry %%LOCAL_FONTSDIR%%/TrueType
-@dirrmtry %%LOCAL_FONTSDIR%%
-etc/fonts/conf.avail/20-unhint-kochittfonts.conf
-etc/fonts/conf.avail/62-fonts-kochittfonts.conf
-@exec ln -s -f ../conf.avail/20-unhint-kochittfonts.conf %D/etc/fonts/conf.d/20-unhint-kochittfonts.conf
-@exec ln -s -f ../conf.avail/62-fonts-kochittfonts.conf %D/etc/fonts/conf.d/62-fonts-kochittfonts.conf
-@unexec rm -f %D/etc/fonts/conf.d/20-unhint-kochittfonts.conf
-@unexec rm -f %D/etc/fonts/conf.d/62-fonts-kochittfonts.conf
-%%X_FONTSDIR%%/TrueType/kochi-mincho-subst.ttf
-%%X_FONTSDIR%%/TrueType/kochi-gothic-subst.ttf
-@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%X_FONTSDIR%%/TrueType || true
-@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%X_FONTSDIR%%/TrueType || true
-@unexec rm -f %D/%%X_FONTSDIR%%/TrueType/fonts.cache-1
-@dirrmtry %%X_FONTSDIR%%/TrueType
-@unexec if [ -d %D/%%X_FONTSDIR%%/TrueType ]; then %%LOCALBASE%%/bin/fc-cache -f -v %D/%%X_FONTSDIR%%/TrueType || true; fi