source: trunk/dports/textproc/rtf2latex/Portfile @ 12733

Last change on this file since 12733 was 10851, checked in by jmpp, 15 years ago

Submitted by: jmpp@

Small, gratuituos change to show some tcl "fanciness", exchanging two instructions to install files with a common
basename by a glob pattern. Thanks to toby@ for the Tcl crash course!
No uprev needed.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1# $Id: Portfile,v 1.3 2005/02/06 22:45:43 jmpp Exp $
2
3PortSystem 1.0
4
5name       rtf2latex
6version    1.5
7categories      textproc
8platforms       darwin
9maintainers     jmpp@opendarwin.org
10
11description     Filter to convert RTF text into LaTeX code
12long_description        rtf2LaTeX is a filter built on Paul DuBois' RTF reader that converts \
13                        RTF (Microsoft's Rich Text Format) into LaTeX. rtf2LaTeX expends a \
14                        good deal of effort in an attempt to make the resulting LaTeX maintainable \
15                        and modifiable.
16
17homepage        http://www.ctan.org/tex-archive/support/rtf2latex
18master_sites    ${homepage}
19distname        rtf2LaTeX
20distfiles       ${distname}.${version}${extract.suffix}
21checksums       md5 90964f786d149d314a57511ed9ceaaee
22
23patchfiles      patch-Makefile.2LaTeX.diff
24
25pre-configure   { file rename ${worksrcpath}/Makefile.2LaTeX ${worksrcpath}/Makefile }
26configure       {
27                cd ${worksrcpath}
28                reinplace "s|-DSYSV||g" Makefile
29                reinplace "s|/usr/local|${prefix}|g" Makefile
30                reinplace "s|/man/man1|/share/man/man1|g" Makefile
31}
32
33build.target    {}
34
35post-destroot   {
36                xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
37                foreach f [glob -directory ${worksrcpath} -type f interna.*] {
38                        xinstall -m 644 -v $f ${destroot}${prefix}/share/doc/${name}
39                }
40}
Note: See TracBrowser for help on using the repository browser.