[84324] trunk/dports/lang/ccl/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Sep 22 08:56:02 PDT 2011


On Sep 22, 2011, at 10:44, and.damore at macports.org wrote:

> Revision: 84324
>          http://trac.macports.org/changeset/84324
> Author:   and.damore at macports.org
> Date:     2011-09-22 08:44:32 -0700 (Thu, 22 Sep 2011)
> Log Message:
> -----------
> port ccl: copying doc and examples in porthier compliant paths
> 
> Modified Paths:
> --------------
>    trunk/dports/lang/ccl/Portfile
> 
> Modified: trunk/dports/lang/ccl/Portfile
> ===================================================================
> --- trunk/dports/lang/ccl/Portfile	2011-09-22 15:43:45 UTC (rev 84323)
> +++ trunk/dports/lang/ccl/Portfile	2011-09-22 15:44:32 UTC (rev 84324)
> @@ -59,6 +59,7 @@
> 
> build		{
> 		  system "cd ${worksrcpath} && echo '(ccl::rebuild-ccl :full t)' | ./${bootimg} --batch"
> +    system "cd ${worksrcpath}/doc/src && make -f Makefile.macports"
> 		}
> 
> set prefixpath  \\\"[regsub -all / [strsed ${prefix}/share/asdf-install {g/^\///}] "\\\" \\\""]\\\"
> @@ -70,8 +71,16 @@
> 		  ${workpath}/ccl/scripts/${ccl_script}
> 		  system "chmod +x ${workpath}/ccl/scripts/${ccl_script}"
> 		  file copy ${workpath}/ccl/scripts/${ccl_script} ${destroot}${prefix}/bin
> -		}
> 
> +    xinstall -d ${destroot}${prefix}/share/doc/${name}
> +    xinstall -d ${destroot}${prefix}/share/examples
> +    xinstall -m 644 -W ${worksrcpath}/doc ccl-documentation.html LGPL LICENSE \
> +             release-notes-1.1.txt release-notes-1.2.txt release-notes.txt \
> +             ${destroot}${prefix}/share/doc/${name}
> +    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
> +
> +    }

Looks like this changes what files get installed, so the revision must be increased.

Also note that "system" now supports a "-W" argument so you can do:

    system -W ${worksrcpath}/doc/src "make -f Makefile.macports"




More information about the macports-dev mailing list