Ticket #41338: Portfile-crafty.diff

File Portfile-crafty.diff, 817 bytes (added by larryv (Lawrence Velázquez), 11 years ago)

let base extract instead of using custom extract script

  • trunk/dports/games/crafty/Portfile

    diff --git a/trunk/dports/games/crafty/Portfile b/trunk/dports/games/crafty/Portfile
    a b  
    6060        rmd160  ccfedc1511a0ae523e16f94d9818abb29b1ea188 \
    6161        sha256  7c6c217431abb178ed53a6f9f949a2412a9bf30be856077b30dfbc13d426ca0e
    6262
    63 depends_build       bin:unzip:unzip
    64 
    65 extract {
    66     file mkdir work
    67 
    68     # extract the src zip
    69     system "cd ${workpath} && unzip ${distpath}/${dist_srczip}"
     63use_zip         yes
     64extract.only    ${dist_srczip}
     65post-extract {
    7066    reinplace "s|IPHONE|__APPLE__|g" ${worksrcpath}/chess.h
    7167    reinplace -E "s|BOOKDIR \+\".\"|BOOKDIR \"${prefix}/share/crafty\"|g" ${worksrcpath}/chess.h
    7268}