1 |
mrpouet 09/08/30 14:58:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libgphoto2-2.4.7.ebuild |
5 |
Log: |
6 |
Version bump. 5 new cameras IDs, translation updates, bugfixes, bug #283133 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.152 media-libs/libgphoto2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.152&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.152&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?r1=1.151&r2=1.152 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v |
19 |
retrieving revision 1.151 |
20 |
retrieving revision 1.152 |
21 |
diff -u -r1.151 -r1.152 |
22 |
--- ChangeLog 18 Jul 2009 00:37:18 -0000 1.151 |
23 |
+++ ChangeLog 30 Aug 2009 14:58:33 -0000 1.152 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-libs/libgphoto2 |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.151 2009/07/18 00:37:18 dang Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.152 2009/08/30 14:58:33 mrpouet Exp $ |
29 |
+ |
30 |
+*libgphoto2-2.4.7 (30 Aug 2009) |
31 |
+ |
32 |
+ 30 Aug 2009; Romain Perier <mrpouet@g.o> |
33 |
+ +libgphoto2-2.4.7.ebuild: |
34 |
+ Version bump. 5 new cameras IDs, translation updates, bugfixes, bug #283133 |
35 |
|
36 |
18 Jul 2009; Daniel Gryniewicz <dang@g.o> libgphoto2-2.4.6.ebuild: |
37 |
Fix -exif sed. bug #275568 |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/libgphoto2/libgphoto2-2.4.7.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.7.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.7.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libgphoto2-2.4.7.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.7.ebuild,v 1.1 2009/08/30 14:58:33 mrpouet Exp $ |
51 |
|
52 |
# TODO |
53 |
# 1. Track upstream bug --disable-docs does not work. |
54 |
# http://sourceforge.net/tracker/index.php?func=detail&aid=1643870&group_id=8874&atid=108874 |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
inherit multilib eutils |
59 |
|
60 |
DESCRIPTION="Library that implements support for numerous digital cameras" |
61 |
HOMEPAGE="http://www.gphoto.org/" |
62 |
SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
|
68 |
IUSE="bonjour doc exif hal nls kernel_linux" |
69 |
RESTRICT="test" |
70 |
|
71 |
# By default, drivers for all supported cameras will be compiled. |
72 |
# If you want to only compile for specific camera(s), set CAMERAS |
73 |
# environment to a space-separated list (no commas) of drivers that |
74 |
# you want to build. |
75 |
IUSE_CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 |
76 |
digigr8 digita dimera3500 directory enigma13 fuji gsmart300 hp215 iclick |
77 |
jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 |
78 |
konica konica_qm150 largan lg_gsm mars dimagev mustek panasonic_coolshot |
79 |
panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 |
80 |
polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung |
81 |
sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 |
82 |
soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 |
83 |
topfield" |
84 |
|
85 |
# jl2005c is still experimental -> not enabled |
86 |
|
87 |
for camera in ${IUSE_CAMERAS}; do |
88 |
IUSE="${IUSE} cameras_${camera}" |
89 |
done |
90 |
|
91 |
# libgphoto2 actually links to libtool |
92 |
RDEPEND="virtual/libusb:0 |
93 |
bonjour? ( || ( |
94 |
net-dns/avahi[mdnsresponder-compat] |
95 |
net-misc/mDNSResponder ) ) |
96 |
exif? ( >=media-libs/libexif-0.5.9 ) |
97 |
hal? ( |
98 |
>=sys-apps/hal-0.5 |
99 |
>=sys-apps/dbus-1 )" |
100 |
DEPEND="${RDEPEND} |
101 |
dev-util/pkgconfig |
102 |
sys-devel/flex |
103 |
>=sys-devel/gettext-0.14.1 |
104 |
doc? ( app-doc/doxygen )" |
105 |
# FIXME: gtk-doc is broken |
106 |
# >=dev-util/gtk-doc-1.10 )" |
107 |
|
108 |
RDEPEND="${RDEPEND} |
109 |
!<sys-fs/udev-114" |
110 |
|
111 |
pkg_setup() { |
112 |
if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then |
113 |
einfo "libgphoto2 supports: all ${IUSE_CAMERAS}" |
114 |
einfo "All camera drivers will be built since you did not specify" |
115 |
einfo "via the CAMERAS variable what camera you use." |
116 |
ewarn "NOTICE: Upstream will not support you if you do not compile all camera drivers first" |
117 |
fi |
118 |
|
119 |
if use cameras_template || use cameras_sipix_blink; then |
120 |
einfo "Upstream considers sipix_blink & template driver as obsolete" |
121 |
fi |
122 |
|
123 |
enewgroup plugdev |
124 |
} |
125 |
|
126 |
src_prepare() { |
127 |
# Fix pkgconfig file when USE="-exif" |
128 |
if ! use exif; then |
129 |
sed -i "s/, @REQUIREMENTS_FOR_LIBEXIF@//" libgphoto2.pc.in || die " libgphoto2.pc sed failed" |
130 |
fi |
131 |
|
132 |
# Fix bug #216206, libusb detection |
133 |
sed -i "s:usb_busses:usb_find_busses:g" libgphoto2_port/configure || die "libusb sed failed" |
134 |
} |
135 |
|
136 |
src_configure() { |
137 |
local cameras |
138 |
local cam |
139 |
for cam in ${IUSE_CAMERAS} ; do |
140 |
use "cameras_${cam}" && cameras="${cameras},${cam}" |
141 |
done |
142 |
|
143 |
[ -z "${cameras}" ] \ |
144 |
&& cameras="all" \ |
145 |
|| cameras="${cameras:1}" |
146 |
|
147 |
einfo "Enabled camera drivers: ${cameras}" |
148 |
[ "${cameras}" != "all" ] && \ |
149 |
ewarn "Upstream will not support you if you do not compile all camera drivers first" |
150 |
|
151 |
econf \ |
152 |
--disable-docs \ |
153 |
--disable-gp2ddb \ |
154 |
$(use_with bonjour) \ |
155 |
$(use_with hal) \ |
156 |
$(use_enable nls) \ |
157 |
$(use_with exif libexif) \ |
158 |
--with-drivers=${cameras} \ |
159 |
--with-doc-dir=/usr/share/doc/${PF} \ |
160 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
161 |
--with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \ |
162 |
--with-rpmbuild=$(type -P true) \ |
163 |
udevscriptdir=/$(get_libdir)/udev |
164 |
|
165 |
# FIXME: gtk-doc is currently broken |
166 |
# $(use_enable doc docs) |
167 |
} |
168 |
|
169 |
src_compile() { |
170 |
emake || die "make failed" |
171 |
|
172 |
if use doc; then |
173 |
doxygen doc/Doxyfile || die "Documentation generation failed" |
174 |
fi |
175 |
} |
176 |
|
177 |
src_install() { |
178 |
emake DESTDIR="${D}" install || die "install failed" |
179 |
|
180 |
# FIXME: fixup autoconf bug |
181 |
if ! use doc && [ -d "${D}/usr/share/doc/${PF}/apidocs.html" ]; then |
182 |
rm -fr "${D}/usr/share/doc/${PF}/apidocs.html" |
183 |
fi |
184 |
# end fixup |
185 |
|
186 |
dodoc ChangeLog NEWS* README AUTHORS TESTERS MAINTAINERS HACKING || die "dodoc failed" |
187 |
|
188 |
HAL_FDI="/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi" |
189 |
UDEV_RULES="/etc/udev/rules.d/70-libgphoto2.rules" |
190 |
CAM_LIST="/usr/$(get_libdir)/libgphoto2/print-camera-list" |
191 |
|
192 |
if [ -x "${D}"${CAM_LIST} ]; then |
193 |
# Let print-camera-list find libgphoto2.so |
194 |
export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
195 |
# Let libgphoto2 find its camera-modules |
196 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
197 |
|
198 |
if use hal && [ -n "$("${D}"${CAM_LIST} idlist)" ]; then |
199 |
einfo "Generating HAL FDI files ..." |
200 |
mkdir -p "${D}"/${HAL_FDI%/*} |
201 |
"${D}"${CAM_LIST} hal-fdi >> "${D}"/${HAL_FDI} \ |
202 |
|| die "failed to create hal-fdi" |
203 |
else |
204 |
ewarn "No HAL FDI file generated because no real camera driver enabled" |
205 |
fi |
206 |
|
207 |
einfo "Generating UDEV-rules ..." |
208 |
mkdir -p "${D}"/${UDEV_RULES%/*} |
209 |
echo -e "# do not edit this file, it will be overwritten on update\n#" \ |
210 |
> "${D}"/${UDEV_RULES} |
211 |
"${D}"${CAM_LIST} udev-rules version 0.98 group plugdev >> "${D}"/${UDEV_RULES} \ |
212 |
|| die "failed to create udev-rules" |
213 |
else |
214 |
eerror "Unable to find print-camera-list" |
215 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |
216 |
eerror "You will have to manually generate it by running:" |
217 |
eerror " ${CAM_LIST} udev-rules version 0.98 group plugdev > ${UDEV_RULES}" |
218 |
eerror " ${CAM_LIST} hal-fdi > ${HAL_FDI}" |
219 |
fi |
220 |
|
221 |
} |
222 |
|
223 |
pkg_postinst() { |
224 |
elog "Don't forget to add yourself to the plugdev group " |
225 |
elog "if you want to be able to access your camera." |
226 |
local OLD_UDEV_RULES="${ROOT}"etc/udev/rules.d/99-libgphoto2.rules |
227 |
if [[ -f ${OLD_UDEV_RULES} ]]; then |
228 |
rm -f "${OLD_UDEV_RULES}" |
229 |
fi |
230 |
} |