# New ports collection makefile for:	PSCyr
# Date created:				29 Jun 2001
# Whom:					kapr@crosswinds.net
#
# $FreeBSD: ports/russian/pscyr/Makefile,v 1.1 2001/07/02 09:04:24 demon Exp $
#

PORTNAME=	PSCyr
PORTVERSION=	0.4c
CATEGORIES=	russian print
MASTER_SITES=	ftp://mch5.chem.msu.su/pub/russian/psfonts/ \
		ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/
DISTFILES=	${PORTNAME}-${PORTVERSION}-tex.tar.gz \
		${PORTNAME}-${PORTVERSION}-type1.tar.gz

MAINTAINER=	kapr@crosswinds.net

RUN_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX
# no other TeX is sufficient

NO_WRKSUBDIR=	yes
NO_BUILD=	yes

post-patch:
	${PERL5} -i.bak -pe 's/^mv\b/${INSTALL_DATA}/' ${WRKDIR}/install.sh

do-install:
	(cd ${WRKDIR}; ${SH} install.sh ${PREFIX})

post-install:
	${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL ${PREFIX}

post-deinstall:
	${SH} ${PKGDIR}/pkg-deinstall ${PKGNAME} POST-DEINSTALL ${PREFIX}

.include <bsd.port.mk>
