source: trunk/dports/graphics/asymptote/Portfile @ 83681

Last change on this file since 83681 was 83681, checked in by raphael@…, 9 years ago

asymptote:

  • update to 2.13
  • indicate license
  • use gcc-4.2 to fix building with Xcode 4

see #31079 (maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 83681 2011-09-09 06:34:18Z raphael@macports.org $
3
4PortSystem      1.0
5
6name            asymptote
7version         2.13
8categories      graphics
9maintainers     gmail.com:loshea
10description     a vector graphics language
11long_description Asymptote is a powerful descriptive \
12                 vector graphics language that provides a natural \
13                 coordinate-based framework for technical drawing. \
14                 Labels and equations are typeset with LaTeX, for \
15                 high-quality PostScript output.
16homepage        http://asymptote.sourceforge.net
17license         LGPL-3+
18platforms       darwin
19configure.args  --with-latex=${prefix}/share/texmf-local/tex/latex \
20                --mandir=${prefix}/share/man
21master_sites    sourceforge
22extract.suffix  .src.tgz
23checksums       rmd160  c38a9224da74bb97a7b63e5ac56ba326b49625d9 \
24                sha256  a0ac4815aaa367a8bc5cb3fb462267959f73e982d07fd96392c019c9fdfb7a13
25depends_build   port:texinfo
26depends_lib     port:readline \
27                port:texlive \
28                port:ghostscript \
29                port:fftw-3 \
30                port:gsl \
31                port:libsigsegv \
32                port:ncurses \
33                port:boehmgc
34
35# asy binary fails to compile examples if it is compiled with llvm-gcc-4.2
36# clang fails to compile asymptote
37if {${configure.compiler} == "clang" ||
38    ${configure.compiler} == "llvm-gcc-4.2"} {
39    configure.compiler gcc-4.2
40    if {![file executable ${configure.cc}]} {
41        depends_build-append port:apple-gcc42
42        configure.compiler apple-gcc-4.2
43    }
44}
45
46post-destroot {
47    set python.bin ""
48    if {[variant_isset python27]} {
49        set python.bin ${prefix}/bin/python2.7
50    } elseif {[variant_isset python26]} {
51        set python.bin ${prefix}/bin/python2.6
52    }
53    if {${python.bin} != ""} {
54        eval reinplace {"s|#!/usr/bin/env python|#!${python.bin}|"} \
55            [glob -directory ${destroot}${prefix}/share/${name}/GUI *.py]
56    } else {
57        delete ${destroot}${prefix}/bin/xasy
58    }
59}
60
61post-activate {
62  # run `mktexlsr` to make sure the asymptote files are found:
63  system "mktexlsr"
64}
65post-deactivate {
66  system "mktexlsr"
67}
68
69variant python26 conflicts python27 description {Enable xasy GUI using Python 2.6} {
70    depends_lib-append port:py26-tkinter port:py26-pil
71}
72variant python27 conflicts python26 description {Enable xasy GUI using Python 2.7} {
73    depends_lib-append port:py27-tkinter port:py27-pil
74}
75if {![variant_isset python26]} {
76    default_variants +python27
77}
Note: See TracBrowser for help on using the repository browser.