Ticket #28231: Portfile

File Portfile, 1.9 KB (added by zquestz (Josh Ellithorpe), 14 years ago)

Portfile

Line 
1# $Id$
2
3PortSystem        1.0
4
5name              QiII
6version           1.07
7revision          1
8categories        lang
9maintainers       mac.com:quest
10platforms         universal
11description       Qi is a functional programming language developed \
12                  by Dr Mark Tarver
13
14long_description  Qi is a functional programming language developed \
15                  by Dr Mark Tarver and introduced in April 2005. A \
16                  new version was reimplemented and issued as Qi II \
17                  in November 2008. The first version was free \
18                  software, licensed under GPL. But, as GPL was \
19                  perceived as unfriendly to commercial use, Qi II \
20                  is available via two proprietary licenses: one for \
21                  personal and educational use, and another for \
22                  producing closed source software. \
23                  Qi is written in Lisp. It includes most of the \
24                  features common to modern functional programming \
25                  languages such as pattern-matching, currying, partial \
26                  applications, guards and (optional) static type checking.
27
28homepage          http://http://www.lambdassociates.org/
29master_sites      http://www.lambdassociates.org/Download/
30distname          ${name}${version}
31use_zip           yes
32use_configure     no
33
34checksums         md5 3a0b5c56d0f107f80f5bca11b82a4d59
35
36depends_build       port:sbcl
37
38build {
39  system "cd ${worksrcpath}/Lisp; sbcl --load 'install.lsp'"
40  reinplace "s|Qi.core|${prefix}/src/${name}/Lisp/Qi.core|g" ${worksrcpath}/Lisp/Qi-Linux-SBCL
41  system "cd ${worksrcpath}/Lisp; cat Qi-Linux-SBCL | col -b > Qi-Mac-SBCL"
42  system "cd ${worksrcpath}/Lisp; chmod 755 Qi-Mac-SBCL"
43}
44
45destroot {
46  system "cp -R ${worksrcpath} ${destroot}${prefix}/src/${name}"
47}
48
49post-install {
50  system "ln -fs ${prefix}/src/${name}/Lisp/Qi-Mac-SBCL ${prefix}/bin/Qi"
51}
52
53post-uninstall {
54  system "cd ${prefix}/bin; rm Qi"
55}