source: trunk/dports/print/transfig/Portfile

Last change on this file was 127153, checked in by ryandesign@…, 3 years ago

transfig: no longer blacklist clang

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 127153 2014-10-22 02:14:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                transfig
7version             3.2.5d
8revision            5
9categories          print graphics
10platforms           darwin
11license             Permissive
12maintainers         nomaintainer
13
14description         Tools to convert Xfig's .fig files
15
16long_description    TransFig is a set of tools for creating TeX documents \
17                    with graphics which are portable, in the sense that they \
18                    can be printed in a wide variety of environments. \
19                    Drivers currently exist for the following graphics \
20                    languages: (E)EPIC macros, LaTeX picture environment, PIC, \
21                    PiCTeX, PostScript, and TeXtyl.
22
23homepage            http://xfig.org/
24master_sites        sourceforge:mcj
25distname            ${name}.${version}
26
27checksums           md5     f9eac7f265668ecbfda6aaf7581989ad \
28                    sha1    90ff277cc9b3fa0d0313052fcf5e3ffad8652abc \
29                    rmd160  6d6aff522bd9e886029bf317e7b9dcd495a5c0ef
30
31depends_lib         port:libpng \
32                    port:xpm
33
34depends_run         port:netpbm
35
36patchfiles          patch-fig2dev-dev-Imakefile \
37                    patch-fig2dev-Imakefile \
38                    patch-libpng-1.5.diff \
39                    patch-transfig-Imakefile \
40                    patch-c-cleanup.diff
41
42post-patch {
43    reinplace "s|__PREFIX|${prefix}|g"  ${worksrcpath}/fig2dev/Imakefile \
44                                        ${worksrcpath}/fig2dev/dev/Imakefile \
45                                        ${worksrcpath}/transfig/Imakefile
46    reinplace "s|__DESTROOT|${destroot}|g"  ${worksrcpath}/fig2dev/Imakefile \
47                                            ${worksrcpath}/fig2dev/dev/Imakefile \
48                                            ${worksrcpath}/transfig/Imakefile
49}
50
51use_xmkmf           yes
52
53depends_skip_archcheck  imake
54
55variant universal {}
56
57build.args          CC="${configure.cc} [get_canonical_archflags cc]"
58
59destroot.target     install install.man
60
61post-destroot {
62    foreach prog {fig2dev fig2ps2tex pic2tpic transfig} {
63        if {![file exists ${destroot}${prefix}/bin/${prog}]} {
64            return -code error "${prog} did not get installed"
65        }
66    }
67   
68    set docdir ${destroot}${prefix}/share/doc/${name}
69    xinstall -d ${docdir}
70    xinstall -m 644 -W ${worksrcpath} \
71        CHANGES \
72        NOTES \
73        README \
74        ${docdir}
75}
76
77livecheck.type      regex
78livecheck.url       http://xfig.org/art17.html
79livecheck.regex     transfig.(\[0-9.a-z\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.