Changeset 98073


Ignore:
Timestamp:
Sep 24, 2012, 7:15:19 AM (12 years ago)
Author:
ryandesign@…
Message:

HandBrake: remove hardcoded list of distfiles in post-extract block to make updating the port easier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/HandBrake/Portfile

    r98071 r98073  
    139139post-extract {
    140140    file mkdir ${worksrcpath}/download
    141     file copy \
    142         ${distpath}/a52dec-0.7.4.tar.gz \
    143         ${distpath}/faac-1.28.tar.gz \
    144         ${distpath}/faad2-2.7.tar.gz \
    145         ${distpath}/ffmpeg-v0.7-1696-gcae4f4b.tar.bz2 \
    146         ${distpath}/fribidi-0.19.2.tar.gz \
    147         ${distpath}/fontconfig-2.8.0.tar.gz \
    148         ${distpath}/freetype-2.4.7.tar.bz2 \
    149         ${distpath}/lame-3.98.tar.gz \
    150         ${distpath}/libass-0.10.0-1.tar.gz \
    151         ${distpath}/libbluray-0.0.1-pre-213-ga869da8.tar.gz \
    152         ${distpath}/libdca-r81-strapped.tar.gz \
    153         ${distpath}/libdvdnav-svn1168.tar.gz \
    154         ${distpath}/libdvdread-svn1168.tar.gz \
    155         ${distpath}/libmkv-0.6.5-0-g82075ae.tar.gz \
    156         ${distpath}/libogg-1.3.0.tar.gz \
    157         ${distpath}/libsamplerate-0.1.4.tar.gz \
    158         ${distpath}/libtheora-1.1.0.tar.bz2 \
    159         ${distpath}/libvorbis-aotuv_b6.03.tar.bz2 \
    160         ${distpath}/libxml2-2.7.7.tar.gz \
    161         ${distpath}/mp4v2-trunk-r355.tar.bz2 \
    162         ${distpath}/mpeg2dec-0.5.1.tar.gz \
    163         ${distpath}/x264-r2146-bcd41db.tar.gz \
    164         ${worksrcpath}/download
     141    foreach distfile ${distfiles} {
     142        if {[regexp {^(.+):([^:]+)} ${distfile} -> distfilename distfiletag]} {
     143            if {${distfiletag} == "contrib"} {
     144               copy ${distpath}/${distfilename} ${worksrcpath}/download
     145            }
     146        }
     147    }
    165148
    166149    # make mp4v2 build with clang, see http://code.google.com/p/mp4v2/issues/detail?id=80
Note: See TracChangeset for help on using the changeset viewer.