Working path variable for extract phase

Artur Szostak aszostak at
Tue Nov 4 09:49:26 PST 2014


I cant seem to figure out the appropriate variable to use for the extract phase. Or more specifically post-extract. Anyone know this? I thought ${workdir} would work but its not defines during that phase.

To explain a bit more: I have a tarball with a bunch of source tarballs inside. I want to unpack the inner tarball. So I am trying to run a tar command in the post-extract phase, but I need a variable name for the working directory where the source is supposed to land up for the subsequent phases.
For example, the following fragment from the installation log indicates the first extraction went fine, i.e. pull out detmon-1.2.7.tar.gz from detmon-kit-1.2.7.tar.gz:

:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_Users_vagrant_repo_ports_science_detmon/detmon/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/detmon/detmon-kit-1.2.7.tar.gz' | tar -xf - detmon-kit-1.2.7/detmon-1.2.7.tar.gz'

Now I want to know the variable name that contains: /opt/local/var/macports/build/_Users_vagrant_repo_ports_science_detmon/detmon/work



More information about the macports-users mailing list