summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 14:49:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 14:49:07 (EDT)
commit1f9954af0a07d0da74ca91d65458d683370c2eab (patch)
treea07cefed0789bdce3015a2fc7afe9fae1d1b611c /src
parentdfdfc254c904ef4e774453ff06820051b3e2d527 (diff)
Implement setup_build_helper().
Diffstat (limited to 'src')
-rw-r--r--src/ob-buildenv.sh14
1 files changed, 12 insertions, 2 deletions
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()