source: trunk/dports/lang/neko/Portfile

Last change on this file was 115613, checked in by cal@…, 4 years ago

revbump boehmgc dependents (except inkscape, which will fail to build in its current state)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 115613 2014-01-07 00:14:51Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                neko
7version             1.8.2
8revision            1
9categories          lang
10platforms           darwin
11maintainers         ryandesign openmaintainer
12license             LGPL-2.1+
13
14description         high-level dynamically-typed embeddable language
15
16long_description    Neko is a high-level dynamically-typed programming \
17                    language. It can be used as an embedded scripting \
18                    language. It has been designed to provide a common \
19                    runtime for several different languages. Learning and \
20                    using Neko is very easy. You can easily extend the \
21                    language with C libraries. You can also write generators \
22                    from your own language to Neko and then use the Neko \
23                    Runtime to compile, run, and access existing libraries.
24
25homepage            http://nekovm.org/
26master_sites        http://nekovm.org/_media/${distfiles}?id=download&cache=cache&dummy=
27
28checksums           rmd160  363d49f75fcc48dce4576df5c4c8ee06292996e0 \
29                    sha256  3cfcc73a665559df97126b172510ccff934325d6703d76c74fc8cc66f8112725
30
31depends_build       port:boehmgc
32
33depends_lib         port:apache2 \
34                    port:pcre \
35                    port:sqlite3 \
36                    port:zlib
37
38patchfiles          patch-LP64.diff \
39                    patch-Makefile.diff \
40                    patch-src-tools-install.neko.diff \
41                    patch-vm-load.c.diff
42
43set mysql {}
44
45post-patch {
46    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/tools/install.neko ${worksrcpath}/vm/load.c
47    reinplace "s|@MYSQL@|${mysql}|g" ${worksrcpath}/src/tools/install.neko
48}
49
50use_configure       no
51
52variant universal {}
53
54use_parallel_build  no
55
56build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
57                    INSTALL_PREFIX=${prefix} \
58                    MACOSX=1
59
60test.run            yes
61
62destroot.destdir    INSTALL_PREFIX=${destroot}${prefix}
63destroot.args       MACOSX=1
64
65post-destroot {
66    set docdir ${prefix}/share/doc/${subport}
67    xinstall -d ${destroot}${docdir}
68    xinstall -m 644 -W ${worksrcpath} \
69        CHANGES \
70        LICENSE \
71        ${destroot}${docdir}
72}
73
74variant mysql5 description {Use mysql5} conflicts mysql51 mysql55 mariadb percona {
75    depends_lib-append port:mysql5
76    set mysql mysql5
77}
78
79variant mysql51 description {Use mysql51} conflicts mysql5 mysql55 mariadb percona {
80    depends_lib-append port:mysql51
81    set mysql mysql51
82}
83
84variant mysql55 description {Use mysql55} conflicts mysql5 mysql51 mariadb percona {
85    depends_lib-append port:mysql55
86    set mysql mysql55
87}
88
89variant mariadb description {Use mariadb} conflicts mysql5 mysql51 mysql55 percona {
90    depends_lib-append port:mariadb
91    set mysql mariadb
92}
93
94variant percona description {Use percona} conflicts mysql5 mysql51 mysql55 mariadb {
95    depends_lib-append port:percona
96    set mysql percona
97}
98
99if {![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mariadb] && ![variant_isset percona]} {
100    default_variants +mysql5
101}
102
103livecheck.type      regex
104livecheck.url       ${homepage}download
105livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.