|
Lines 11-17
Link Here
|
| 11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
| 12 |
SLOT="0" |
12 |
SLOT="0" |
| 13 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
13 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
| 14 |
IUSE="nls doc exif nousb" |
14 |
IUSE="nls doc exif nousb kernel_linux" |
| 15 |
|
15 |
|
| 16 |
# needs >usbutils-0.11-r2 to avoid /usr/lib/libusb* |
16 |
# needs >usbutils-0.11-r2 to avoid /usr/lib/libusb* |
| 17 |
# conflicts with dev-libs/libusb |
17 |
# conflicts with dev-libs/libusb |
|
Lines 47-53
Link Here
|
| 47 |
src_unpack() { |
47 |
src_unpack() { |
| 48 |
unpack ${A} |
48 |
unpack ${A} |
| 49 |
cd ${S} |
49 |
cd ${S} |
| 50 |
epatch ${FILESDIR}/${PN}-2.1.2-norpm.patch |
50 |
epatch ${FILESDIR}/${PN}-2.2.1-norpm.patch |
|
|
51 |
epatch ${FILESDIR}/${PN}-2.2.1-usbid.patch |
| 51 |
|
52 |
|
| 52 |
# make default group 'plugdev', not camera |
53 |
# make default group 'plugdev', not camera |
| 53 |
sed -e 's:=camera:=plugdev:' -i packaging/linux-hotplug/usbcam.group |
54 |
sed -e 's:=camera:=plugdev:' -i packaging/linux-hotplug/usbcam.group |
|
Lines 119-133
Link Here
|
| 119 |
if use !nousb && use kernel_linux; then |
120 |
if use !nousb && use kernel_linux; then |
| 120 |
einfo "Generating usbcam-gphoto2.usermap .." |
121 |
einfo "Generating usbcam-gphoto2.usermap .." |
| 121 |
HOTPLUG_USERMAP="/etc/hotplug/usb/usbcam-gphoto2.usermap" |
122 |
HOTPLUG_USERMAP="/etc/hotplug/usb/usbcam-gphoto2.usermap" |
| 122 |
if [[ -x ${ROOT}/usr/$(get_libdir)/libgphoto2/print-usb-usermap ]]; then |
123 |
if [[ -x ${ROOT}/usr/$(get_libdir)/libgphoto2/print-camera-list ]]; then |
| 123 |
echo "# !!! DO NOT EDIT THIS FILE !!! This file is automatically generated." > ${ROOT}/${HOTPLUG_USERMAP} |
124 |
echo "# !!! DO NOT EDIT THIS FILE !!! This file is automatically generated." > ${ROOT}/${HOTPLUG_USERMAP} |
| 124 |
echo "# Put your custom entries in /etc/hotplug/usb/usbcam.usermap" >> ${ROOT}/${HOTPLUG_USERMAP} |
125 |
echo "# Put your custom entries in /etc/hotplug/usb/usbcam.usermap" >> ${ROOT}/${HOTPLUG_USERMAP} |
| 125 |
${ROOT}/usr/$(get_libdir)/libgphoto2/print-usb-usermap >> ${ROOT}/${HOTPLUG_USERMAP} |
126 |
${ROOT}/usr/$(get_libdir)/libgphoto2/print-camera-list usb-usermap >> ${ROOT}/${HOTPLUG_USERMAP} |
| 126 |
else |
127 |
else |
| 127 |
eerror "Unable to find ${ROOT}/usr/$(get_libdir)/libgphoto2/print-usb-usermap" |
128 |
eerror "Unable to find ${ROOT}/usr/$(get_libdir)/libgphoto2/print-camera-list" |
| 128 |
eerror "and therefore unable to generate hotplug usermap." |
129 |
eerror "and therefore unable to generate hotplug usermap." |
| 129 |
eerror "You will have to manually generate it by running:" |
130 |
eerror "You will have to manually generate it by running:" |
| 130 |
eerror " /usr/$(get_libdir)/libgphoto2/print-usb-usermap > ${HOTPLUG_USERMAP}" |
131 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list usb-usermap > ${HOTPLUG_USERMAP}" |
| 131 |
fi |
132 |
fi |
| 132 |
fi |
133 |
fi |
| 133 |
|
134 |
|