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

Collapse All | Expand All

(-)pscyr/Makefile (-10 / +11 lines)
Lines 8-13 Link Here
8
PORTNAME=	PSCyr
8
PORTNAME=	PSCyr
9
PATCH_LEVEL=	2
9
PATCH_LEVEL=	2
10
PORTVERSION=	0.4c${PATCH_LEVEL}
10
PORTVERSION=	0.4c${PATCH_LEVEL}
11
PORTREVISION=	1
11
CATEGORIES=	russian print
12
CATEGORIES=	russian print
12
MASTER_SITES=	ftp://scon155.phys.msu.su/pub/russian/psfonts/ \
13
MASTER_SITES=	ftp://scon155.phys.msu.su/pub/russian/psfonts/ \
13
		ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/
14
		ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/
Lines 17-40 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 is sufficient
22
23
23
NO_WRKSUBDIR=	yes
24
NO_WRKSUBDIR=	yes
24
NO_BUILD=	yes
25
NO_BUILD=	yes
26
MAKE_ENV=	TEXMFDIR=${LOCALBASE}/share/texmf
27
PLIST_SUB=	UPDMAP_SYS=${UPDMAP_SYS} \
28
		MKTEXLSR=${MKTEXLSR}
25
29
26
post-patch:
30
UPDMAP_SYS?=	${LOCALBASE}/bin/updmap-sys
27
	@${CP} ${WRKDIR}/install.sh ${WRKDIR}/install.sh.orig;
31
MKTEXLSR=	${LOCALBASE}/bin/mktexlsr
28
	@${SED} -e 's/^mv /${INSTALL_DATA} /' \
29
		${WRKDIR}/install.sh.orig > ${WRKDIR}/install.sh
30
32
31
do-install:
33
do-install:
32
	(cd ${WRKDIR}; ${SH} install.sh ${PREFIX})
34
	(cd ${WRKDIR}; ${SETENV} ${MAKE_ENV} ${SH} install.sh)
33
35
34
post-install:
36
post-install:
35
	${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL ${PREFIX}
37
	${MKTEXLSR}
36
38
	${UPDMAP_SYS} --quiet --nomkmap --enable Map=pscyr.map
37
post-deinstall:
39
	${UPDMAP_SYS} --quiet --enable Map=pscyr2.map
38
	${SH} ${PKGDIR}/pkg-deinstall ${PKGNAME} POST-DEINSTALL ${PREFIX}
39
40
40
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)pscyr/files/patch-install.sh (-14 / +30 lines)
Lines 1-31 Link Here
1
--- install.sh	Mon Mar  5 23:38:33 2001
1
--- install.sh.orig	Fri Jun 22 14:20:56 2001
2
+++ install.sh	Sat Jun 30 10:23:15 2001
2
+++ install.sh	Wed Mar 23 17:45:52 2005
3
@@ -3,8 +3,10 @@
3
@@ -3,27 +3,32 @@
4
 # Before running the script, choose how you'll update the pscyr.map file
4
 # Before running the script, choose how you'll update the pscyr.map file
5
 # (see below).
5
 # (see below).
6
 
6
 
