Ticket #19738: mzscheme.diff
File mzscheme.diff, 7.0 KB (added by thomas@…, 15 years ago) |
---|
-
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
3 3 PortSystem 1.0 4 4 5 5 name mzscheme 6 version 372 6 version 4.1.5 7 epoch 1 7 8 categories lang scheme 8 9 platforms darwin 9 10 maintainers nomaintainer … … 14 15 set subdir ${version}/mz/ 15 16 master_sites \ 16 17 http://download.plt-scheme.org/bundles/${subdir} \ 17 http:// plt.cs.uchicago.edu/bundles/${subdir} \18 http://www.eecs.northwestern.edu/plt-scheme/${subdir} \ 18 19 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} \ 20 21 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} 22 24 distfiles mz-${version}-src-unix.tgz 23 checksums md5 c 755f4ba7191636c5eb587745e4c6a67\24 sha1 1601d3acc8d785656c9bbbefef6be7ea325b9b10\25 rmd160 b3389d390668dec5cc5b598307e0e1080f815e2f25 checksums md5 cc8545ac0346776c089da63b9ef1d188 \ 26 sha1 54438d051d199bb713453362fa3bc75edef277e4 \ 27 rmd160 47362cd4fc0be7b119f60390e51e54865c5c92b8 26 28 depends_lib port:jpeg \ 27 29 port:libpng \ 28 30 port:libiconv … … 30 32 worksrcdir mz-${version}/src 31 33 set frameworks ${prefix}/Library/Frameworks 32 34 35 patchfiles patch-configure.diff patch-collects-setup-unixstyle-install.ss.diff patch-mzscheme-Makefile.in.diff 36 33 37 post-patch { 34 38 reinplace "s|collects|share/mzscheme|g" \ 35 39 ${worksrcpath}/mzscheme/src/startup.ss \ … … 38 42 ${worksrcpath}/mzscheme/src/file.c 39 43 reinplace "s|@FRAMEWORK_INSTALL_DIR@|${destroot}${frameworks}|" \ 40 44 ${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 41 58 } 42 59 43 60 configure.args --enable-libfw 44 61 45 destroot.destdir prefix=${destroot}${prefix}46 62 post-destroot { 47 file delete -force ${destroot}${prefix}/install \48 ${destroot}${prefix}/share/man49 file rename ${destroot}${prefix}/collects \50 ${destroot}${prefix}/share/mzscheme51 xinstall -m 755 -d ${destroot}${prefix}/share/doc/ \52 ${destroot}${prefix}/share/mzscheme/${version}/53 file rename ${destroot}${prefix}/man \54 ${destroot}${prefix}/share/man55 file rename ${destroot}${prefix}/doc \56 ${destroot}${prefix}/share/doc57 file delete -force ${destroot}${prefix}/lib/buildinfo58 59 63 ln -s ${frameworks}/PLT_MzScheme.framework/Versions/${version}/PLT_MzScheme \ 60 64 ${destroot}${prefix}/lib/libmzscheme.${version}.dylib 61 65 62 66 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}/collects65 67 }