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 $
    22
    33PortSystem      1.0
    44name            logtalk
    5 version 2.37.3
     5version         2.37.5
    66
    77categories      lang
    88maintainers     logtalk.org:pmoura
     
    1010description     Logtalk - Open source object-oriented logic programming language
    1111
    1212long_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.
    1918
    20 homepage        http://logtalk.org/
     19homepage                http://logtalk.org/
    2120master_sites    ${homepage}files/
    2221
    23 checksums md5 7779b9cc4636184d92b59b7931096e9a
     22checksums               md5     7d4bc2a1a5d4f404eb3bc21d178d37e7
    2423
    2524distname                lgt[strsed ${version} {g/\.//}]
    2625
    2726use_bzip2               yes
    2827
     28depends_lib             port:shared-mime-info
     29
    2930use_configure   no
    3031
    3132build                   {}
     
    3637        system "cd ${worksrcpath}/scripts && ./install.sh ${destroot}${prefix}"
    3738}
    3839
     40post-destroot {
     41        system "rm -rf ${destroot}${prefix}/share/mime"
     42}
     43
    3944post-pkg {
    4045        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
    4146        file copy -force -- ${workpath}/${worksrcdir}/scripts/macosx/License.html ${resources}
     
    7580        ui_msg "* directory (usually ~/logtalk), which you must create by running the"
    7681        ui_msg "* command cplgtdirs. See the file \$LOGTALKHOME/CUSTOMIZE.txt for details"
    7782        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."
    7889        ui_msg "****************************************************************************"
    7990}