src_compile() { cd "${S}" for plugin in ${PLUG_INS}; do if use ${plugin}; then pushd ${plugin} emake || die "emake failed on ${plugin}" popd fi done } src_install() { for plugin in ${PLUG_INS}; do if use ${plugin}; then pushd ${plugin} emake DESTDIR="${D}" install || die "emake install failed on ${plugin}" popd fi done }