Ticket #27071: nonpareil-Portfile.diff

File nonpareil-Portfile.diff, 1.6 KB (added by jmrosenstock@…, 14 years ago)
  • /opt/local/var/macports/sources/rsync.macports.org/release/ports/emulators/nonpareil/Portfile

    old new  
    5858                                        port:python25                                                   \
    5959                                        port:scons
    6060
    61 patchfiles                      patch-src-util.diff
     61patchfiles                      osx.patch                                                               \
     62                                        patch-src-util.diff
    6263
    6364worksrcdir                      ${name}-${version}
    6465use_parallel_build      yes
    6566use_configure           no
    66 build.cmd                       "scons-local/scons.py"
     67build.cmd                       "scons"
    6768build.args                      prefix=${prefix}
    6869build.target
    6970
    70 destroot.cmd            "scons-local/scons.py"
     71destroot.cmd            "scons"
    7172destroot.args           prefix=${prefix} destdir=${destroot}
    7273
    7374
    74 post-extract {
    75         system "
    76                 pushd ${workpath}/${name}-${version}/scons-local;
    77                         tar -xzf scons-local-0.96.90.tar.gz
    78                 popd
    79         "
     75post-patch {
     76        reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/src/SConscript
    8077}
    8178
    8279platform macosx {
     
    151148                    rmd160  ec3bea3f6eda7d29a480a880a7875d4e9fc6c8cf
    152149       
    153150        patchfiles-delete               patch-src-util.diff
    154         build.cmd                               "scons"
    155         destroot.cmd                    "scons"
    156151
    157152        post-extract {
    158153                system "
    159154                        bzip2 --verbose --decompress --stdout ${distpath}/nonpareil-wholepatch-20090714.diff.bz2 >${workpath}/nonpareil-wholepatch-20090714.diff;
    160155                "
    161156        }
    162         pre-patch {
    163                 file copy ${filespath}/osx.patch ${filespath}/osx.patch.diff
    164                 reinplace s|@PREFIX@|${prefix}|g ${filespath}/osx.patch.diff
    165         }
    166157        post-patch {
    167158                system "
    168159                        pushd ${workpath};
     
    172163                                popd;
    173164                        popd;
    174165                "
    175                 file delete ${filespath}/osx.patch.diff
    176166        }
    177167}
    178168