Ticket #28585: Portfile-spin.diff

File Portfile-spin.diff, 1.5 KB (added by alex_a_bordeaux@…, 13 years ago)
  • Portfile

    old new  
    44PortSystem      1.0
    55
    66name            spin
    7 version         5.2.5
     7version         6.0.1
    88set version_no_dot [join [split ${version} .] ""]
    99revision        1
    1010distname        ${name}${version_no_dot}
     
    2020
    2121homepage        http://spinroot.com
    2222master_sites    http://spinroot.com/spin/Src/
    23 checksums           md5     03345f9713e7b4f82d2d8ec319802b9c \
    24                     sha1    274649628c0c8ae3414b863c27a1b8d98a8e9921 \
    25                     rmd160  8d01f8dd0da8c8013fbb8c6d6e9a8c40b8c5f33f
    26 depends_lib     port:tk port:tcl
    27 patchfiles      patch-xspin.diff
     23checksums           md5     7ece51bc605fe4a3638e427c28f44b57 \
     24                    sha1    ba17b036cf95c4b4bcacbe3ba1c91312c802ff38 \
     25                    rmd160  1d9bd246362f886261655b0093227b421d150af6
    2826worksrcdir      Spin/Src${version}
    2927use_configure   no
    3028use_parallel_build no
    3129
    32 set xspin_dir   Xspin5.2
    33 set xspin_name  xspin525.tcl
    34 
    35 pre-patch   {
    36     file rename ${worksrcpath}/../${xspin_dir}/${xspin_name} ${worksrcpath}/../${xspin_dir}/xspin
    37 }
    38 
    39 post-patch  {
    40     reinplace "s,@prefix@,${prefix},g" ${worksrcpath}/../${xspin_dir}/xspin
    41 }
    4230
    4331build.target    ""
    4432build.args      CC="${configure.cc} -DNXT" \
     
    4937        ${destroot}${prefix}/share/man/man1
    5038    xinstall -m 0755 ${worksrcpath}/${name} \
    5139        ${destroot}${prefix}/bin
    52     xinstall -m 0755 ${worksrcpath}/../${xspin_dir}/xspin \
    53         ${destroot}${prefix}/bin
    5440}