Ticket #22298: Portfile-logtalk.diff
File Portfile-logtalk.diff, 2.6 KB (added by pmoura (Paulo Moura), 15 years ago) |
---|
-
Portfile
old new 1 # $Id: Portfile 55449 2009-08-10 23:12:26Z macsforever2000@macports.org $1 # $Id: Portfile 32263 2007-12-23 11:23:10Z ryandesign@macports.org $ 2 2 3 3 PortSystem 1.0 4 4 name logtalk 5 version 2.37.35 version 2.37.5 6 6 7 7 categories lang 8 8 maintainers logtalk.org:pmoura … … 10 10 description Logtalk - Open source object-oriented logic programming language 11 11 12 12 long_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. 13 Logtalk is an object-oriented logic programming language that can use most \ 14 Prolog implementations as a back-end compiler. As a multi-paradigm language, \ 15 it includes support for both prototypes and classes, protocols (interfaces), \ 16 component-based programming through category-based composition, event-driven \ 17 programming, and high-level multi-threading programming. 19 18 20 homepage 19 homepage http://logtalk.org/ 21 20 master_sites ${homepage}files/ 22 21 23 checksums md5 7779b9cc4636184d92b59b7931096e9a22 checksums md5 7d4bc2a1a5d4f404eb3bc21d178d37e7 24 23 25 24 distname lgt[strsed ${version} {g/\.//}] 26 25 27 26 use_bzip2 yes 28 27 28 depends_lib port:shared-mime-info 29 29 30 use_configure no 30 31 31 32 build {} … … 36 37 system "cd ${worksrcpath}/scripts && ./install.sh ${destroot}${prefix}" 37 38 } 38 39 40 post-destroot { 41 system "rm -rf ${destroot}${prefix}/share/mime" 42 } 43 39 44 post-pkg { 40 45 set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ 41 46 file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/License.html ${resources} … … 75 80 ui_msg "* directory (usually ~/logtalk), which you must create by running the" 76 81 ui_msg "* command cplgtdirs. See the file \$LOGTALKHOME/CUSTOMIZE.txt for details" 77 82 ui_msg "* on how to customize your working environment." 83 ui_msg "*" 84 system "rm -f ${prefix}/share/mime/packages/logtalk.xml" 85 system "mkdir -p ${prefix}/share/mime/packages" 86 system "cp ${prefix}/share/${distname}/scripts/freedesktop/logtalk.xml ${prefix}/share/mime/packages/logtalk.xml" 87 system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true" 88 ui_msg "* Added the Logtalk mime-type to the Shared MIME-info Database." 78 89 ui_msg "****************************************************************************" 79 90 }