7
-TEXMF=`kpsewhich -expand-var='$TEXMFMAIN'`
7
-TEXMF=`kpsewhich -expand-var='$TEXMFMAIN'`
8
-mkdir -p $TEXMF/{tex/latex,fonts/tfm/public,fonts/vf/public,fonts/type1/public,fonts/afm/public,doc/fonts}/pscyr
8
-mkdir -p $TEXMF/{tex/latex,fonts/tfm/public,fonts/vf/public,fonts/type1/public,fonts/afm/public,doc/fonts}/pscyr
9
+TEXMF=$1/share/texmf
9
-mv dvips/base/* $TEXMF/dvips/base
10
+for idir in tex/latex fonts/tfm/public fonts/vf/public fonts/type1/public fonts/afm/public doc/fonts
10
-mv dvips/config/* $TEXMF/dvips/config
11
+	do mkdir -p $TEXMF/$idir/pscyr
11
-mv tex/latex/pscyr/* $TEXMF/tex/latex/pscyr
12
-mv fonts/tfm/public/pscyr/* $TEXMF/fonts/tfm/public/pscyr
13
-mv fonts/vf/public/pscyr/* $TEXMF/fonts/vf/public/pscyr
14
-mv fonts/type1/public/pscyr/* $TEXMF/fonts/type1/public/pscyr
15
-mv fonts/afm/public/pscyr/* $TEXMF/fonts/afm/public/pscyr
16
-mv LICENSE doc/README.koi doc/PROBLEMS $TEXMF/doc/fonts/pscyr
17
+for idir in tex/latex fonts/tfm/public fonts/vf/public \
18
+	fonts/type1/public fonts/afm/public \
19
+	fonts/enc/dvips fonts/map/dvips fonts/map/dvipdfm doc/fonts
20
+  	do mkdir -p ${TEXMFDIR}/$idir/pscyr
12
+done
21
+done
13
 mv dvips/base/* $TEXMF/dvips/base
14
 mv dvips/config/* $TEXMF/dvips/config
15
 mv tex/latex/pscyr/* $TEXMF/tex/latex/pscyr
16
@@ -14,8 +16,8 @@
17
 mv fonts/afm/public/pscyr/* $TEXMF/fonts/afm/public/pscyr
18
 mv LICENSE doc/README.koi $TEXMF/doc/fonts/pscyr
19
 
22
 
20
-VARTEXFONTS=`kpsewhich -expand-var='$VARTEXFONTS'`
23
-VARTEXFONTS=`kpsewhich -expand-var='$VARTEXFONTS'`
21
-rm -f $VARTEXFONTS/pk/modeless/public/pscyr/*
24
-rm -f $VARTEXFONTS/pk/modeless/public/pscyr/*
25
+${BSD_INSTALL_DATA} dvips/base/t2a.enc ${TEXMFDIR}/fonts/enc/dvips/pscyr
26
+${BSD_INSTALL_DATA} dvips/config/pscyr.map ${TEXMFDIR}/fonts/map/dvips/pscyr
27
+${BSD_INSTALL_DATA} dvipdfm/base/pscyr2.map ${TEXMFDIR}/fonts/map/dvipdfm/pscyr
28
+${BSD_INSTALL_DATA} tex/latex/pscyr/* ${TEXMFDIR}/tex/latex/pscyr
29
+${BSD_INSTALL_DATA} fonts/tfm/public/pscyr/* ${TEXMFDIR}/fonts/tfm/public/pscyr
30
+${BSD_INSTALL_DATA} fonts/vf/public/pscyr/* ${TEXMFDIR}/fonts/vf/public/pscyr
31
+${BSD_INSTALL_DATA} fonts/type1/public/pscyr/* ${TEXMFDIR}/fonts/type1/public/pscyr
32
+${BSD_INSTALL_DATA} fonts/afm/public/pscyr/* ${TEXMFDIR}/fonts/afm/public/pscyr
33
+${BSD_INSTALL_DATA} LICENSE doc/README.koi doc/PROBLEMS ${TEXMFDIR}/doc/fonts/pscyr
34
+
22
+#VARTEXFONTS=`kpsewhich -expand-var='$VARTEXFONTS'`
35
+#VARTEXFONTS=`kpsewhich -expand-var='$VARTEXFONTS'`
23
+#rm -f $VARTEXFONTS/pk/modeless/public/pscyr/*
36
+#rm -f $VARTEXFONTS/pk/modeless/public/pscyr/*
24
 
37
 
25
 # Next, we need to update psfonts.map.  The simplest (but not the best)
38
 # Next, we need to update psfonts.map.  The simplest (but not the best)
26
 # method is to uncomment the following two lines.  A better solution is
39
 # method is to uncomment the following two lines.  A better solution is
27
@@ -25,5 +27,5 @@
40
 # to add the line "pscyr.map" to the extra_module section of updmap script
28
 #cd $TEXMF/dvips/config
41
 # and then run it.
42
 #
43
-#cd $TEXMF/dvips/config
44
+#cd ${TEXMFDIR}/dvips/config
29
 #cat pscyr.map >> psfonts.map
45
 #cat pscyr.map >> psfonts.map
30
 
46
 
31
-mktexlsr
47
-mktexlsr
(-)pscyr/pkg-deinstall (-12 lines)
Lines 1-12 Link Here
1
#!/bin/sh
2
3
# either $PKG_PREFIX or $3 should be set
4
PREFIX=${PKG_PREFIX:-$3}
5
6
case $2 in
7
	POST-DEINSTALL)
8
		perl -i -pe 's/pscyr\.map\n//m' ${PREFIX}/share/texmf/dvips/config/updmap
9
		(cd ${PREFIX}/share/texmf/dvips/config/; sh updmap)
10
		mktexlsr
11
		;;
12
esac
(-)pscyr/pkg-install (-13 lines)
Lines 1-13 Link Here
1
#!/bin/sh
2
3
# either $PKG_PREFIX or $3 should be set
4
PREFIX=${PKG_PREFIX:-$3}
5
6
case $2 in
7
	POST-INSTALL)
8
		rm -f `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
10
		(cd ${PREFIX}/share/texmf/dvips/config/; sh updmap)
11
		mktexlsr
12
		;;
13
esac
(-)pscyr/pkg-plist (-2 / +13 lines)
Lines 1-8 Link Here
1
@comment $FreeBSD$
1
share/texmf/doc/fonts/pscyr/LICENSE
2
share/texmf/doc/fonts/pscyr/LICENSE
2
share/texmf/doc/fonts/pscyr/PROBLEMS
3
share/texmf/doc/fonts/pscyr/PROBLEMS
3
share/texmf/doc/fonts/pscyr/README.koi
4
share/texmf/doc/fonts/pscyr/README.koi
4
share/texmf/dvips/base/t2a.enc
5
@unexec %%UPDMAP_SYS%% --quiet --nomkmap --disable pscyr.map
5
share/texmf/dvips/config/pscyr.map
6
@unexec %%UPDMAP_SYS%% --quiet --disable pscyr2.map
7
share/texmf/fonts/enc/dvips/pscyr/t2a.enc
8
@dirrm share/texmf/fonts/enc/dvips/pscyr
9
share/texmf/fonts/map/dvips/pscyr/pscyr.map
10
@dirrm share/texmf/fonts/map/dvips/pscyr
11
share/texmf/fonts/map/dvipdfm/pscyr/pscyr2.map
12
@dirrm share/texmf/fonts/map/dvipdfm/pscyr
6
share/texmf/fonts/afm/public/pscyr/acade1.afm
13
share/texmf/fonts/afm/public/pscyr/acade1.afm
7
share/texmf/fonts/afm/public/pscyr/acade2.afm
14
share/texmf/fonts/afm/public/pscyr/acade2.afm
8
share/texmf/fonts/afm/public/pscyr/acade3.afm
15
share/texmf/fonts/afm/public/pscyr/acade3.afm
Lines 325-327 Link Here
325
@dirrm share/texmf/fonts/tfm/public/pscyr
332
@dirrm share/texmf/fonts/tfm/public/pscyr
326
@dirrm share/texmf/fonts/afm/public/pscyr
333
@dirrm share/texmf/fonts/afm/public/pscyr
327
@dirrm share/texmf/doc/fonts/pscyr
334
@dirrm share/texmf/doc/fonts/pscyr
335
@exec %%MKTEXLSR%%
336
@exec %%UPDMAP_SYS%% --quiet --nomkmap --enable Map=pscyr.map
337
@exec %%UPDMAP_SYS%% --quiet --enable Map=pscyr2.map
338
@unexec %%MKTEXLSR%%

Return to bug 77022