On 08/25/2012 11:59 PM, Alexandre Rostovtsev wrote: > On Sat, 2012-08-25 at 23:45 +0200, Ulrich Mueller wrote: >>>>>>> On Sat, 25 Aug 2012, Alexandre Rostovtsev wrote: >> >>> export VALAC=$(type -P valac-${VALA_API_VERSION}) >>> export VALA=$(type -P vala-${VALA_API_VERSION}) >>> export VALA_GEN_INTROSPECT=$(type -P >>> vala-gen-introspect-${VALA_API_VERSION}) >>> export VAPIGEN="$(type -P vapigen-${VALA_API_VERSION})" >> >> Is it guaranteed that these commands are present at pkg_setup time? > > I am assuming that the ebuild writer has added the correct vala > dependency to DEPEND. Maybe something like this:
Note that pkg_setup is called for binary packages too, which means that DEPEND may not necessarily be installed. In EAPI 4 you can check the MERGE_TYPE variable which can have a value of binary, source, orbuildonly. -- Thanks, Zac