View | Details | Raw Unified | Return to bug 77022 | Differences between
and this patch

Collapse All | Expand All

(-)pscyr/Makefile (-6 / +9 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	PSCyr
8
PORTNAME=	PSCyr
9
PATCH_LEVEL=	2
10
PORTVERSION=	0.4c${PATCH_LEVEL}
9
PORTVERSION=	0.4c${PATCH_LEVEL}
10
PORTREVISION=	1
11
CATEGORIES=	russian print
11
CATEGORIES=	russian print
12
MASTER_SITES=	ftp://scon155.phys.msu.su/pub/russian/psfonts/ \
12
MASTER_SITES=	ftp://scon155.phys.msu.su/pub/russian/psfonts/ \
13
		ftp://ftp.sai.msu.su/pub/misc/fonts/cyrillic/psfonts/ \
13
		ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/
14
		ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/
14
DISTFILES=	${PORTNAME}-${PORTVERSION:S/${PATCH_LEVEL}$/-patch&/}-tex.tar.gz \
15
DISTFILES=	${PORTNAME}-${PORTVERSION:S/${PATCH_LEVEL}$/-patch&/}-tex.tar.gz \
15
		${PORTNAME}-${PORTVERSION:S/${PATCH_LEVEL}$/-patch&/}-type1.tar.gz
16
		${PORTNAME}-${PORTVERSION:S/${PATCH_LEVEL}$/-patch&/}-type1.tar.gz
Lines 17-32 Link Here
17
MAINTAINER=	kappa@freebsd.org.ua
18
MAINTAINER=	kappa@freebsd.org.ua
18
COMMENT=	Cyrillic PostScript Type1 fonts for use with TeX
19
COMMENT=	Cyrillic PostScript Type1 fonts for use with TeX
19
20
20
RUN_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX
21
RUN_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX-base
21
# no other TeX is sufficient
22
# no other TeX will do
23
24
PATCH_LEVEL=	2
22
25
23
NO_WRKSUBDIR=	yes
26
NO_WRKSUBDIR=	yes
24
NO_BUILD=	yes
27
NO_BUILD=	yes
25
28
29
USE_REINPLACE=	yes
30
26
post-patch:
31
post-patch:
27
	@${CP} ${WRKDIR}/install.sh ${WRKDIR}/install.sh.orig;
32
	@${REINPLACE_CMD} -e 's/^mv /${INSTALL_DATA} /' ${WRKDIR}/install.sh
28
	@${SED} -e 's/^mv /${INSTALL_DATA} /' \
29
		${WRKDIR}/install.sh.orig > ${WRKDIR}/install.sh
30
33
31
do-install:
34
do-install:
32
	(cd ${WRKDIR}; ${SH} install.sh ${PREFIX})
35
	(cd ${WRKDIR}; ${SH} install.sh ${PREFIX})
(-)pscyr/pkg-deinstall (-3 / +5 lines)
Lines 5-12 Link Here
5
5
6
case $2 in
6
case $2 in
7
	POST-DEINSTALL)
7
	POST-DEINSTALL)
8
		perl -i -pe 's/pscyr\.map\n//m' ${PREFIX}/share/texmf/dvips/config/updmap
8
		TEMPFILE=`mktemp -t u`
9
		(cd ${PREFIX}/share/texmf/dvips/config/; sh updmap)
9
		cp ${PREFIX}/share/texmf-var/web2c/updmap.cfg ${TEMPFILE}
10
		mktexlsr
10
		sed -nE '/^Map pscyr\.map|# PSCyr/!p' < ${TEMPFILE} > ${PREFIX}/share/texmf-var/web2c/updmap.cfg
11
		rm ${TEMPFILE}
12
		PATH=${PATH}:${PREFIX} ${PREFIX}/bin/updmap
11
		;;
13
		;;
12
esac
14
esac
(-)pscyr/pkg-install (-4 / +7 lines)
Lines 5-13 Link Here
5
5
6
case $2 in
6
case $2 in
7
	POST-INSTALL)
7
	POST-INSTALL)
8
		rm -f `kpsewhich -expand-var='$VARTEXFONTS'`/pk/modeless/public/pscyr/*
8
		rm -f `${PREFIX}/bin/kpsewhich -expand-var='$VARTEXFONTS'`/pk/modeless/public/pscyr/*
9
		perl -i -pe 's/^(extra_modules="$)/$1\npscyr.map/m' ${PREFIX}/share/texmf/dvips/config/updmap
9
		cat << 'EOF' >> ${PREFIX}/share/texmf-var/web2c/updmap.cfg 
10
		(cd ${PREFIX}/share/texmf/dvips/config/; sh updmap)
10
# PSCyr
11
		mktexlsr
11
Map pscyr.map
12
EOF
13
		${PREFIX}/bin/mktexlsr
14
		PATH=${PATH}:${PREFIX} ${PREFIX}/bin/updmap
12
		;;
15
		;;
13
esac
16
esac

Return to bug 77022