[40473] trunk/dports/multimedia/ffmpeg/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Oct 2 14:05:49 PDT 2008


On Oct 2, 2008, at 1:33 PM, macsforever2000 at macports.org wrote:

> Revision: 40473
>           http://trac.macports.org/changeset/40473
> Author:   macsforever2000 at macports.org
> Date:     2008-10-02 11:33:51 -0700 (Thu, 02 Oct 2008)
> Log Message:
> -----------
> Fix for displaying version number. Closes ticket #16589.
>
> Modified Paths:
> --------------
>     trunk/dports/multimedia/ffmpeg/Portfile
>
> Modified: trunk/dports/multimedia/ffmpeg/Portfile
> ===================================================================
> --- trunk/dports/multimedia/ffmpeg/Portfile	2008-10-02 18:13:33 UTC  
> (rev 40472)
> +++ trunk/dports/multimedia/ffmpeg/Portfile	2008-10-02 18:33:51 UTC  
> (rev 40473)
> @@ -4,7 +4,7 @@
>
>  name		ffmpeg
>  version		0.4.9-pre1
> -revision	11
> +revision	12
>  categories	multimedia
>  maintainers	acho at macports.org openmaintainer
>  description	Digital VCR and streaming server
> @@ -43,11 +43,19 @@
>
>  set svn_rev 14381
>
> +pre-fetch {
> +    if {[file isdirectory ${distpath}/${svn_rev}]} {
> +        if {![file isdirectory ${distpath}/${svn_rev}/trunk/.svn]} {
> +             file delete -force ${distpath}/${svn_rev}
> +        }
> +    }
> +}
> +
>  fetch {
>      if {![file isdirectory ${distpath}/${svn_rev}]} {
>          file mkdir ${distpath}/${svn_rev}
> -        system "svn export -r${svn_rev} --ignore-externals svn:// 
> svn.mplayerhq.hu/ffmpeg/trunk ${distpath}/${svn_rev}/trunk"
> -        system "svn export -r27349 svn://svn.mplayerhq.hu/mplayer/ 
> trunk/libswscale ${distpath}/${svn_rev}/trunk/libswscale"
> +        system "svn co -r${svn_rev} --ignore-externals svn:// 
> svn.mplayerhq.hu/ffmpeg/trunk ${distpath}/${svn_rev}/trunk"
> +        system "svn co -r27349 svn://svn.mplayerhq.hu/mplayer/ 
> trunk/libswscale ${distpath}/${svn_rev}/trunk/libswscale"
>      }
>  }

But this just forces the working copy to be discarded and checked out  
again every time you try to install. I thought the point of having a  
working copy was so that it could be reused. It would be nice if the  
working copy were only deleted in the pre-fetch phase if the revision  
number of the working copy (see the "svnversion" command) doesn't  
match the revision the port wants to check out.



More information about the macports-dev mailing list