2013-09-20 22:46:16 +00:00
|
|
|
# Created by: mi@aldan.algebra.com
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1999-07-30 17:04:02 +00:00
|
|
|
|
2000-04-13 19:19:05 +00:00
|
|
|
PORTNAME= koi8rPS
|
2000-04-21 07:52:25 +00:00
|
|
|
PORTVERSION= 1.0
|
1999-07-30 17:04:02 +00:00
|
|
|
CATEGORIES= russian print
|
2002-06-22 21:51:16 +00:00
|
|
|
MASTER_SITES= ftp://ftp.redcom.ru/pub/X/psfonts/ \
|
1999-07-30 17:04:02 +00:00
|
|
|
ftp://ftp.kapella.gpi.ru/pub/cyrillic/psfonts/
|
|
|
|
DISTFILES= gs-type1_koi8_fonts.tgz gs-type1_koi8_afm.tgz \
|
|
|
|
XFree86-Type1_fonts.dir.scale.gz
|
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Add Russian (KOI8) fonts to your PostScript fonts collection
|
1999-07-30 17:04:02 +00:00
|
|
|
|
|
|
|
EXTRACT_ONLY=
|
|
|
|
|
|
|
|
DIST_SUBDIR= koi8r-ps
|
|
|
|
|
2013-09-20 22:46:16 +00:00
|
|
|
NO_STAGE= yes
|
2002-01-29 16:43:55 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-07-30 17:04:02 +00:00
|
|
|
.if !defined(FONTMAP)
|
2013-11-24 15:34:49 +00:00
|
|
|
FONTMAP!= ${SH} ${FILESDIR}/find-fontmap.sh 2>/dev/null || ${ECHO_CMD}
|
1999-07-30 17:04:02 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_PACKAGE= Nothing to build, configurations only
|
|
|
|
NO_WRKSUBDIR= Yes
|
|
|
|
|
|
|
|
CPS_DIR= ${PREFIX}/share/koi8r-ps
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
${GZIP_CMD} -d < ${DISTDIR}/${DIST_SUBDIR}/XFree86-Type1_fonts.dir.scale.gz \
|
|
|
|
> ${WRKSRC}/XFree86-Type1_fonts.dir.scale
|
|
|
|
|
|
|
|
do-build:
|
2013-11-13 19:10:24 +00:00
|
|
|
${GREP} -c koi8 ${WRKSRC}/XFree86-Type1_fonts.dir.scale \
|
1999-07-30 17:04:02 +00:00
|
|
|
> ${WRKSRC}/fonts.dir
|
|
|
|
${GREP} koi8 ${WRKSRC}/XFree86-Type1_fonts.dir.scale \
|
|
|
|
>> ${WRKSRC}/fonts.dir
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
${SED} 's=(\(.*\.pfb\))=\(${CPS_DIR}/\1\)=' \
|
|
|
|
< ${FILESDIR}/Fontmap.diff > ${WRKSRC}/Fontmap.diff
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${CPS_DIR}
|
|
|
|
${TAR} -C ${CPS_DIR} -xzpf \
|
|
|
|
${DISTDIR}/${DIST_SUBDIR}/gs-type1_koi8_fonts.tgz
|
|
|
|
${TAR} -C ${CPS_DIR} -xzpf \
|
|
|
|
${DISTDIR}/${DIST_SUBDIR}/gs-type1_koi8_afm.tgz
|
2013-11-13 19:10:24 +00:00
|
|
|
.if !exists(${FONTMAP})
|
1999-07-30 17:04:02 +00:00
|
|
|
#################################################################
|
|
|
|
### You do not appear to have GhostScript installed. The file
|
|
|
|
### ${CPS_DIR}/Fontmap.diff
|
|
|
|
### needs to be merged into GhostScript's Fontmap -- usually
|
|
|
|
### located in something like
|
|
|
|
### ${PREFIX}/share/ghostscript/5.50/Fontmap
|
|
|
|
### for GhostScript to use cyrillic fonts.
|
|
|
|
#################################################################
|
1999-08-23 04:23:59 +00:00
|
|
|
@test -t 0 && test -t 1 && ${ECHO} -n "Press enter" && read junk || ${TRUE}
|
1999-07-30 17:04:02 +00:00
|
|
|
.else
|
|
|
|
@if ${GREP} -q ArialCyrMT-BoldItalic "${FONTMAP}" ; then \
|
|
|
|
${ECHO} Apparently, Fontmap already lists this fonts. Ok. \
|
|
|
|
You can always merge ${CPS_DIR}/Fontmap.diff into \
|
|
|
|
${FONTMAP} manually. ; \
|
|
|
|
else \
|
1999-08-28 03:41:25 +00:00
|
|
|
${SETENV} SIMPLE_BACKUP_SUFFIX=.CyrPS VERSION_CONTROL= \
|
1999-07-30 17:04:02 +00:00
|
|
|
${PATCH} "${FONTMAP}" ${WRKSRC}/Fontmap.diff ; \
|
|
|
|
${RM} -f "${FONTMAP}".CyrPS ; \
|
|
|
|
fi
|
|
|
|
.endif
|
2002-01-29 11:48:57 +00:00
|
|
|
${ECHO_CMD} ${FONTMAP} > ${CPS_DIR}/fontmap.path
|
1999-07-30 17:04:02 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Fontmap.diff ${CPS_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fonts.dir ${CPS_DIR}
|
|
|
|
${LN} -s fonts.dir ${CPS_DIR}/fonts.scale
|
2000-10-08 10:23:48 +00:00
|
|
|
${CAT} ${PKGMESSAGE}
|
1999-07-30 17:04:02 +00:00
|
|
|
|
2002-01-29 16:43:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|