Ticket #13849: Portfile-squeak.diff
File Portfile-squeak.diff, 3.9 KB (added by Damien.Pollet@…, 17 years ago) |
---|
-
Portfile
old new 42 42 default_variants +quartz 43 43 44 44 extract.only ${squeak_vm_src}.gz 45 post-extract { 46 system "cd ${workpath} && mv Squeak-${squeak_vm_version} Squeak-${squeak_img_version}" 47 file mkdir ${worksrcpath}/build 45 post-extract { 46 system "cd ${workpath} && mv Squeak-${squeak_vm_version} Squeak-${squeak_img_version}" 47 file mkdir ${worksrcpath}/build 48 # should do that but requires to rerun autoconf, I prefer to just patch inisqueak instead 49 # reinplace "s|imgdir=`eval echo \${libdir}/squeak`|imgdir=`eval echo \${datadir}`|" ${worksrcpath}/platforms/unix/config/configure.ac 50 # reinplace "s|plgdir=`eval echo \${imgdir}/\${VM_VERSION}`|plgdir=`eval echo \${libdir}/squeak/\${VM_VERSION}|" ${worksrcpath}/platforms/unix/config/configure.ac 48 51 } 49 52 50 53 configure.cmd ../platforms/unix/config/configure 51 54 configure.dir ${worksrcpath}/build 52 configure.args --libdir=${prefix}/share --without-quartz --without-x 55 configure.args --libdir=${prefix}/lib \ 56 --mandir=${prefix}/share/man \ 57 --without-quartz --without-x 53 58 54 59 build.dir ${worksrcpath}/build 55 60 build.type gnu … … 60 65 set unzip "[binaryInPath "unzip"] -o" 61 66 set gzip "[binaryInPath "gzip"] -f" 62 67 63 # Have inisqueak look for a specific version image 64 reinplace "s|IMAGE=squeak|IMAGE=squeak.${squeak_img_version}-${squeak_patch_no}|g" ${worksrcpath}/build/inisqueak 65 reinplace "s|CHANGES=squeak|CHANGES=squeak.${squeak_img_version}-${squeak_patch_no}|g" ${worksrcpath}/build/inisqueak 68 set datadir ${prefix}/share/squeak 69 70 # Have inisqueak look at the right place 71 reinplace "s|MAJOR=3|MAJOR=${squeak_short_vrsn}|" ${worksrcpath}/build/inisqueak 72 reinplace "s|imgdir=${prefix}/lib/squeak|imgdir=${datadir}|" ${worksrcpath}/build/inisqueak 66 73 67 # Install i t74 # Install inisqueak 68 75 xinstall -m 755 ${worksrcpath}/build/inisqueak \ 69 76 ${destroot}${prefix}/bin/ 70 77 71 # Now extract the image 72 file copy ${distpath}/${squeak_img_src} ${worksrcpath} 73 file copy ${distpath}/${squeak_vm_src}.gz ${worksrcpath} 74 system "cd ${worksrcpath} && ${unzip} ${squeak_img_src}" 75 system "cd ${worksrcpath} && ${gzip} -d ${squeak_vm_src}.gz" 76 77 # And install the image 78 xinstall -d ${destroot}${prefix}/share/squeak 79 xinstall -m 644 ${worksrcpath}/${squeak_img_name}/${squeak_img} \ 80 ${destroot}${prefix}/share/squeak/ 81 xinstall -m 644 ${worksrcpath}/${squeak_img_name}/${squeak_img_changes} \ 82 ${destroot}${prefix}/share/squeak/ 78 # fix bad doc install path (should use --docdir or --datarootdir during configure) 79 xinstall -d ${destroot}${datadir} 80 move ${destroot}${prefix}/doc ${destroot}${prefix}/share 81 82 # Recompress and install the default image 83 system "cd ${worksrcpath} && ${unzip} ${distpath}/${squeak_img_src}" 84 system "cd ${worksrcpath} && ${gzip} ${squeak_img_name}/${squeak_img}" 85 system "cd ${worksrcpath} && ${gzip} ${squeak_img_name}/${squeak_img_changes}" 86 xinstall -d ${destroot}${datadir} 87 xinstall -m 644 ${worksrcpath}/${squeak_img_name}/${squeak_img}.gz \ 88 ${destroot}${datadir} 89 xinstall -m 644 ${worksrcpath}/${squeak_img_name}/${squeak_img_changes}.gz \ 90 ${destroot}${datadir} 83 91 xinstall -m 644 ${worksrcpath}/${squeak_img_name}/WelcomeSqueak${squeak_short_vrsn} \ 84 ${destroot}${ prefix}/share/squeak/92 ${destroot}${datadir} 85 93 xinstall -m 644 ${worksrcpath}/${squeak_img_name}/SqueakV${squeak_short_vrsn}.sources \ 86 ${destroot}${prefix}/share/squeak/ 87 88 # And compress the image 89 system "cd ${destroot}${prefix}/share/squeak && ${gzip} ${squeak_img}" 90 system "cd ${destroot}${prefix}/share/squeak && ${gzip} ${squeak_img_changes}" 94 ${destroot}${datadir} 91 95 96 # Link compressed image and changes 97 system "cd ${destroot}${datadir} && ln -s ${squeak_img}.gz squeak.image.gz" 98 system "cd ${destroot}${datadir} && ln -s ${squeak_img_changes}.gz squeak.changes.gz" 92 99 } 93 100 94 101 variant quartz {