source: trunk/dports/devel/angelscript/Portfile

Last change on this file was 87788, checked in by ryandesign@…, 6 years ago

angelscript: fix intermittent time-sensitive destroot problem; see #32426

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 87788 2011-12-06 06:21:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                angelscript
7version             2.22.0
8revision            1
9categories          devel
10platforms           darwin
11maintainers         strasweb.fr:rudloff openmaintainer
12license             zlib
13
14description         Flexible cross-platform scripting library
15
16long_description    The AngelCode Scripting Library, or AngelScript as it is \
17                    also known, is an extremely flexible cross-platform \
18                    scripting library designed to allow applications to \
19                    extend their functionality through external scripts. It \
20                    has been designed from the beginning to be an easy to \
21                    use component, both for the application programmer and \
22                    the script writer.
23
24homepage            http://www.angelcode.com/angelscript/
25master_sites        ${homepage}sdk/files/
26distname            ${name}_${version}
27use_zip             yes
28
29checksums           rmd160  70f832c71b01c40efc26739f9c9fb38b3983594b \
30                    sha256  9d3743c25d43560e31dc91b2f0d9a47249c3e91e69967488cda370de45f70548
31
32worksrcdir          ${name}/projects/gnuc macosx/
33
34post-extract {
35    # DOS to UNIX line endings so we can patch properly.
36    reinplace "s|\r||g" ${worksrcpath}/makefile
37}
38
39patchfiles          patch-makefile.diff
40
41use_configure       no
42
43variant universal {}
44
45build.args          AFLAGS="[get_canonical_archflags]" \
46                    CXX=${configure.cxx} \
47                    LOCAL=${prefix}
48
49destroot.destdir    LOCAL=${destroot}${prefix}
50
51post-destroot {
52    set docdir ${destroot}${prefix}/share/doc
53    xinstall -d ${docdir}
54    copy ${workpath}/docs ${docdir}/${name}
55}
56
57livecheck.type      regex
58livecheck.url       [lindex ${master_sites} 0]
59livecheck.regex     ${name}_(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.