[31542] trunk/dports/multimedia/MPlayer/Portfile
milosh at macports.org
milosh at macports.org
Tue Nov 27 07:35:27 PST 2007
Revision: 31542
http://trac.macosforge.org/projects/macports/changeset/31542
Author: milosh at macports.org
Date: 2007-11-27 07:35:26 -0800 (Tue, 27 Nov 2007)
Log Message:
-----------
maintainer submitted patch
remove deprecated "cd" usage from multimedia/MPlayer (#13290)
Modified Paths:
--------------
trunk/dports/multimedia/MPlayer/Portfile
Modified: trunk/dports/multimedia/MPlayer/Portfile
===================================================================
--- trunk/dports/multimedia/MPlayer/Portfile 2007-11-27 15:16:27 UTC (rev 31541)
+++ trunk/dports/multimedia/MPlayer/Portfile 2007-11-27 15:35:26 UTC (rev 31542)
@@ -214,17 +214,15 @@
depends_build-append bin:unzip:unzip
post-extract {
- cd ${worksrcpath}
- system "unzip -q ${distpath}/${mplayercodecsfile}"
+ system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
}
configure.args-append --with-codecsdir=${prefix}/share/${name}/codecs
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
- cd ${destroot}${prefix}/share/${name}/codecs
- system "gunzip -c \
- ${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz | pax -r"
+ system "cd ${destroot}${prefix}/share/${name}/codecs && \
+ pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
}
}
if {[variant_isset darwin_i386]} {
@@ -242,17 +240,15 @@
depends_lib-append bin:unzip:unzip
post-extract {
- cd ${worksrcpath}
- system "unzip -q ${distpath}/${mplayercodecsfile}"
+ system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
}
configure.args-append --with-codecsdir=${prefix}/share/${name}/codecs
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
- cd ${destroot}${prefix}/share/${name}/codecs
- system "gunzip -c \
- \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\" | pax -r"
+ system "cd ${destroot}${prefix}/share/${name}/codecs" && \
+ pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071127/abea3bdd/attachment.html
More information about the macports-changes
mailing list