From 1f9954af0a07d0da74ca91d65458d683370c2eab Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 08 Oct 2012 14:49:07 -0400 Subject: Implement setup_build_helper(). --- (limited to 'src') diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index 7689c5d..d83423d 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -24,6 +24,7 @@ ob_use locale ob_use output ob_use package +ob_use deps main() { @@ -41,8 +42,17 @@ main() setup_build_helper() { - # TODO: Do. - : + IFS=', ' + + for dep in $(ob_get_source_parameter 'Build-Depends'); do + ob_parse_dep -p dep_pkg "${dep}" >/dev/null + case "${dep_pkg}" in + 'opkhelper-'*) + printf "PATH='%s:%s'\n" "${PATH}" \ + "$(ob_get_system_path 'build-helper')/${dep_pkg}" + ;; + esac + done } setup_toolchain() -- cgit v0.9.1