1 |
zzam 07/09/26 13:24:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libgphoto2-2.4.0-r1.ebuild |
5 |
Log: |
6 |
Fix udev rules for kernel 2.6.22 and greater, now also got this patch into upstream - will appear in next version. |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.108 media-libs/libgphoto2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.108&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.108&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?r1=1.107&r2=1.108 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v |
19 |
retrieving revision 1.107 |
20 |
retrieving revision 1.108 |
21 |
diff -u -r1.107 -r1.108 |
22 |
--- ChangeLog 25 Sep 2007 06:39:10 -0000 1.107 |
23 |
+++ ChangeLog 26 Sep 2007 13:24:20 -0000 1.108 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for media-libs/libgphoto2 |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.107 2007/09/25 06:39:10 eva Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.108 2007/09/26 13:24:20 zzam Exp $ |
29 |
+ |
30 |
+*libgphoto2-2.4.0-r1 (26 Sep 2007) |
31 |
+ |
32 |
+ 26 Sep 2007; Matthias Schwarzott <zzam@g.o> |
33 |
+ +files/libgphoto2-2.4.0-udev-rules-fix4.diff, +libgphoto2-2.4.0-r1.ebuild: |
34 |
+ Fix udev rules for kernel 2.6.22 and greater, now also got this patch into |
35 |
+ upstream - will appear in next version. |
36 |
|
37 |
25 Sep 2007; Gilles Dartiguelongue <eva@g.o> |
38 |
libgphoto2-2.4.0.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-libs/libgphoto2/libgphoto2-2.4.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: libgphoto2-2.4.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2007 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.0-r1.ebuild,v 1.1 2007/09/26 13:24:20 zzam Exp $ |
52 |
|
53 |
# TODO |
54 |
# 1. Track upstream bug --disable-docs does not work. |
55 |
# http://sourceforge.net/tracker/index.php?func=detail&aid=1643870&group_id=8874&atid=108874 |
56 |
# 2. Track upstream bug udevscriptdir does not work. |
57 |
# http://sourceforge.net/tracker/index.php?func=detail&aid=1646520&group_id=8874&atid=108874 |
58 |
# http://sourceforge.net/tracker/index.php?func=detail&aid=1648346&group_id=8874&atid=108874 |
59 |
# 3. Track upstream bug regarding rpm usage. |
60 |
# http://sourceforge.net/tracker/index.php?func=detail&aid=1643813&group_id=8874&atid=358874 |
61 |
|
62 |
inherit eutils autotools |
63 |
|
64 |
DESCRIPTION="Library that implements support for numerous digital cameras" |
65 |
HOMEPAGE="http://www.gphoto.org/" |
66 |
SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
71 |
|
72 |
IUSE="nls doc exif hal kernel_linux" |
73 |
RESTRICT="test" |
74 |
|
75 |
# By default, drivers for all supported cameras will be compiled. |
76 |
# If you want to only compile for specific camera(s), set CAMERAS |
77 |
# environment to a space-separated list (no commas) of drivers that |
78 |
# you want to build. |
79 |
IUSE_CAMERAS="adc65 agfa_cl20 aox barbie canon casio casio_qv clicksmart310 |
80 |
digigr8 digita dimera3500 directory enigma13 fuji gsmart300 hp215 iclick |
81 |
jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 |
82 |
konica konika_qm150 largan lg_gsm mars dimagev mustek panasonic_coolshot |
83 |
panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 |
84 |
polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung |
85 |
sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 |
86 |
soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" |
87 |
|
88 |
for camera in ${IUSE_CAMERAS}; do |
89 |
IUSE="${IUSE} cameras_${camera}" |
90 |
done |
91 |
|
92 |
RDEPEND=">=dev-libs/libusb-0.1.8 |
93 |
exif? ( >=media-libs/libexif-0.5.9 ) |
94 |
hal? ( >=sys-apps/hal-0.5 ) |
95 |
sys-devel/libtool" |
96 |
DEPEND="${RDEPEND} |
97 |
dev-util/pkgconfig |
98 |
doc? ( app-doc/doxygen )" |
99 |
|
100 |
RDEPEND="${RDEPEND} |
101 |
!<sys-fs/udev-114" |
102 |
|
103 |
pkg_setup() { |
104 |
if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then |
105 |
einfo "libgphoto2 supports: all ${IUSE_CAMERAS}" |
106 |
einfo "All camera drivers will be built since you did not specify" |
107 |
einfo "via the CAMERAS variable what camera you use." |
108 |
ewarn "NOTICE: Upstream will not support you if you do not compile all camera drivers first" |
109 |
fi |
110 |
|
111 |
if use cameras_template || use cameras_sipix_blink; then |
112 |
einfo "Upstream considers sipix_blink & template driver as obsolete" |
113 |
fi |
114 |
|
115 |
enewgroup plugdev || die "Error creating plugdev group" |
116 |
} |
117 |
|
118 |
src_unpack() { |
119 |
unpack ${A} |
120 |
cd "${S}" |
121 |
epatch "${FILESDIR}"/${P}-rpm.patch |
122 |
|
123 |
# Fix as-needed at configure time |
124 |
epatch "${FILESDIR}"/${P}-as-needed.patch |
125 |
|
126 |
# Fix udev rules for Kernel 2.6.22 and greater |
127 |
epatch "${FILESDIR}"/${P}-udev-rules-fix4.diff |
128 |
|
129 |
AT_M4DIR="${S}/auto-m4 ${S}/m4m" eautoreconf |
130 |
} |
131 |
|
132 |
src_compile() { |
133 |
local cameras |
134 |
local cam |
135 |
for cam in ${IUSE_CAMERAS} ; do |
136 |
use "cameras_${cam}" && cameras="${cameras},${cam}" |
137 |
done |
138 |
|
139 |
[ -z "${cameras}" ] \ |
140 |
&& cameras="all" \ |
141 |
|| cameras="${cameras:1}" |
142 |
|
143 |
einfo "Enabled camera drivers: ${cameras}" |
144 |
[ "${cameras}" != "all" ] && \ |
145 |
ewarn "Upstream will not support you if you do not compile all camera drivers first" |
146 |
|
147 |
local myconf |
148 |
|
149 |
use exif \ |
150 |
&& myconf="${myconf} --with-exif-prefix=/usr" \ |
151 |
|| myconf="${myconf} --without-exif" |
152 |
|
153 |
econf \ |
154 |
--with-drivers=${cameras} \ |
155 |
--with-doc-dir=/usr/share/doc/${PF} \ |
156 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
157 |
--with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \ |
158 |
$(use_enable nls) \ |
159 |
--with-rpmbuild=/bin/true \ |
160 |
--disable-docs \ |
161 |
udevscriptdir=/lib/udev \ |
162 |
GTKDOC=/bin/true \ |
163 |
${myconf} || die "econf failed" |
164 |
# $(use_enable doc docs) \ TODO |
165 |
|
166 |
emake || die "make failed" |
167 |
} |
168 |
|
169 |
src_install() { |
170 |
emake DESTDIR="${D}" install || die "install failed" |
171 |
|
172 |
# fixup autoconf bug TODO |
173 |
if ! use doc && [ -d "${D}/usr/share/doc/${PF}/apidocs.html" ]; then |
174 |
rm -fr "${D}/usr/share/doc/${PF}/apidocs.html" |
175 |
fi |
176 |
# end fixup |
177 |
|
178 |
dodoc ChangeLog NEWS* README AUTHORS TESTERS MAINTAINERS HACKING |
179 |
|
180 |
HAL_FDI="/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi" |
181 |
UDEV_RULES="/etc/udev/rules.d/99-libgphoto2.rules" |
182 |
|
183 |
if [ -x "${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list ]; then |
184 |
# Let print-camera-list find libgphoto2.so |
185 |
export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
186 |
# Let libgphoto2 find its camera-modules |
187 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
188 |
|
189 |
if use hal; then |
190 |
einfo "Generating HAL FDI files ..." |
191 |
mkdir -p "${D}"/${HAL_FDI%/*} |
192 |
"${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> "${D}"/${HAL_FDI} \ |
193 |
|| die "failed to create hal-fdi" |
194 |
fi |
195 |
|
196 |
einfo "Generating UDEV-rules ..." |
197 |
mkdir -p "${D}"/${UDEV_RULES%/*} |
198 |
"${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list \ |
199 |
udev-rules version 0.98 group plugdev mode 0660 >> "${D}"/${UDEV_RULES} \ |
200 |
|| die "failed to create udev-rules" |
201 |
else |
202 |
eerror "Unable to find print-camera-list" |
203 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |
204 |
eerror "You will have to manually generate it by running:" |
205 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list udev-rules version 0.98 group plugdev mode 0660 > ${UDEV_RULES}" |
206 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi > ${HAL_FDI}" |
207 |
fi |
208 |
|
209 |
} |
210 |
|
211 |
pkg_postinst() { |
212 |
elog "Don't forget to add yourself to the plugdev group " |
213 |
elog "if you want to be able to access your camera." |
214 |
} |
215 |
|
216 |
|
217 |
|
218 |
-- |
219 |
gentoo-commits@g.o mailing list |