source: trunk/dports/print/transfig/Portfile @ 89950

Last change on this file since 89950 was 89950, checked in by jeremyhu@…, 8 years ago

transfig: Prefer llvm-gcc due to xorg-cf-files issues

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 89950 2012-02-16 19:22:19Z jeremyhu@macports.org $
2
3PortSystem                      1.0
4
5name                            transfig
6version                         3.2.5d
7revision                        1
8
9description                     Tools to convert Xfig's .fig files
10long_description        TransFig is a set of tools for creating TeX documents \
11                                        with graphics which are portable, in the sense that they \
12                                        can be printed in a wide variety of environments. \
13                                        Drivers currently exist for the following graphics \
14                                        languages: (E)EPIC macros, LaTeX picture environment, PIC, \
15                                        PiCTeX, PostScript, and TeXtyl.
16platforms                       darwin
17categories                      print graphics
18license                         Permissive
19maintainers                     nomaintainer
20homepage                        http://xfig.org/
21master_sites            sourceforge:mcj
22distname                        ${name}.${version}
23checksums                       md5     f9eac7f265668ecbfda6aaf7581989ad \
24                                        sha1    90ff277cc9b3fa0d0313052fcf5e3ffad8652abc \
25                                        rmd160  6d6aff522bd9e886029bf317e7b9dcd495a5c0ef
26depends_lib                     port:libpng \
27                                        port:xpm
28depends_run                     port:netpbm
29use_xmkmf                       yes
30patchfiles                      patch-fig2dev-dev-Imakefile \
31                                        patch-fig2dev-Imakefile \
32                                        patch-transfig-Imakefile
33
34# https://trac.macports.org/ticket/31504
35if {${configure.compiler} == "clang"} { 
36    configure.compiler llvm-gcc-4.2 
37}
38
39post-patch {
40        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/fig2dev/Imakefile
41        reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/fig2dev/Imakefile
42        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/fig2dev/dev/Imakefile
43        reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/fig2dev/dev/Imakefile
44        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/transfig/Imakefile
45        reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/transfig/Imakefile
46}
47destroot.target         install install.man
48post-destroot {
49        set docdir ${destroot}${prefix}/share/doc/${name}
50        xinstall -d ${docdir}
51        xinstall -m 644 -W ${worksrcpath} \
52                CHANGES \
53                NOTES \
54                README \
55                ${docdir}
56}
57
58livecheck.type  regex
59livecheck.regex {>Xfig/Transfig (.*) Download</a>}
Note: See TracBrowser for help on using the repository browser.