# $Id: Portfile,v 1.1 2006/04/29 22:45:39 pguyot Exp $

PortSystem 1.0

name		tetex-frogg
version		0.4
categories	tex print
maintainers	vincent-opdarw@vinc17.org

description	Little collection of French LaTeX/BiBTeX styles
long_description	Little collection of French LaTeX/BiBTeX styles: \
			fr-plain.bst, frmath.sty, lettre.cls.

distname	${name}_${version}.orig
worksrcdir	${name}-${version}

homepage	http://packages.debian.org/unstable/tex/tetex-frogg

master_sites	http://ftp.debian.org/debian/pool/main/t/tetex-frogg
checksums	${distname}${extract.suffix} md5 a0371304008212bb53589a7b9363dd35 \
		${name}_${version}-2.diff.gz md5 54320efadcf71296cec62f6a0b408103

patch_sites	http://ftp.debian.org/debian/pool/main/t/tetex-frogg
patchfiles	${name}_${version}-2.diff.gz
patch.args	-p1

use_configure	no
build		{}

destroot	{
		  file mkdir ${destroot}${prefix}/share/texmf-dist/bibtex/bst/frbib
		  file mkdir ${destroot}${prefix}/share/texmf-dist/tex/latex/misc
		  xinstall -m 644 ${worksrcpath}/bst/fr-plain.bst ${destroot}${prefix}/share/texmf-dist/bibtex/bst/frbib/fr-plain.bst
		  xinstall -m 644 ${worksrcpath}/sty/frmath.sty ${destroot}${prefix}/share/texmf-dist/tex/latex/misc/frmath.sty
		  xinstall -m 644 ${worksrcpath}/lettre/inputs/default.ins ${destroot}${prefix}/share/texmf-dist/tex/latex/misc/default.ins
		  xinstall -m 644 ${worksrcpath}/lettre/inputs/lettre.cls_2.346 ${destroot}${prefix}/share/texmf-dist/tex/latex/misc/lettre.cls_2.346
		  system "ln -s lettre.cls_2.346 ${destroot}${prefix}/share/texmf-dist/tex/latex/misc/lettre.cls"
		}

post-activate	{ system "mktexlsr" }
