source: trunk/dports/lang/logtalk/Portfile

Last change on this file was 153992, checked in by larryv@…, 11 months ago

logtalk: Update to 3.08.0

Closes: #52630

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# $Id: Portfile 153992 2016-10-17 17:30:12Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                logtalk
6version             3.08.0
7
8categories          lang
9maintainers         logtalk.org:pmoura
10license             Apache-2
11platforms           darwin freebsd linux
12supported_archs     noarch
13
14description         Logtalk - Open source object-oriented logic programming language
15
16long_description    Logtalk is an object-oriented logic programming language that extends and \
17                    leverages the Prolog language with a feature set suitable for programming \
18                    in the large. Logtalk supports modern code encapsulation and code reuse   \
19                    mechanisms without compromising the declarative programming features of   \
20                    Prolog. Logtalk is implemented in highly portable code and can use most   \
21                    modern and standards compliant Prolog implementations as a back-end       \
22                    compiler. As a multi-paradigm language, it includes support for modules,  \
23                    prototypes, classes, protocols (interfaces), categories (components and   \
24                    hot patching), event-driven programming, and high-level multi-threading   \
25                    programming. Its distribution uses a commercial friendly license and      \
26                    includes full documentation, portable libraries, a comprehensive set of   \
27                    portable developer tools, and a large number of programming examples to   \
28                    help get you started.
29
30homepage            http://logtalk.org/
31master_sites        ${homepage}files/
32
33checksums           rmd160  9bae56beed9c5b5009604c3b24de76ebdf5f6a91 \
34                    sha256  2261adc042b72c236712b5c6ba2fec785d4956157ff44234dfc197b636b6d0cc
35
36use_bzip2           yes
37
38depends_lib         port:shared-mime-info
39
40use_configure       no
41
42build               {}
43
44destroot {
45    system -W ${worksrcpath}/scripts "./install.sh -p ${destroot}${prefix}"
46}
47
48post-destroot {
49    delete ${destroot}${prefix}/share/mime
50}
51
52package.flat no
53
54post-pkg {
55    set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
56    file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/License.html ${resources}
57    file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/ReadMe.html ${resources}
58    file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/Welcome.html ${resources}
59    file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/postflight ${resources}
60}
61
62post-activate {
63    ui_msg "****************************************************************************"
64    ui_msg "* Integration scripts have been created for running Logtalk with selected"
65    ui_msg "* back-end Prolog compilers (which must be properly installed for running"
66    ui_msg "* the scripts!):"
67    ui_msg "*"
68    ui_msg "* B-Prolog (version 7.8 or later):         bplgt"
69    ui_msg "* CxProlog (version 0.98.1 or later):      cxlgt"
70    ui_msg "* ECLiPSe (version 6.1#143 or later):      eclipselgt"
71    ui_msg "* GNU Prolog (version 1.4.2 or later):     gplgt"
72    ui_msg "* JIProlog (version 4.1.2.8 or later):     jiplgt      (first run may require sudo)"
73    ui_msg "* Lean Prolog (version 4.5.7 or later):    lplgt       (experimental)"
74    ui_msg "* Qu-Prolog (version 9.7 or later):        qplgt"
75    ui_msg "* Quintus Prolog (version 3.3 or later):   quintuslgt  (experimental)"
76    ui_msg "* SICStus Prolog (version 4.1.0 or later): sicstuslgt"
77    ui_msg "* SWI-Prolog (version 6.6.0 or later):     swilgt"
78    ui_msg "* XSB (version 3.5.0 or later):            xsblgt      (first run may require sudo)"
79    ui_msg "* XSB MT (version 3.5.0 or later):         xsbmtlgt    (first run may require sudo)"
80    ui_msg "* YAP (version 6.3.4 or later):            yaplgt"
81    ui_msg "*"
82    ui_msg "* Remember to set the environment variable LOGTALKHOME to the path to"
83    ui_msg "* the Logtalk distribution: ${prefix}/share/logtalk"
84    ui_msg "* and the environment variable LOGTALKUSER to your local configuration"
85    ui_msg "* directory (usually ~/logtalk), which you must create by running the"
86    ui_msg "* command logtalk_user_setup. See the file \$LOGTALKHOME/CUSTOMIZE.txt"
87    ui_msg "* for details on how to customize your working environment."
88    ui_msg "*"
89    if {[file exists ${prefix}/share/mime/packages/logtalk.xml]} {
90        delete ${prefix}/share/mime/packages/logtalk.xml
91    }
92    xinstall -d ${prefix}/share/mime/packages
93    xinstall -m 644 ${prefix}/share/logtalk/scripts/freedesktop/logtalk.xml ${prefix}/share/mime/packages
94    system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
95    ui_msg "* Added the Logtalk mime-type to the Shared MIME-info Database."
96    ui_msg "****************************************************************************"
97}
Note: See TracBrowser for help on using the repository browser.