[107626] users/mojca

Lawrence Velázquez larryv at macports.org
Wed Jul 3 12:34:02 PDT 2013


On Jul 3, 2013, at 5:21 AM, mojca at macports.org wrote:

> Revision: 107626
>          https://trac.macports.org/changeset/107626
> Author:   mojca at macports.org
> Date:     2013-07-03 02:21:42 -0700 (Wed, 03 Jul 2013)
> Log Message:
> -----------
> geant4-data: do not destroot files during configure - move them during destroot phase; some notes

> Modified: users/mojca/ports/science/geant4-data/Portfile
> ===================================================================
> --- users/mojca/ports/science/geant4-data/Portfile	2013-07-03 07:44:38 UTC (rev 107625)
> +++ users/mojca/ports/science/geant4-data/Portfile	2013-07-03 09:21:42 UTC (rev 107626)
> @@ -42,13 +42,12 @@
>         distfiles           ${data.filename}.${data.version}${extract.suffix}
>         checksums           md5 ${data.md5}
>         distname            ${data.distname}${data.version}
> -        extract.dir         ${destroot}${geant.datadir}
> -        pre-extract {
> -            xinstall -m 755 -d ${destroot}${geant.datadir}
> -        }
>         use_configure       no
>         build               {}
> -        destroot            {}
> +        destroot {
> +			xinstall -m 755 -d ${destroot}${geant.datadir}
> +			file rename ${workpath}/${distname} ${destroot}${geant.datadir}
> +		}
>     }
> }

FYI, in Portfiles you can use the shorthand "move" instead of "file rename", if you prefer. I usually do. (There's also the analogous "copy" for "file copy".)

vq


More information about the macports-dev mailing list