summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild')
-rw-r--r--sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild b/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild
index a9cf523..cc47b16 100644
--- a/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild
+++ b/sci-electronics/gazebo/gazebo-1.0.0_rc2.ebuild
@@ -4,7 +4,7 @@
EAPI=4
-inherit qt4-r2 cmake-utils
+inherit eutils qt4-r2 cmake-utils
MY_P=${PN}-${PV/_rc/-RC}
@@ -59,7 +59,7 @@ src_compile() {
cmake-utils_src_compile
if use doc; then
- cd ${CMAKE_BUILD_DIR}
+ cd "${CMAKE_BUILD_DIR}"
emake doc
fi
}
@@ -67,7 +67,11 @@ src_compile() {
src_install() {
cmake-utils_src_install
+ echo "GAZEBO_RESOURCE_DIR=\"/usr/share/${MY_P}\"" > "${T}"/50gazebo
+ echo "OGRE_RESOURCE_PATH=\"/usr/$(get_libdir)/OGRE\"" >> "${T}"/50gazebo
+ doenvd "${T}"/50gazebo
+
if use doc; then
- dohtml -r ${CMAKE_BUILD_DIR}/doxygen/html/*
+ dohtml -r "${CMAKE_BUILD_DIR}"/doxygen/html/*
fi
}