Lines 129-146
src_install() {
Link Here
|
129 |
# Let libgphoto2 find its camera-modules |
129 |
# Let libgphoto2 find its camera-modules |
130 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
130 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
131 |
|
131 |
|
132 |
if use hal; then |
132 |
if use hal && [ ${#IUSE_CAMERAS} > 0 ] && [ ${IUSE_CAMERAS} != "template" ]; then |
133 |
einfo "Generating HAL FDI files ..." |
133 |
einfo "Generating HAL FDI files ..." |
134 |
mkdir -p ${D}/${HAL_FDI%/*} |
134 |
mkdir -p ${D}/${HAL_FDI%/*} |
135 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> ${D}/${HAL_FDI} \ |
135 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> ${D}/${HAL_FDI} \ |
136 |
|| die "failed to create hal-fdi" |
136 |
|| die "failed to create hal-fdi" |
137 |
fi |
137 |
fi |
138 |
|
138 |
|
139 |
einfo "Generating UDEV-rules ..." |
139 |
if [ ${#IUSE_CAMERAS} > 0 ] && [ ${IUSE_CAMERAS} != "template" ]; then |
140 |
mkdir -p ${D}/${UDEV_RULES%/*} |
140 |
einfo "Generating UDEV-rules ..." |
141 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list \ |
141 |
mkdir -p ${D}/${UDEV_RULES%/*} |
142 |
udev-rules-0.98 group plugdev mode 0660 >> ${D}/${UDEV_RULES} \ |
142 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list \ |
143 |
|| die "failed to create udev-rules" |
143 |
udev-rules-0.98 group plugdev mode 0660 >> ${D}/${UDEV_RULES} \ |
|
|
144 |
|| die "failed to create udev-rules" |
145 |
fi |
144 |
else |
146 |
else |
145 |
eerror "Unable to find print-camera-list" |
147 |
eerror "Unable to find print-camera-list" |
146 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |
148 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |