Changeset 4445


Ignore:
Timestamp:
Jan 4, 2004, 12:10:20 AM (17 years ago)
Author:
gwright
Message:

Updated to version 2.15.5. Thanks Paulo!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/logtalk/Portfile

    r3509 r4445  
    1 # $Id: Portfile,v 1.1 2003/09/23 13:51:52 gwright Exp $
     1# $Id: Portfile,v 1.2 2004/01/04 00:10:20 gwright Exp $
    22
    33PortSystem      1.0
    44name            logtalk
    5 version         2.15.4
     5version         2.15.5
    66
    77categories      lang
     
    1919               
    2020
    21 homepage                http://www.logtalk.org/
     21homepage        http://www.logtalk.org/
    2222master_sites    http://www.logtalk.org/files/
    2323
    24 checksums               md5 762f606b7d29480d720e37da9ed40a66
     24checksums       md5 dd4d3819e139f52b18f2062eb4dec6ee
    2525
    26 distname                lgt2154
     26distname        lgt2155
    2727
    28 configure               {}
     28configure       {}
    2929
    30 build                   {}
     30build           {}
    3131
    32 destroot                {
     32destroot        {
    3333        system "mkdir ${destroot}${prefix}/share/${distname}"
    3434        cd ${destroot}${prefix}/share/${distname}
     
    4141        system "cp -R ${workpath}/${worksrcdir}/manuals ."
    4242        system "cp -R ${workpath}/${worksrcdir}/examples ."
     43        system "chmod -R g+w examples"
    4344
    4445        system "mkdir ${destroot}${prefix}/lib/${distname}"
     
    5051        system "cp -R ${workpath}/${worksrcdir}/wenv ."
    5152        system "cp -R ${workpath}/${worksrcdir}/xml ."
     53        system "chmod -R g+w library"
    5254
    5355        if {[variant_isset gprolog]} {
    54                 system "mkdir ${destroot}${prefix}/lib/${distname}/bin"
     56                system "mkdir -p ${destroot}${prefix}/lib/${distname}/bin"
    5557                cd ${destroot}${prefix}/lib/${distname}/bin
    5658                system "cp ${workpath}/${worksrcdir}/gplgt ."
     
    5860
    5961        if {[variant_isset swi-prolog]} {
    60                 system "mkdir ${destroot}${prefix}/lib/${distname}/bin"
     62                system "mkdir -p ${destroot}${prefix}/lib/${distname}/bin"
    6163                cd ${destroot}${prefix}/lib/${distname}/bin
    62                 system "cp ${workpath}/${worksrcdir}/logtalk.rc ."
     64                system "cp ${workpath}/${worksrcdir}/logtalkswi.rc ."
    6365                system "cp ${workpath}/${worksrcdir}/swilgt ."
     66                system "mv ${workpath}/${worksrcdir}/logtalkswi.pl ."
     67        }
     68
     69        if {[variant_isset yap]} {
     70                system "mkdir -p ${destroot}${prefix}/lib/${distname}/bin"
     71                cd ${destroot}${prefix}/lib/${distname}/bin
     72                system "cp ${workpath}/${worksrcdir}/logtalkyap.rc ."
     73                system "cp ${workpath}/${worksrcdir}/yaplgt ."
    6474        }
    6575}
     
    8191                system "ln -s ../lib/${distname}/bin/swilgt swilgt"
    8292        }
     93
     94        if {[variant_isset yap]} {
     95                cd ../bin
     96                system "ln -s ../lib/${distname}/bin/yaplgt yaplgt"
     97        }
    8398}
    8499
    85100variant gprolog {
    86         depends_lib bin:gplc:gprolog
     101        depends_lib-append bin:gplc:gprolog
    87102       
    88         build {
     103        post-build {
    89104                cd ${workpath}/${worksrcdir}
    90105
    91106                system "cp configs/gnu.config configs/gnu.pl"
    92                 system "echo ':- built_in.' > compiler/gp"
    93                 system "cat compiler/gp compiler/logtalk.pl > compiler/logtalkgp.pl"
     107                system "echo ':- built_in.' > compiler/logtalkgp.pl"
     108                system "cat compiler/logtalk.pl >> compiler/logtalkgp.pl"
    94109                system "gplc -o gplgt configs/gnu.pl compiler/logtalkgp.pl"
    95110                system "rm configs/gnu.pl"
    96                 system "rm compiler/gp"
     111                system "rm compiler/logtalkgp.pl"
    97112        }
    98113}
    99114
    100115variant swi-prolog      {
    101         depends_lib bin:swipl:swi-prolog
     116        depends_lib-append bin:swipl:swi-prolog
    102117       
    103         build {
     118        post-build {
    104119                cd ${workpath}/${worksrcdir}
    105120
    106                 system "echo ':- consult(${prefix}/lib/logtalk/configs/swi.config).' > logtalk.rc"
    107                 system "echo ':- consult(${prefix}/lib/logtalk/compiler/logtalk.pl).' >> logtalk.rc"
    108                 reinplace "s|\(|('|g" logtalk.rc
    109                 reinplace "s|\)|')|g" logtalk.rc
     121                system "echo ':- system_module.' > logtalkswi.pl"
     122                system "cat compiler/logtalk.pl >> logtalkswi.pl"
     123                system "echo ':- consult(${prefix}/lib/logtalk/configs/swi.config).' > logtalkswi.rc"
     124                system "echo ':- consult(${prefix}/lib/logtalk/configs/swihook.pl).' >> logtalkswi.rc"
     125                system "echo ':- consult(${prefix}/lib/logtalk/bin/logtalkswi.pl).' >> logtalkswi.rc"
     126                reinplace "s|\(|('|g" logtalkswi.rc
     127                reinplace "s|\)|')|g" logtalkswi.rc
    110128
    111129                system "echo '#/bin/sh' > swilgt"
    112                 system "echo 'swipl -f ${prefix}/lib/logtalk/bin/logtalk.rc' >> swilgt"
     130                system "echo 'swipl -f ${prefix}/lib/logtalk/bin/logtalkswi.rc' >> swilgt"
    113131                system "chmod a+x swilgt"
    114132        }
    115133}
     134
     135variant yap     {
     136        depends_lib-append bin:yap:yap
     137       
     138        post-build {
     139                cd ${workpath}/${worksrcdir}
     140
     141                system "echo ':- reconsult(${prefix}/lib/logtalk/configs/yap430.config).' > logtalkyap.rc"
     142                system "echo ':- reconsult(${prefix}/lib/logtalk/compiler/logtalk.pl).' >> logtalkyap.rc"
     143                reinplace "s|\(|('|g" logtalkyap.rc
     144                reinplace "s|\)|')|g" logtalkyap.rc
     145
     146                system "echo '#/bin/sh' > yaplgt"
     147                system "echo 'yap -l ${prefix}/lib/logtalk/bin/logtalkyap.rc' >> yaplgt"
     148                system "chmod a+x yaplgt"
     149        }
     150}
Note: See TracChangeset for help on using the changeset viewer.