New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19738: mzscheme.diff

File mzscheme.diff, 7.0 KB (added by thomas@…, 6 years ago)

Updates mzscheme to version 4.1.5

  • files/patch-mzscheme-Makefile.in.diff

     
     1--- mzscheme/Makefile.in.orig   2009-03-16 02:22:47.000000000 +0100 
     2+++ mzscheme/Makefile.in        2009-05-25 09:34:19.000000000 +0200 
     3@@ -320,8 +320,8 @@ 
     4        $(MAKE) unix-install-cgc 
     5        mkdir -p "$(MZFWDIR)/Versions/$(FWVERSION)" 
     6        cp $(MZFW) $(MZFWDIR)/Versions/$(FWVERSION)/ 
     7-       /usr/bin/install_name_tool -change "@executable_path/PLT_MzScheme.framework/Versions/$(FWVERSION)/PLT_MzScheme" "@FRAMEWORK_PREFIX@PLT_MzScheme.framework/Versions/$(FWVERSION)/PLT_MzScheme" "$(bindir)/mzscheme@CGC_INSTALLED@" 
     8-       /usr/bin/strip -S "$(bindir)/mzscheme@CGC_INSTALLED@" 
     9+       /usr/bin/install_name_tool -change "@executable_path/PLT_MzScheme.framework/Versions/$(FWVERSION)/PLT_MzScheme" "@FRAMEWORK_PREFIX@PLT_MzScheme.framework/Versions/$(FWVERSION)/PLT_MzScheme" "$(DESTDIR)$(bindir)/mzscheme@CGC_INSTALLED@" 
     10+       /usr/bin/strip -S "$(DESTDIR)/$(bindir)/mzscheme@CGC_INSTALLED@" 
     11  
     12 osx-install-cgc-final: 
     13        $(MAKE) unix-install-cgc-final 
     14@@ -331,8 +331,8 @@ 
     15        $(MAKE) unix-install-3m 
     16        mkdir -p "$(MZFWDIR)/Versions/$(FWVERSION)_3m" 
     17        cp $(MZFWMMM) $(MZFWDIR)/Versions/$(FWVERSION)_3m/ 
     18-       /usr/bin/install_name_tool -change "@executable_path/PLT_MzScheme.framework/Versions/$(FWVERSION)_3m/PLT_MzScheme" "@FRAMEWORK_PREFIX@PLT_MzScheme.framework/Versions/$(FWVERSION)_3m/PLT_MzScheme" "$(bindir)/mzscheme@MMM_INSTALLED@" 
     19-       /usr/bin/strip -S "$(bindir)/mzscheme@MMM_INSTALLED@" 
     20+       /usr/bin/install_name_tool -change "@executable_path/PLT_MzScheme.framework/Versions/$(FWVERSION)_3m/PLT_MzScheme" "@FRAMEWORK_PREFIX@PLT_MzScheme.framework/Versions/$(FWVERSION)_3m/PLT_MzScheme" "$(DESTDIR)/$(bindir)/mzscheme@MMM_INSTALLED@" 
     21+       /usr/bin/strip -S "$(DESTDIR)/$(bindir)/mzscheme@MMM_INSTALLED@" 
     22  
     23 osx-install-3m-final: 
     24        $(MAKE) unix-install-3m-final 
  • files/patch-collects-setup-unixstyle-install.ss.diff

     
     1--- ../collects/setup/unixstyle-install.ss.orig 2009-05-21 20:37:16.000000000 +0200 
     2+++ ../collects/setup/unixstyle-install.ss      2009-05-21 20:36:39.000000000 +0200 
     3@@ -179,7 +179,7 @@ 
     4                   (regexp-replace* #rx"[\"`'$\\]" (dir: 'bin) "\\\\&")) 
     5           (write-bytes buf (current-output-port) (cdadr m)))))) 
     6   (let ([magic (with-input-from-file file (lambda () (read-bytes 10)))]) 
     7-    (cond [(regexp-match #rx#"^\177ELF" magic) 
     8+    (cond [(or (regexp-match #rx#"^\177ELF" magic) (regexp-match #rx#"^\316\372\355\376" magic)) 
     9            (let ([temp (format "~a-temp-for-install" 
     10                                (regexp-replace* #rx"/" file "_"))]) 
     11              (with-handlers ([exn? (lambda (e) (delete-file temp) (raise e))]) 
  • files/patch-configure.diff

     
     1--- configure.orig      2009-05-21 18:42:53.000000000 +0200 
     2+++ configure   2009-05-21 18:45:28.000000000 +0200 
     3@@ -2069,7 +2069,7 @@ 
     4 else 
     5   if test "$OS" = "Darwin" ; then 
     6     enable_quartz=yes 
     7-    enable_origtree=yes 
     8+    enable_origtree=no 
     9   fi 
     10 fi 
     11  
  • Portfile

     
    33PortSystem 1.0 
    44 
    55name            mzscheme 
    6 version         372 
     6version         4.1.5 
     7epoch           1 
    78categories      lang scheme 
    89platforms       darwin 
    910maintainers     nomaintainer 
     
    1415set subdir      ${version}/mz/ 
    1516master_sites \ 
    1617  http://download.plt-scheme.org/bundles/${subdir} \ 
    17   http://plt.cs.uchicago.edu/bundles/${subdir} \ 
     18  http://www.eecs.northwestern.edu/plt-scheme/${subdir} \ 
    1819  http://www.cs.utah.edu/plt/download/${subdir} \ 
    19   ftp://archive.informatik.uni-tuebingen.de/unix/language/plt/${subdir} \ 
     20  http://mirror.informatik.uni-tuebingen.de/mirror/plt/${subdir} \ 
    2021  ftp://infogroep.be/pub/plt/bundles/${subdir} \ 
    21   http://gd.tuwien.ac.at/languages/scheme/plt/${subdir} 
     22  http://gd.tuwien.ac.at/languages/scheme/plt/${subdir} \ 
     23  http://russell.cs.bilgi.edu.tr/plt-bundles/${subdir} 
    2224distfiles       mz-${version}-src-unix.tgz 
    23 checksums           md5     c755f4ba7191636c5eb587745e4c6a67 \ 
    24                     sha1    1601d3acc8d785656c9bbbefef6be7ea325b9b10 \ 
    25                     rmd160  b3389d390668dec5cc5b598307e0e1080f815e2f 
     25checksums           md5     cc8545ac0346776c089da63b9ef1d188 \ 
     26                    sha1    54438d051d199bb713453362fa3bc75edef277e4 \ 
     27                    rmd160  47362cd4fc0be7b119f60390e51e54865c5c92b8 
    2628depends_lib     port:jpeg \ 
    2729                port:libpng \ 
    2830                port:libiconv 
     
    3032worksrcdir      mz-${version}/src 
    3133set frameworks  ${prefix}/Library/Frameworks 
    3234 
     35patchfiles patch-configure.diff patch-collects-setup-unixstyle-install.ss.diff patch-mzscheme-Makefile.in.diff 
     36 
    3337post-patch { 
    3438  reinplace "s|collects|share/mzscheme|g" \ 
    3539    ${worksrcpath}/mzscheme/src/startup.ss \ 
     
    3842    ${worksrcpath}/mzscheme/src/file.c 
    3943  reinplace "s|@FRAMEWORK_INSTALL_DIR@|${destroot}${frameworks}|" \ 
    4044    ${worksrcpath}/mzscheme/Makefile.in 
     45  reinplace "s|-I\$(srcdir)|-iquote \$(srcdir)|g" \ 
     46    ${worksrcpath}/foreign/gcc/libffi/include/Makefile.in \ 
     47    ${worksrcpath}/foreign/gcc/libffi/Makefile.in \ 
     48    ${worksrcpath}/foreign/Makefile.in \ 
     49    ${worksrcpath}/Makefile.in \ 
     50    ${worksrcpath}/mzscheme/dynsrc/Makefile.in \ 
     51    ${worksrcpath}/mzscheme/gc/doc/Makefile.in \ 
     52    ${worksrcpath}/mzscheme/gc/include/Makefile.in \ 
     53    ${worksrcpath}/mzscheme/gc/Makefile.in \ 
     54    ${worksrcpath}/mzscheme/gc2/Makefile.in \ 
     55    ${worksrcpath}/mzscheme/Makefile.in \ 
     56    ${worksrcpath}/mzscheme/sgc/Makefile.in \ 
     57    ${worksrcpath}/mzscheme/src/Makefile.in     
    4158} 
    4259 
    4360configure.args  --enable-libfw 
    4461 
    45 destroot.destdir    prefix=${destroot}${prefix} 
    4662post-destroot { 
    47   file delete -force ${destroot}${prefix}/install \ 
    48     ${destroot}${prefix}/share/man 
    49   file rename ${destroot}${prefix}/collects \ 
    50     ${destroot}${prefix}/share/mzscheme 
    51   xinstall -m 755 -d ${destroot}${prefix}/share/doc/ \ 
    52     ${destroot}${prefix}/share/mzscheme/${version}/ 
    53   file rename ${destroot}${prefix}/man \ 
    54     ${destroot}${prefix}/share/man 
    55   file rename ${destroot}${prefix}/doc \ 
    56     ${destroot}${prefix}/share/doc 
    57   file delete -force ${destroot}${prefix}/lib/buildinfo 
    58  
    5963  ln -s ${frameworks}/PLT_MzScheme.framework/Versions/${version}/PLT_MzScheme \ 
    6064    ${destroot}${prefix}/lib/libmzscheme.${version}.dylib 
    6165   
    6266  system "/usr/bin/install_name_tool -change PLT_MzScheme.framework/Versions/${version}_3m/PLT_MzScheme ${frameworks}/PLT_MzScheme.framework/Versions/${version}_3m/PLT_MzScheme ${destroot}${prefix}/bin/mzscheme" 
    63  
    64   ln -s .. ${destroot}${prefix}/share/mzscheme/${version}/collects 
    6567}