diff --git a/print/sgf2tex/Makefile b/print/sgf2tex/Makefile index 78f293fc2ab2..6b671cfd2b45 100644 --- a/print/sgf2tex/Makefile +++ b/print/sgf2tex/Makefile @@ -1,23 +1,23 @@ PORTNAME= sgf2tex PORTVERSION= 3.3 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= print MASTER_SITES= http://sporadic.stanford.edu/bump/ MAINTAINER= spcoltri@omcl.org COMMENT= Convert a Go game record in SGF format into TeX and provide fonts to make a dvi WWW= http://match.stanford.edu/~bump/sgf2tex.html USES= shebangfix tex SHEBANG_FILES= sgf2tex USE_TEX= tex PLIST_SUB= MKTEXLSR=${MKTEXLSR} MAKE_ENV= TEX_BIN=${TEX_BIN} TEX_BIN= ${LOCALBASE}/bin/etex MKTEXLSR= ${LOCALBASE}/bin/mktexlsr post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sgfsplit .include diff --git a/print/sgf2tex/files/patch-Makefile b/print/sgf2tex/files/patch-Makefile index cbc3624b823f..3720a6135754 100644 --- a/print/sgf2tex/files/patch-Makefile +++ b/print/sgf2tex/files/patch-Makefile @@ -1,58 +1,58 @@ --- Makefile.orig 2001-06-18 12:04:35.000000000 +0800 +++ Makefile 2014-07-07 15:16:57.375590865 +0800 @@ -14,12 +14,18 @@ VERSION=3.3 # TEXHASH is MakeTeXls-R for WEB2C Unix distribution, texhash for TETEX, blank # for NTEX. -MFDIR=/usr/share/texmf/fonts/source/public/GOOE -TFMDIR=/usr/share/texmf/fonts/tfm/public/GOOE -TEXINPUTS=/usr/share/texmf/tex/GOOE -MANDIR=/usr/man/man1/ -BINDIR=/usr/local/bin/ +MFDIR=${PREFIX}/share/texmf/fonts/source/public/GOOE +TFMDIR=${PREFIX}/share/texmf/fonts/tfm/public/GOOE +TEXINPUTS=${PREFIX}/share/texmf/tex/generic/GOOE -+MANDIR=${PREFIX}/man/man1/ ++MANDIR=${PREFIX}/share/man/man1/ +BINDIR=${PREFIX}/bin/ +.if exists(${LOCALBASE}/bin/MakeTeXls-R) +TEXHASH=MakeTeXls-R +.elif exists(${LOCALBASE}/bin/texhash) TEXHASH=texhash +.else +TEXHASH= +.endif # PKFONTS may be left undefined for the initial installation. If you are # reinstalling fonts for which you have made modifications to the metafont @@ -45,21 +51,23 @@ TEXHASH=texhash .SUFFIXES : .mf .tfm .300pk .360pk .432pk .600pk .720pk .864pk .300gf .360gf .432gf .600gf .720gf .864gf +all: sgfsplit manual.dvi + sgfsplit: sgfsplit.c cc -g -o sgfsplit sgfsplit.c manual.dvi: manual.tex - tex manual + ${TEX_BIN} manual install: sgfsplit - rm -f $(PKFONTS) - install -m 0644 *.mf $(MFDIR) - install -m 0644 *.tfm $(TFMDIR) - install -m 0755 sgf2tex sgfsplit $(BINDIR) - install -m 0644 sgf2tex.1 sgfsplit.1 $(MANDIR) - install -m 0644 gooemacs.tex gotcmacs.tex $(TEXINPUTS) + #rm -f $(PKFONTS) + mkdir -p $(DESTDIR)$(MFDIR) && install -c -m 0644 *.mf $(DESTDIR)$(MFDIR) + mkdir -p $(DESTDIR)$(TFMDIR) && install -c -m 0644 *.tfm $(DESTDIR)$(TFMDIR) + install -c -m 0755 sgf2tex sgfsplit $(DESTDIR)$(BINDIR) + install -c -m 0644 sgf2tex.1 sgfsplit.1 $(DESTDIR)$(MANDIR) + mkdir -p $(DESTDIR)$(TEXINPUTS) && install -c -m 0644 gooemacs.tex gotcmacs.tex $(DESTDIR)$(TEXINPUTS) $(TEXHASH) - tex manual + install -c -m 0644 manual.dvi $(DESTDIR)${TEXINPUTS}/manual.dvi # The preferred method of installation is just to copy the metafont # sources and tfm files into appropriated directories in MakeTeXPK's diff --git a/print/sgf2tex/pkg-plist b/print/sgf2tex/pkg-plist index 4300216543a9..c6a8a5635811 100644 --- a/print/sgf2tex/pkg-plist +++ b/print/sgf2tex/pkg-plist @@ -1,45 +1,45 @@ bin/sgf2tex bin/sgfsplit -man/man1/sgf2tex.1.gz -man/man1/sgfsplit.1.gz +share/man/man1/sgf2tex.1.gz +share/man/man1/sgfsplit.1.gz share/texmf/fonts/tfm/public/GOOE/gobl.tfm share/texmf/fonts/tfm/public/GOOE/goea.tfm share/texmf/fonts/tfm/public/GOOE/goeb.tfm share/texmf/fonts/tfm/public/GOOE/goec.tfm share/texmf/fonts/tfm/public/GOOE/goed.tfm share/texmf/fonts/tfm/public/GOOE/gooa.tfm share/texmf/fonts/tfm/public/GOOE/goob.tfm share/texmf/fonts/tfm/public/GOOE/gooc.tfm share/texmf/fonts/tfm/public/GOOE/good.tfm share/texmf/fonts/tfm/public/GOOE/gooegb.tfm share/texmf/fonts/tfm/public/GOOE/gooemt.tfm share/texmf/fonts/tfm/public/GOOE/gowl.tfm share/texmf/fonts/source/public/GOOE/bodd.mf share/texmf/fonts/source/public/GOOE/gobas.mf share/texmf/fonts/source/public/GOOE/gobl.mf share/texmf/fonts/source/public/GOOE/goea.mf share/texmf/fonts/source/public/GOOE/goeb.mf share/texmf/fonts/source/public/GOOE/goec.mf share/texmf/fonts/source/public/GOOE/goed.mf share/texmf/fonts/source/public/GOOE/gooa.mf share/texmf/fonts/source/public/GOOE/goob.mf share/texmf/fonts/source/public/GOOE/gooc.mf share/texmf/fonts/source/public/GOOE/good.mf share/texmf/fonts/source/public/GOOE/gooegb.mf share/texmf/fonts/source/public/GOOE/gooemt.mf share/texmf/fonts/source/public/GOOE/gowl.mf share/texmf/fonts/source/public/GOOE/goxa.mf share/texmf/fonts/source/public/GOOE/goxb.mf share/texmf/fonts/source/public/GOOE/goxl.mf share/texmf/fonts/source/public/GOOE/itallg.mf share/texmf/fonts/source/public/GOOE/paramsa.mf share/texmf/fonts/source/public/GOOE/paramsb.mf share/texmf/fonts/source/public/GOOE/paramsbl.mf share/texmf/fonts/source/public/GOOE/paramsc.mf share/texmf/fonts/source/public/GOOE/romandg.mf share/texmf/fonts/source/public/GOOE/wodd.mf share/texmf/tex/generic/GOOE/gooemacs.tex share/texmf/tex/generic/GOOE/gotcmacs.tex share/texmf/tex/generic/GOOE/manual.dvi @postexec %%MKTEXLSR%% @postunexec %%MKTEXLSR%%