Changeset 17145 for trunk/dports


Ignore:
Timestamp:
Mar 24, 2006, 12:33:33 AM (18 years ago)
Author:
gwright
Message:

Hardcode ${prefix} in to the binary instead of using a wrapper script
to find the core image.
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

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

    r16788 r17145  
    1 # $Id: Portfile,v 1.26 2006/03/05 22:19:01 gwright Exp $
     1# $Id: Portfile,v 1.27 2006/03/24 00:33:33 gwright Exp $
    22
    33PortSystem 1.0
    44name            sbcl
    55version         0.9.10
     6revision        1
    67set bootversion 0.9.0
    78categories      lang
     
    3233                        md5 0b1e8c53d21ad5cf661d033fc437440b
    3334
     35post-patch      { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
     36                            ${worksrcpath}/src/runtime/runtime.c
     37                  reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
     38                            ${worksrcpath}/doc/sbcl.1
     39                }
     40
    3441use_configure   no
    3542
     
    5461                }
    5562
    56 post-destroot   { cd ${destroot}${prefix}/bin
    57                   file rename sbcl sbcl.bin
    58 
    59                   set script [open "${destroot}${prefix}/bin/sbcl" w 755]
    60                   puts $script "#!/bin/sh"
    61                   puts $script "${prefix}/bin/sbcl.bin --core ${prefix}/lib/${name}/${name}.core \"$@\""
    62                   puts $script ""
    63                   close $script
    64                   system "chmod 755 ${destroot}${prefix}/bin/sbcl"
    65                 }
    66 
Note: See TracChangeset for help on using the changeset viewer.