Ticket #13119: Portfile

File Portfile, 1.7 KB (added by yenwenchieh@…, 17 years ago)

Portfile for slang-2.1.3

Line 
1# $Id:$
2
3PortSystem      1.0
4
5name            slang2
6set my_name     slang
7set milestone   2.1
8set patchlevel  3
9version         ${milestone}.${patchlevel}
10categories      lang devel
11platforms       darwin
12maintainers     nomaintainer
13description     multi-platform programmer's library
14
15long_description \
16    S-Lang is a multi-platform programmer's library designed to \
17    allow a developer to create robust multi-platform software. \
18    It provides facilities required by interactive applications \
19    such as display/screen management, keyboard input, keymaps, \
20    and so on. The most exciting feature of the library is the \
21    slang interpreter that may be easily embedded into a program \
22    to make it extensible.
23
24homepage        http://www.s-lang.org/
25platform        darwin
26master_sites    ftp://space.mit.edu/pub/davis/slang/v${milestone}/ \
27                ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${milestone}/ \
28                ftp://ftp.ntua.gr/pub/lang/slang/slang/v${milestone}/ \
29                ftp://ftp.plig.org/pub/slang/v${milestone}/
30distname        ${my_name}-${version}
31checksums       md5 da66de9579c4e2986b0285848f595c53
32
33depends_lib     port:libiconv \
34                port:libpng \
35                port:pcre \
36                port:zlib
37test.run        yes
38test.target     check
39
40destroot.args   install_doc_dir=${prefix}/share/doc/${my_name}-${version} \
41                SLSH_DOC_DIR=${prefix}/share/doc/slsh-${version}
42
43post-destroot {
44    foreach {lib} [eval list [glob -type f ${destroot}${prefix}/lib/*.dylib] \
45        [glob ${destroot}${prefix}/lib/slang/v2/modules/*.so]] {
46        file attributes ${lib} -permissions 0755
47    }
48}
49
50livecheck.check regex
51livecheck.regex {S-Lang (\d+(?:\.\d+)*)}
52