Ticket #18217: Portfile

File Portfile, 1.8 KB (added by thatha@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                    dot2texi
6version                 3-0-0
7categories          tex
8platforms           darwin
9maintainers         nomaintainer
10description         Allows you to embed DOT descriptions in your TeX document
11long_description \
12   The dot2texi package allows you to embed graphs written the DOT \
13   description language directly in your document.  The dot2tex tool \
14   is used to transform the output from Graphviz to LATEX code using \
15   either the TikZ and PGF package, orthe PSTricks package. The generated \
16   code can then be included directly in you  document. This package can \
17   automate the process if shell escape is enabled.   
18
19homepage            http://www.fauskes.net/code/dot2tex/documentation/#the-dot2texi-latex-package
20master_sites        googlecode:dot2tex
21checksums           md5     b8aa0f5f4feaf21a1a22b6743aa4d6b3 \
22                    sha1    7d6fa98931ec6806b9ba7c4f29f7e718ff6cb9a8 \
23                    rmd160  053f8db5f6f579f1850f02b9afc269986ee43ef5
24                   
25livecheck.regex     <a href="http://dot2tex.googlecode.com/files/dot2texisty-(.*)\.tar\.gz"
26
27use_zip             yes
28extract.mkdir       yes
29
30distname            ${name}sty-${version}
31
32# Depends on xkeyval (>= 2.3) (provided by texlive, but not by tetex)
33# Also depends on moreverg and PSTricks or PGF
34
35depends_run         bin:dot2tex:dot2tex port:texlive port:pgf
36depends_lib         bin:texhash:texlive
37
38configure { }
39build { }
40
41destroot {
42    set texmf ${destroot}${prefix}/share/texmf-local/
43    set r ${worksrcpath}/dot2texi
44    file mkdir ${texmf}/tex/latex
45    file mkdir ${texmf}/doc/latex/dot2texi
46    file copy ${r}/dot2texi.sty ${texmf}/tex/latex/
47    file copy ${r}/dot2texi.tex ${r}/dot2texi.pdf ${r}/gpl.txt ${r}/README \
48        ${r}/examples \
49        ${texmf}/doc/latex/dot2texi
50}
51
52post-activate {
53    system "texhash"
54}