- Add dependency on databases/grass-i18n.
- Remove NO_PACKAGE and NO_CDROM. - Remove fonts.{dir,alias}.ipa and generate fonts.dir on the fly.
This commit is contained in:
parent
a1aa21a11b
commit
645378402e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116803
24 changed files with 297 additions and 516 deletions
|
@ -6,67 +6,48 @@
|
|||
#
|
||||
|
||||
PORTNAME= ipa-ttfonts
|
||||
PORTVERSION= 20040718
|
||||
PORTVERSION= 1.0.20040814
|
||||
CATEGORIES= japanese x11-fonts
|
||||
MASTER_SITES= http://www.grass-japan.org/FOSS4G/ipafonts/
|
||||
DISTNAME= grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin
|
||||
DIST_SUBDIR= ipa-fonts
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
||||
MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= Freely available Japanese TrueType fonts by Infomation-technology Promotion Agency (IPA)
|
||||
COMMENT= Japanese TrueType fonts distributed by IPA
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/${GRASS_FONTSDIR}/ipam.ttf:${PORTSDIR}/databases/grass-i18n
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
NO_BUILD= yes
|
||||
NO_PACKAGE= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
|
||||
NO_CDROM= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
|
||||
NO_WRKSUBDIR= yes
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
||||
|
||||
FONTSDIR= lib/X11/fonts/TrueType
|
||||
LOCALFONTSDIR= share/fonts/TrueType
|
||||
MAKE_ENV= FONTSDIR=${FONTSDIR}
|
||||
PLIST_SUB= FONTSDIR=${FONTSDIR} \
|
||||
LOCALFONTSDIR=${LOCALBASE}/${LOCALFONTSDIR}
|
||||
LOCAL_FONTSDIR= share/fonts/TrueType
|
||||
X_FONTSDIR= lib/X11/fonts/TrueType
|
||||
GRASS_FONTSDIR= grass5/fonts
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
PKGINSTALL_SUB= X_FONTSDIR=${X11BASE}/${X_FONTSDIR}
|
||||
PLIST_SUB= X_FONTSDIR=${X11BASE}/${X_FONTSDIR} \
|
||||
FONTSDIR_EXTRA=${X11BASE}/${X_FONTSDIR}/fonts.dir.ipa \
|
||||
LOCAL_FONTSDIR=${PREFIX}/${LOCAL_FONTSDIR} \
|
||||
GRASS_FONTSDIR=${LOCALBASE}/${GRASS_FONTSDIR}
|
||||
|
||||
DOC_FILES= license-ipafonts.eucjp
|
||||
pre-install:
|
||||
@${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/pkg-install.in \
|
||||
> ${WRKDIR}/pkg-install
|
||||
${CHMOD} +x ${WRKDIR}/pkg-install
|
||||
|
||||
do-install:
|
||||
.if !exists(${PREFIX}/${FONTSDIR})
|
||||
@${ECHO} "*********************************************************"
|
||||
@${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
|
||||
@${ECHO} "and load 'xtt' module in /etc/XF86Config."
|
||||
@${ECHO} "*********************************************************"
|
||||
${MKDIR} ${PREFIX}/${FONTSDIR}
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/fonts/ipag.ttf \
|
||||
${WRKSRC}/fonts/ipagp.ttf \
|
||||
${WRKSRC}/fonts/ipagui.ttf \
|
||||
${WRKSRC}/fonts/ipam.ttf \
|
||||
${WRKSRC}/fonts/ipamp.ttf \
|
||||
${FILESDIR}/fonts.dir.ipa \
|
||||
${FILESDIR}/fonts.alias.ipa \
|
||||
${PREFIX}/${FONTSDIR}
|
||||
${MKDIR} ${LOCALBASE}/${LOCALFONTSDIR}
|
||||
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}
|
||||
${MKDIR} ${X11BASE}/${X_FONTSDIR}
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipag.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipag.ttf
|
||||
${LOCALBASE}/${GRASS_FONTSDIR}/ipa*.ttf \
|
||||
${PREFIX}/${LOCAL_FONTSDIR}/
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipagp.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipagp.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipagui.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipagui.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipam.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipam.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipamp.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipamp.ttf
|
||||
${LOCALBASE}/${GRASS_FONTSDIR}/ipa*.ttf \
|
||||
${X11BASE}/${X_FONTSDIR}/
|
||||
|
||||
.for F in ${DOC_FILES}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
|
||||
.endfor
|
||||
post-install:
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
MD5 (grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz) = 38358c8d9e083f5e68dd403113b849ef
|
||||
SIZE (grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz) = 47275548
|
|
@ -1,60 +0,0 @@
|
|||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-iso8859-1
|
|
@ -1,4 +1,22 @@
|
|||
150
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
X_FONTSDIR=%%X_FONTSDIR%%
|
||||
|
||||
catfontsdir ()
|
||||
{
|
||||
while read _IN
|
||||
do
|
||||
case "${_IN}" in
|
||||
*-ipa-*|[0-9]*|"") ;;
|
||||
*) echo ${_IN} ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
addentries ()
|
||||
{
|
||||
(while read _IN; do echo ${_IN}; done) <<EOT
|
||||
ipag.ttf -ipa-IPAGothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
ds=y:ipag.ttf -ipa-IPAGothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
ai=0.15:ipag.ttf -ipa-IPAGothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
|
@ -149,3 +167,28 @@ bw=0.5:ds=y:ai=0.15:ipamp.ttf -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-iso8859
|
|||
bw=0.5:ds=y:ai=0.15:ipamp.ttf -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
bw=0.5:ds=y:ai=0.08:ipamp.ttf -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
bw=0.5:ds=y:ai=0.08:ipamp.ttf -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
EOT
|
||||
}
|
||||
|
||||
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
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
if [ "$2" != "DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
cd ${FONTDIR}
|
||||
sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp
|
||||
numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
|
||||
echo ${numfonts} > fonts.dir
|
||||
sed -e 1d fonts.dir.tmp >> fonts.dir
|
||||
sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp
|
||||
mv -f fonts.alias.tmp fonts.alias
|
||||
rm -f fonts.dir.tmp
|
|
@ -1,5 +1,2 @@
|
|||
Freely available Japanese TrueType fonts by
|
||||
Infomation-technology Promotion Agency (IPA) with
|
||||
http://www.grass-japan.org/FOSS4G/
|
||||
|
||||
WWW: http://www.grass-japan.org/FOSS4G/readme-grass-i18n-ipafonts.eucjp.htm
|
||||
Japanese TrueType fonts distributed by Infomation-technology Promotion
|
||||
Agency (IPA).
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
echo "Please add ${FONTDIR} to your /etc/XF86Config file"
|
||||
exit 0
|
||||
fi
|
||||
cd ${FONTDIR}
|
||||
touch fonts.dir
|
||||
sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp
|
||||
numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.ipa | wc -l) - 2 | bc)
|
||||
echo ${numfonts} > fonts.dir
|
||||
sed -e 1d fonts.dir.tmp >> fonts.dir
|
||||
sed -e 1d fonts.dir.ipa >> fonts.dir
|
||||
touch fonts.alias
|
||||
sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp
|
||||
mv -f fonts.alias.tmp fonts.alias
|
||||
cat fonts.alias.ipa >> fonts.alias
|
||||
rm -f fonts.dir.tmp fonts.alias.tmp
|
|
@ -1,22 +1,25 @@
|
|||
@comment $FreeBSD$
|
||||
%%FONTSDIR%%/fonts.alias.ipa
|
||||
%%FONTSDIR%%/fonts.dir.ipa
|
||||
%%FONTSDIR%%/ipag.ttf
|
||||
%%FONTSDIR%%/ipagp.ttf
|
||||
%%FONTSDIR%%/ipagui.ttf
|
||||
%%FONTSDIR%%/ipam.ttf
|
||||
%%FONTSDIR%%/ipamp.ttf
|
||||
%%PORTDOCS%%/license-ipafonts.eucjp
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@exec mkdir -p %%LOCALFONTSDIR%%
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipag.ttf %%LOCALFONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipagp.ttf %%LOCALFONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipagui.ttf %%LOCALFONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipam.ttf %%LOCALFONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipamp.ttf %%LOCALFONTSDIR%%/ipamp.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%LOCALFONTSDIR%% 2> /dev/null || true
|
||||
@exec mkdir -p %%LOCAL_FONTSDIR%%
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipag.ttf %%LOCAL_FONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagp.ttf %%LOCAL_FONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagui.ttf %%LOCAL_FONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipam.ttf %%LOCAL_FONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipamp.ttf %%LOCAL_FONTSDIR%%/ipamp.ttf
|
||||
@exec mkdir -p %%X_FONTSDIR%%
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipag.ttf %%X_FONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagp.ttf %%X_FONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagui.ttf %%X_FONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipam.ttf %%X_FONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipamp.ttf %%X_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%LOCAL_FONTSDIR%% 2> /dev/null || true
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%X_FONTSDIR%% 2> /dev/null || true
|
||||
|
|
|
@ -6,67 +6,48 @@
|
|||
#
|
||||
|
||||
PORTNAME= ipa-ttfonts
|
||||
PORTVERSION= 20040718
|
||||
PORTVERSION= 1.0.20040814
|
||||
CATEGORIES= japanese x11-fonts
|
||||
MASTER_SITES= http://www.grass-japan.org/FOSS4G/ipafonts/
|
||||
DISTNAME= grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin
|
||||
DIST_SUBDIR= ipa-fonts
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
||||
MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= Freely available Japanese TrueType fonts by Infomation-technology Promotion Agency (IPA)
|
||||
COMMENT= Japanese TrueType fonts distributed by IPA
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/${GRASS_FONTSDIR}/ipam.ttf:${PORTSDIR}/databases/grass-i18n
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
NO_BUILD= yes
|
||||
NO_PACKAGE= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
|
||||
NO_CDROM= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
|
||||
NO_WRKSUBDIR= yes
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
||||
|
||||
FONTSDIR= lib/X11/fonts/TrueType
|
||||
LOCALFONTSDIR= share/fonts/TrueType
|
||||
MAKE_ENV= FONTSDIR=${FONTSDIR}
|
||||
PLIST_SUB= FONTSDIR=${FONTSDIR} \
|
||||
LOCALFONTSDIR=${LOCALBASE}/${LOCALFONTSDIR}
|
||||
LOCAL_FONTSDIR= share/fonts/TrueType
|
||||
X_FONTSDIR= lib/X11/fonts/TrueType
|
||||
GRASS_FONTSDIR= grass5/fonts
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
PKGINSTALL_SUB= X_FONTSDIR=${X11BASE}/${X_FONTSDIR}
|
||||
PLIST_SUB= X_FONTSDIR=${X11BASE}/${X_FONTSDIR} \
|
||||
FONTSDIR_EXTRA=${X11BASE}/${X_FONTSDIR}/fonts.dir.ipa \
|
||||
LOCAL_FONTSDIR=${PREFIX}/${LOCAL_FONTSDIR} \
|
||||
GRASS_FONTSDIR=${LOCALBASE}/${GRASS_FONTSDIR}
|
||||
|
||||
DOC_FILES= license-ipafonts.eucjp
|
||||
pre-install:
|
||||
@${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/pkg-install.in \
|
||||
> ${WRKDIR}/pkg-install
|
||||
${CHMOD} +x ${WRKDIR}/pkg-install
|
||||
|
||||
do-install:
|
||||
.if !exists(${PREFIX}/${FONTSDIR})
|
||||
@${ECHO} "*********************************************************"
|
||||
@${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
|
||||
@${ECHO} "and load 'xtt' module in /etc/XF86Config."
|
||||
@${ECHO} "*********************************************************"
|
||||
${MKDIR} ${PREFIX}/${FONTSDIR}
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/fonts/ipag.ttf \
|
||||
${WRKSRC}/fonts/ipagp.ttf \
|
||||
${WRKSRC}/fonts/ipagui.ttf \
|
||||
${WRKSRC}/fonts/ipam.ttf \
|
||||
${WRKSRC}/fonts/ipamp.ttf \
|
||||
${FILESDIR}/fonts.dir.ipa \
|
||||
${FILESDIR}/fonts.alias.ipa \
|
||||
${PREFIX}/${FONTSDIR}
|
||||
${MKDIR} ${LOCALBASE}/${LOCALFONTSDIR}
|
||||
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}
|
||||
${MKDIR} ${X11BASE}/${X_FONTSDIR}
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipag.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipag.ttf
|
||||
${LOCALBASE}/${GRASS_FONTSDIR}/ipa*.ttf \
|
||||
${PREFIX}/${LOCAL_FONTSDIR}/
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipagp.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipagp.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipagui.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipagui.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipam.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipam.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipamp.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipamp.ttf
|
||||
${LOCALBASE}/${GRASS_FONTSDIR}/ipa*.ttf \
|
||||
${X11BASE}/${X_FONTSDIR}/
|
||||
|
||||
.for F in ${DOC_FILES}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
|
||||
.endfor
|
||||
post-install:
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
MD5 (grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz) = 38358c8d9e083f5e68dd403113b849ef
|
||||
SIZE (grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz) = 47275548
|
|
@ -1,60 +0,0 @@
|
|||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-iso8859-1
|
|
@ -1,4 +1,22 @@
|
|||
150
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
X_FONTSDIR=%%X_FONTSDIR%%
|
||||
|
||||
catfontsdir ()
|
||||
{
|
||||
while read _IN
|
||||
do
|
||||
case "${_IN}" in
|
||||
*-ipa-*|[0-9]*|"") ;;
|
||||
*) echo ${_IN} ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
addentries ()
|
||||
{
|
||||
(while read _IN; do echo ${_IN}; done) <<EOT
|
||||
ipag.ttf -ipa-IPAGothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
ds=y:ipag.ttf -ipa-IPAGothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
ai=0.15:ipag.ttf -ipa-IPAGothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
|
@ -149,3 +167,28 @@ bw=0.5:ds=y:ai=0.15:ipamp.ttf -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-iso8859
|
|||
bw=0.5:ds=y:ai=0.15:ipamp.ttf -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
bw=0.5:ds=y:ai=0.08:ipamp.ttf -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
bw=0.5:ds=y:ai=0.08:ipamp.ttf -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
EOT
|
||||
}
|
||||
|
||||
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
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
if [ "$2" != "DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
cd ${FONTDIR}
|
||||
sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp
|
||||
numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
|
||||
echo ${numfonts} > fonts.dir
|
||||
sed -e 1d fonts.dir.tmp >> fonts.dir
|
||||
sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp
|
||||
mv -f fonts.alias.tmp fonts.alias
|
||||
rm -f fonts.dir.tmp
|
|
@ -1,5 +1,2 @@
|
|||
Freely available Japanese TrueType fonts by
|
||||
Infomation-technology Promotion Agency (IPA) with
|
||||
http://www.grass-japan.org/FOSS4G/
|
||||
|
||||
WWW: http://www.grass-japan.org/FOSS4G/readme-grass-i18n-ipafonts.eucjp.htm
|
||||
Japanese TrueType fonts distributed by Infomation-technology Promotion
|
||||
Agency (IPA).
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
echo "Please add ${FONTDIR} to your /etc/XF86Config file"
|
||||
exit 0
|
||||
fi
|
||||
cd ${FONTDIR}
|
||||
touch fonts.dir
|
||||
sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp
|
||||
numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.ipa | wc -l) - 2 | bc)
|
||||
echo ${numfonts} > fonts.dir
|
||||
sed -e 1d fonts.dir.tmp >> fonts.dir
|
||||
sed -e 1d fonts.dir.ipa >> fonts.dir
|
||||
touch fonts.alias
|
||||
sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp
|
||||
mv -f fonts.alias.tmp fonts.alias
|
||||
cat fonts.alias.ipa >> fonts.alias
|
||||
rm -f fonts.dir.tmp fonts.alias.tmp
|
|
@ -1,22 +1,25 @@
|
|||
@comment $FreeBSD$
|
||||
%%FONTSDIR%%/fonts.alias.ipa
|
||||
%%FONTSDIR%%/fonts.dir.ipa
|
||||
%%FONTSDIR%%/ipag.ttf
|
||||
%%FONTSDIR%%/ipagp.ttf
|
||||
%%FONTSDIR%%/ipagui.ttf
|
||||
%%FONTSDIR%%/ipam.ttf
|
||||
%%FONTSDIR%%/ipamp.ttf
|
||||
%%PORTDOCS%%/license-ipafonts.eucjp
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@exec mkdir -p %%LOCALFONTSDIR%%
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipag.ttf %%LOCALFONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipagp.ttf %%LOCALFONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipagui.ttf %%LOCALFONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipam.ttf %%LOCALFONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipamp.ttf %%LOCALFONTSDIR%%/ipamp.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%LOCALFONTSDIR%% 2> /dev/null || true
|
||||
@exec mkdir -p %%LOCAL_FONTSDIR%%
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipag.ttf %%LOCAL_FONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagp.ttf %%LOCAL_FONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagui.ttf %%LOCAL_FONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipam.ttf %%LOCAL_FONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipamp.ttf %%LOCAL_FONTSDIR%%/ipamp.ttf
|
||||
@exec mkdir -p %%X_FONTSDIR%%
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipag.ttf %%X_FONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagp.ttf %%X_FONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagui.ttf %%X_FONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipam.ttf %%X_FONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipamp.ttf %%X_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%LOCAL_FONTSDIR%% 2> /dev/null || true
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%X_FONTSDIR%% 2> /dev/null || true
|
||||
|
|
|
@ -6,67 +6,48 @@
|
|||
#
|
||||
|
||||
PORTNAME= ipa-ttfonts
|
||||
PORTVERSION= 20040718
|
||||
PORTVERSION= 1.0.20040814
|
||||
CATEGORIES= japanese x11-fonts
|
||||
MASTER_SITES= http://www.grass-japan.org/FOSS4G/ipafonts/
|
||||
DISTNAME= grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin
|
||||
DIST_SUBDIR= ipa-fonts
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
||||
MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= Freely available Japanese TrueType fonts by Infomation-technology Promotion Agency (IPA)
|
||||
COMMENT= Japanese TrueType fonts distributed by IPA
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/${GRASS_FONTSDIR}/ipam.ttf:${PORTSDIR}/databases/grass-i18n
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
NO_BUILD= yes
|
||||
NO_PACKAGE= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
|
||||
NO_CDROM= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
|
||||
NO_WRKSUBDIR= yes
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
||||
|
||||
FONTSDIR= lib/X11/fonts/TrueType
|
||||
LOCALFONTSDIR= share/fonts/TrueType
|
||||
MAKE_ENV= FONTSDIR=${FONTSDIR}
|
||||
PLIST_SUB= FONTSDIR=${FONTSDIR} \
|
||||
LOCALFONTSDIR=${LOCALBASE}/${LOCALFONTSDIR}
|
||||
LOCAL_FONTSDIR= share/fonts/TrueType
|
||||
X_FONTSDIR= lib/X11/fonts/TrueType
|
||||
GRASS_FONTSDIR= grass5/fonts
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
PKGINSTALL_SUB= X_FONTSDIR=${X11BASE}/${X_FONTSDIR}
|
||||
PLIST_SUB= X_FONTSDIR=${X11BASE}/${X_FONTSDIR} \
|
||||
FONTSDIR_EXTRA=${X11BASE}/${X_FONTSDIR}/fonts.dir.ipa \
|
||||
LOCAL_FONTSDIR=${PREFIX}/${LOCAL_FONTSDIR} \
|
||||
GRASS_FONTSDIR=${LOCALBASE}/${GRASS_FONTSDIR}
|
||||
|
||||
DOC_FILES= license-ipafonts.eucjp
|
||||
pre-install:
|
||||
@${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/pkg-install.in \
|
||||
> ${WRKDIR}/pkg-install
|
||||
${CHMOD} +x ${WRKDIR}/pkg-install
|
||||
|
||||
do-install:
|
||||
.if !exists(${PREFIX}/${FONTSDIR})
|
||||
@${ECHO} "*********************************************************"
|
||||
@${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
|
||||
@${ECHO} "and load 'xtt' module in /etc/XF86Config."
|
||||
@${ECHO} "*********************************************************"
|
||||
${MKDIR} ${PREFIX}/${FONTSDIR}
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/fonts/ipag.ttf \
|
||||
${WRKSRC}/fonts/ipagp.ttf \
|
||||
${WRKSRC}/fonts/ipagui.ttf \
|
||||
${WRKSRC}/fonts/ipam.ttf \
|
||||
${WRKSRC}/fonts/ipamp.ttf \
|
||||
${FILESDIR}/fonts.dir.ipa \
|
||||
${FILESDIR}/fonts.alias.ipa \
|
||||
${PREFIX}/${FONTSDIR}
|
||||
${MKDIR} ${LOCALBASE}/${LOCALFONTSDIR}
|
||||
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}
|
||||
${MKDIR} ${X11BASE}/${X_FONTSDIR}
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipag.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipag.ttf
|
||||
${LOCALBASE}/${GRASS_FONTSDIR}/ipa*.ttf \
|
||||
${PREFIX}/${LOCAL_FONTSDIR}/
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipagp.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipagp.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipagui.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipagui.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipam.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipam.ttf
|
||||
${LN} -s -f \
|
||||
${PREFIX}/${FONTSDIR}/ipamp.ttf \
|
||||
${LOCALBASE}/${LOCALFONTSDIR}/ipamp.ttf
|
||||
${LOCALBASE}/${GRASS_FONTSDIR}/ipa*.ttf \
|
||||
${X11BASE}/${X_FONTSDIR}/
|
||||
|
||||
.for F in ${DOC_FILES}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
|
||||
.endfor
|
||||
post-install:
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
MD5 (grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz) = 38358c8d9e083f5e68dd403113b849ef
|
||||
SIZE (grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz) = 47275548
|
|
@ -1,60 +0,0 @@
|
|||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-medium-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-medium-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-mincho-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-mincho-bold-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPMincho-bold-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-medium-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-medium-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-medium-r-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-jisx0201.1976-0 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-jisx0201.1976-0
|
||||
-aliastt-gothic-bold-ro-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-o-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-ri-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-i-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-i-normal--0-0-0-0-c-0-iso8859-1
|
||||
-aliastt-gothic-bold-r-normal--0-0-0-0-p-0-iso8859-1 -ipa-IPAPGothic-bold-r-normal--0-0-0-0-c-0-iso8859-1
|
|
@ -1,4 +1,22 @@
|
|||
150
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
X_FONTSDIR=%%X_FONTSDIR%%
|
||||
|
||||
catfontsdir ()
|
||||
{
|
||||
while read _IN
|
||||
do
|
||||
case "${_IN}" in
|
||||
*-ipa-*|[0-9]*|"") ;;
|
||||
*) echo ${_IN} ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
addentries ()
|
||||
{
|
||||
(while read _IN; do echo ${_IN}; done) <<EOT
|
||||
ipag.ttf -ipa-IPAGothic-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
ds=y:ipag.ttf -ipa-IPAGothic-bold-r-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
ai=0.15:ipag.ttf -ipa-IPAGothic-medium-i-normal--0-0-0-0-c-0-jisx0208.1983-0
|
||||
|
@ -149,3 +167,28 @@ bw=0.5:ds=y:ai=0.15:ipamp.ttf -ipa-IPAPMincho-bold-i-normal--0-0-0-0-c-0-iso8859
|
|||
bw=0.5:ds=y:ai=0.15:ipamp.ttf -ipa-IPAPMincho-bold-o-normal--0-0-0-0-c-0-iso8859-1
|
||||
bw=0.5:ds=y:ai=0.08:ipamp.ttf -ipa-IPAPMincho-bold-ri-normal--0-0-0-0-c-0-iso8859-1
|
||||
bw=0.5:ds=y:ai=0.08:ipamp.ttf -ipa-IPAPMincho-bold-ro-normal--0-0-0-0-c-0-iso8859-1
|
||||
EOT
|
||||
}
|
||||
|
||||
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
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
if [ "$2" != "DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
cd ${FONTDIR}
|
||||
sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp
|
||||
numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
|
||||
echo ${numfonts} > fonts.dir
|
||||
sed -e 1d fonts.dir.tmp >> fonts.dir
|
||||
sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp
|
||||
mv -f fonts.alias.tmp fonts.alias
|
||||
rm -f fonts.dir.tmp
|
|
@ -1,5 +1,2 @@
|
|||
Freely available Japanese TrueType fonts by
|
||||
Infomation-technology Promotion Agency (IPA) with
|
||||
http://www.grass-japan.org/FOSS4G/
|
||||
|
||||
WWW: http://www.grass-japan.org/FOSS4G/readme-grass-i18n-ipafonts.eucjp.htm
|
||||
Japanese TrueType fonts distributed by Infomation-technology Promotion
|
||||
Agency (IPA).
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
echo "Please add ${FONTDIR} to your /etc/XF86Config file"
|
||||
exit 0
|
||||
fi
|
||||
cd ${FONTDIR}
|
||||
touch fonts.dir
|
||||
sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp
|
||||
numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.ipa | wc -l) - 2 | bc)
|
||||
echo ${numfonts} > fonts.dir
|
||||
sed -e 1d fonts.dir.tmp >> fonts.dir
|
||||
sed -e 1d fonts.dir.ipa >> fonts.dir
|
||||
touch fonts.alias
|
||||
sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp
|
||||
mv -f fonts.alias.tmp fonts.alias
|
||||
cat fonts.alias.ipa >> fonts.alias
|
||||
rm -f fonts.dir.tmp fonts.alias.tmp
|
|
@ -1,22 +1,25 @@
|
|||
@comment $FreeBSD$
|
||||
%%FONTSDIR%%/fonts.alias.ipa
|
||||
%%FONTSDIR%%/fonts.dir.ipa
|
||||
%%FONTSDIR%%/ipag.ttf
|
||||
%%FONTSDIR%%/ipagp.ttf
|
||||
%%FONTSDIR%%/ipagui.ttf
|
||||
%%FONTSDIR%%/ipam.ttf
|
||||
%%FONTSDIR%%/ipamp.ttf
|
||||
%%PORTDOCS%%/license-ipafonts.eucjp
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@exec mkdir -p %%LOCALFONTSDIR%%
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipag.ttf %%LOCALFONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipagp.ttf %%LOCALFONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipagui.ttf %%LOCALFONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipam.ttf %%LOCALFONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %D/%%FONTSDIR%%/ipamp.ttf %%LOCALFONTSDIR%%/ipamp.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%LOCALFONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%LOCALFONTSDIR%% 2> /dev/null || true
|
||||
@exec mkdir -p %%LOCAL_FONTSDIR%%
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipag.ttf %%LOCAL_FONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagp.ttf %%LOCAL_FONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagui.ttf %%LOCAL_FONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipam.ttf %%LOCAL_FONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipamp.ttf %%LOCAL_FONTSDIR%%/ipamp.ttf
|
||||
@exec mkdir -p %%X_FONTSDIR%%
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipag.ttf %%X_FONTSDIR%%/ipag.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagp.ttf %%X_FONTSDIR%%/ipagp.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipagui.ttf %%X_FONTSDIR%%/ipagui.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipam.ttf %%X_FONTSDIR%%/ipam.ttf
|
||||
@exec ln -s -f %%GRASS_FONTSDIR%%/ipamp.ttf %%X_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%LOCAL_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%LOCAL_FONTSDIR%% 2> /dev/null || true
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipag.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipagp.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipagui.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipam.ttf
|
||||
@unexec rm -f %%X_FONTSDIR%%/ipamp.ttf
|
||||
@unexec rmdir %%X_FONTSDIR%% 2> /dev/null || true
|
||||
|
|
Loading…
Reference in a new issue