Ticket #13269: Portfile

File Portfile, 2.6 KB (added by pmoura (Paulo Moura), 17 years ago)
Line 
1# $Id: Portfile 28172 2007-08-23 13:33:11Z gwright@macports.org $
2
3PortSystem      1.0
4name            logtalk
5version Release 2.30.8
6
7categories      lang
8maintainers     pmoura@logtalk.org
9platforms       darwin freebsd linux
10description     Logtalk - Open source object-oriented logic programming language
11
12long_description        \
13                Logtalk is an open source object-oriented logic programming language    \
14                that can use most Prolog implementations as a back-end compiler.                \
15                As a multi-paradigm language, Logtalk includes support for both                 \
16                prototypes and classes, protocols, component-based programming                  \
17                through category-based composition, event-driven programming, and               \
18                multi-threading programming.
19
20homepage        http://logtalk.org/
21master_sites    ${homepage}/files/
22
23checksums md5 b0f320850680a7456113fae3e2e86b01
24
25distname lgt2309
26extract.suffix .tar.bz2
27
28use_bzip2 yes
29
30configure       {}
31
32build           {}
33
34destroot        {
35        cd ${workpath}/${worksrcdir}/scripts
36        system "./install.sh ${destroot}/${prefix}"
37}
38
39post-pkg {
40        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
41        file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/License.html ${resources}
42        file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/ReadMe.html ${resources}
43        file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/Welcome.html ${resources}
44        file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/postflight ${resources}
45}
46
47post-activate {
48        ui_msg "****************************************************************************"
49        ui_msg "*  Integration scripts have been created for running Logtalk with selected"
50        ui_msg "*  back-end Prolog compilers (which must be properly installed for running"
51        ui_msg "*  the scripts!):"
52        ui_msg "*"
53        ui_msg "*    B-Prolog:       bplgt"
54        ui_msg "*    CIAO:           ciaolgt"
55        ui_msg "*    CxProlog:       cxlgt"
56        ui_msg "*    ECLiPSe:        eclipselgt"
57        ui_msg "*    GNU Prolog:     gplgt"
58        ui_msg "*    K-Prolog:       plclgt"
59        ui_msg "*    Qu-Prolog:      qplgt"
60        ui_msg "*    SICStus Prolog: sicstuslgt"
61        ui_msg "*    SWI-Prolog:     swilgt"
62        ui_msg "*    XSB:            xsblgt"
63        ui_msg "*    YAP:            yaplgt"
64        ui_msg "*"
65        ui_msg "* Remember to set the environment variable LOGTALKHOME to the path to"
66        ui_msg "* the Logtalk distribution: ${prefix}/share/logtalk"
67        ui_msg "* and the environment variable LOGTALKUSER to your local configuration"
68        ui_msg "* directory (usually ~/logtalk), which you can create by running the"
69        ui_msg "* command cplgtdirs. See the file \$LOGTALKHOME/CUSTOMIZE.txt for details"
70        ui_msg "* on how to customize your working environment."
71        ui_msg "****************************************************************************"
72}