source: trunk/dports/lang/factor/Portfile

Last change on this file was 132636, checked in by ciserlohn@…, 3 years ago

factor: update to version 0.97

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 132636 2015-02-06 10:24:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                factor
7version             0.97
8categories          lang devel
9platforms           darwin
10license             BSD
11maintainers         ciserlohn
12
13description         A practical stack language
14
15long_description    The Factor programming language combines powerful language \
16                    features with a full-featured library. The implementation \
17                    is fully compiled for performance, while still supporting \
18                    interactive development. Factor applications are portable \
19                    between all common platforms. Factor can deploy stand- \
20                    alone applications on all platforms.
21
22homepage            http://www.factorcode.org/
23
24master_sites        http://downloads.factorcode.org/releases/${version}/
25distname            ${name}-src-${version}
26worksrcdir          ${name}
27
28checksums           rmd160  166ba7818e1833cb172a30f60c3a4cb072a63ce3 \
29                    sha256  fd75e765590691c89b866e5265ae16bfb36d0e28eed095702ae1e206114663b8
30
31use_zip             yes
32
33universal_variant   no
34supported_archs     i386 x86_64
35
36use_configure       no
37
38if {${build_arch} eq "x86_64"} {
39    build.target    macosx-x86-64
40    set boot_image  boot.unix-x86.64.image
41
42} elseif {${build_arch} eq "i386"} {
43    build.target    macosx-x86-32
44    set boot_image  boot.unix-x86.32.image
45}
46
47build.args-append   CC=${configure.cc} \
48                    CXX=${configure.cxx} \
49                    SITE_CFLAGS="${configure.cflags} ${configure.cc_archflags}"
50
51post-build {
52    system "cd ${worksrcpath} && ./factor -i=./${boot_image}"
53}
54
55destroot {
56    set factor_dir ${destroot}${applications_dir}/Factor-${version}
57    xinstall -d ${factor_dir}
58    foreach f {Factor.app factor.image basis core \
59               extra misc README.md license.txt} {
60        copy ${worksrcpath}/$f ${factor_dir}
61    }
62    copy ${worksrcpath}/libfactor.dylib ${destroot}${prefix}/lib
63
64    xinstall -d ${destroot}${prefix}/share/vim
65        copy ${factor_dir}/misc/vim ${destroot}${prefix}/share/vim/vimfiles
66}
67
68
69livecheck.type      regex
70livecheck.url       ${homepage}
71livecheck.regex     ${name}-src-(\\d+\\.\\d+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.