[132821] trunk/dports/multimedia/HandBrake/Portfile
larryv at macports.org
larryv at macports.org
Wed Feb 11 01:03:19 PST 2015
Revision: 132821
https://trac.macports.org/changeset/132821
Author: larryv at macports.org
Date: 2015-02-11 01:03:19 -0800 (Wed, 11 Feb 2015)
Log Message:
-----------
HandBrake: Construct `distfiles` using `checksums`
Keeping two separate lists of distfiles in sync is waste of effort.
Modified Paths:
--------------
trunk/dports/multimedia/HandBrake/Portfile
Modified: trunk/dports/multimedia/HandBrake/Portfile
===================================================================
--- trunk/dports/multimedia/HandBrake/Portfile 2015-02-11 09:03:15 UTC (rev 132820)
+++ trunk/dports/multimedia/HandBrake/Portfile 2015-02-11 09:03:19 UTC (rev 132821)
@@ -127,29 +127,16 @@
rmd160 9747178126c529c4bc807de356b57c077c95285b \
sha256 7b3d0ad309426ad49ff21df4d2ee5553b5769bc2bf2b7ae50f37f5fc72d190b1
-distfiles ${distname}${extract.suffix}:src \
- a52dec-0.7.4.tar.gz:contrib \
- faac-1.28.tar.gz:contrib \
- faad2-2.7.tar.gz:contrib \
- ffmpeg-v0.7-1696-gcae4f4b.tar.bz2:contrib \
- fontconfig-2.8.0.tar.gz:contrib \
- freetype-2.4.7.tar.bz2:contrib \
- fribidi-0.19.2.tar.gz:contrib \
- lame-3.98.tar.gz:contrib \
- libass-0.10.0-1.tar.gz:contrib \
- libbluray-0.0.1-pre-213-ga869da8.tar.gz:contrib \
- libdca-r81-strapped.tar.gz:contrib \
- libdvdnav-svn1168.tar.gz:contrib \
- libdvdread-svn1168.tar.gz:contrib \
- libmkv-0.6.5-0-g82075ae.tar.gz:contrib \
- libogg-1.3.0.tar.gz:contrib \
- libsamplerate-0.1.4.tar.gz:contrib \
- libtheora-1.1.0.tar.bz2:contrib \
- libvorbis-aotuv_b6.03.tar.bz2:contrib \
- libxml2-2.7.7.tar.gz:contrib \
- mp4v2-trunk-r355.tar.bz2:contrib \
- mpeg2dec-0.5.1.tar.gz:contrib \
- x264-r2146-bcd41db.tar.gz:contrib
+# Use `checksums` to construct `distfiles`, instead of maintaining and
+# synchronizing two separate lists.
+distfiles
+foreach {f - - - -} ${checksums} {
+ if {$f eq "${distname}${extract.suffix}"} {
+ distfiles-append ${f}:src
+ } else {
+ distfiles-append ${f}:contrib
+ }
+}
extract.only ${distname}${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150211/e9bb9c73/attachment.html>
More information about the macports-changes
mailing list