Skip to content
Permalink
Browse files

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:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@17145 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Gregory Wright
Gregory Wright committed Mar 24, 2006
1 parent 56aad27 commit a293b4a3273d65a27c262417153f344812171065
Showing with 8 additions and 12 deletions.
  1. +8 −12 lang/sbcl/Portfile
@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.26 2006/03/05 22:19:01 gwright Exp $
# $Id: Portfile,v 1.27 2006/03/24 00:33:33 gwright Exp $

PortSystem 1.0
name sbcl
version 0.9.10
revision 1
set bootversion 0.9.0
categories lang
maintainers gwright@opendarwin.org waqar@opendarwin.org
@@ -31,6 +32,12 @@ checksums ${name}-${version}-source${extract.suffix} \
${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \
md5 0b1e8c53d21ad5cf661d033fc437440b

post-patch { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
${worksrcpath}/src/runtime/runtime.c
reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
${worksrcpath}/doc/sbcl.1
}

use_configure no

set host_lisp "\"${workpath}/${name}-${bootversion}-powerpc-darwin/src/runtime/sbcl --core ${workpath}/${name}-${bootversion}-powerpc-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" "
@@ -53,14 +60,3 @@ destroot { cd ${worksrcpath}
system "INSTALL_ROOT=${destroot}/${prefix} sh install.sh"
}

post-destroot { cd ${destroot}${prefix}/bin
file rename sbcl sbcl.bin

set script [open "${destroot}${prefix}/bin/sbcl" w 755]
puts $script "#!/bin/sh"
puts $script "${prefix}/bin/sbcl.bin --core ${prefix}/lib/${name}/${name}.core \"$@\""
puts $script ""
close $script
system "chmod 755 ${destroot}${prefix}/bin/sbcl"
}

0 comments on commit a293b4a

Please sign in to comment.
You can’t perform that action at this time.