# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $ PortSystem 1.0 name logtalk version 2.36.0 categories lang maintainers logtalk.org:pmoura platforms darwin freebsd linux description Logtalk - Open source object-oriented logic programming language long_description \ Logtalk is an open source object-oriented logic programming language \ that can use most Prolog implementations as a back-end compiler. \ As a multi-paradigm language, Logtalk includes support for both \ prototypes and classes, protocols, component-based programming \ through category-based composition, event-driven programming, and \ multi-threading programming. homepage http://logtalk.org/ master_sites ${homepage}files/ checksums md5 29f988ef86fda4873f782790dbc0b9c9 distname lgt[strsed ${version} {g/\.//}] use_bzip2 yes use_configure no build {} universal_variant no destroot { system "cd ${worksrcpath}/scripts && ./install.sh ${destroot}${prefix}" } post-pkg { set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/License.html ${resources} file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/ReadMe.html ${resources} file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/Welcome.html ${resources} file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/postflight ${resources} } post-activate { ui_msg "****************************************************************************" ui_msg "* Integration scripts have been created for running Logtalk with selected" ui_msg "* back-end Prolog compilers (which must be properly installed for running" ui_msg "* the scripts!):" ui_msg "*" ui_msg "* B-Prolog (version 7.1 or later): bplgt (first run must use sudo)" ui_msg "* Ciao (version 1.10): ciaolgt (first run must use sudo)" ui_msg "* CxProlog (version 0.97.2 or later): cxlgt" ui_msg "* ECLiPSe (versions 5.10, 6.0): eclipselgt" ui_msg "* GNU Prolog (version 1.3.1 or later): gplgt" ui_msg "* K-Prolog (versions 5.1.5, 6.0.4): plclgt" ui_msg "* Qu-Prolog (version 8.1 or later): qplgt" ui_msg "* Quintus Prolog (version 3.5): quintuslgt (requires patching Logtalk)" ui_msg "* SICStus Prolog (versions 3.12.x, 4.0.x): sicstuslgt" ui_msg "* SWI-Prolog (version 5.6.44 or later): swilgt" ui_msg "* XSB (version 3.2 or later): xsblgt (first run must use sudo)" ui_msg "* XSB MT (version 3.2 or later): xsbmtlgt (first run must use sudo)" ui_msg "* XSB MT 64 bits (version 3.2 or later): xsbmt64lgt (first run must use sudo)" ui_msg "* YAP (version 5.1.3 or later): yaplgt" ui_msg "*" ui_msg "* Integration with Quintus Prolog requires manual patches that render" ui_msg "* Logtalk incompatible with all the other compilers." ui_msg "*" ui_msg "* Remember to set the environment variable LOGTALKHOME to the path to" ui_msg "* the Logtalk distribution: ${prefix}/share/logtalk" ui_msg "* and the environment variable LOGTALKUSER to your local configuration" ui_msg "* directory (usually ~/logtalk), which you must create by running the" ui_msg "* command cplgtdirs. See the file \$LOGTALKHOME/CUSTOMIZE.txt for details" ui_msg "* on how to customize your working environment." ui_msg "****************************************************************************" }