On Jul 3, 2013, at 5:21 AM, [email protected] wrote:
> Revision: 107626
> https://trac.macports.org/changeset/107626
> Author: [email protected]
> 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
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev