[98073] trunk/dports/aqua/HandBrake/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Sep 24 00:15:19 PDT 2012


Revision: 98073
          http://trac.macports.org//changeset/98073
Author:   ryandesign at macports.org
Date:     2012-09-24 00:15:19 -0700 (Mon, 24 Sep 2012)
Log Message:
-----------
HandBrake: remove hardcoded list of distfiles in post-extract block to make updating the port easier

Modified Paths:
--------------
    trunk/dports/aqua/HandBrake/Portfile

Modified: trunk/dports/aqua/HandBrake/Portfile
===================================================================
--- trunk/dports/aqua/HandBrake/Portfile	2012-09-24 06:59:39 UTC (rev 98072)
+++ trunk/dports/aqua/HandBrake/Portfile	2012-09-24 07:15:19 UTC (rev 98073)
@@ -138,30 +138,13 @@
 
 post-extract {
     file mkdir ${worksrcpath}/download
-    file copy \
-        ${distpath}/a52dec-0.7.4.tar.gz \
-        ${distpath}/faac-1.28.tar.gz \
-        ${distpath}/faad2-2.7.tar.gz \
-        ${distpath}/ffmpeg-v0.7-1696-gcae4f4b.tar.bz2 \
-        ${distpath}/fribidi-0.19.2.tar.gz \
-        ${distpath}/fontconfig-2.8.0.tar.gz \
-        ${distpath}/freetype-2.4.7.tar.bz2 \
-        ${distpath}/lame-3.98.tar.gz \
-        ${distpath}/libass-0.10.0-1.tar.gz \
-        ${distpath}/libbluray-0.0.1-pre-213-ga869da8.tar.gz \
-        ${distpath}/libdca-r81-strapped.tar.gz \
-        ${distpath}/libdvdnav-svn1168.tar.gz \
-        ${distpath}/libdvdread-svn1168.tar.gz \
-        ${distpath}/libmkv-0.6.5-0-g82075ae.tar.gz \
-        ${distpath}/libogg-1.3.0.tar.gz \
-        ${distpath}/libsamplerate-0.1.4.tar.gz \
-        ${distpath}/libtheora-1.1.0.tar.bz2 \
-        ${distpath}/libvorbis-aotuv_b6.03.tar.bz2 \
-        ${distpath}/libxml2-2.7.7.tar.gz \
-        ${distpath}/mp4v2-trunk-r355.tar.bz2 \
-        ${distpath}/mpeg2dec-0.5.1.tar.gz \
-        ${distpath}/x264-r2146-bcd41db.tar.gz \
-        ${worksrcpath}/download
+    foreach distfile ${distfiles} {
+        if {[regexp {^(.+):([^:]+)} ${distfile} -> distfilename distfiletag]} {
+            if {${distfiletag} == "contrib"} {
+               copy ${distpath}/${distfilename} ${worksrcpath}/download
+            }
+        }
+    }
 
     # make mp4v2 build with clang, see http://code.google.com/p/mp4v2/issues/detail?id=80
     file copy ${filespath}/mp4v2-r355-clang-compatibility-src-bmff-typebmff.cpp.patch \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120924/3befa6c4/attachment.html>


More information about the macports-changes mailing list