1 |
pacho 10/05/08 11:23:30 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libgphoto2-2.4.9.ebuild |
5 |
Log: |
6 |
Version bump including updated drivers for ptp2, ST2205, AX203 and digita. Thanks to Lebedev Roman for reporting bug #318027 |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.170 media-libs/libgphoto2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.170&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.170&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?r1=1.169&r2=1.170 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v |
19 |
retrieving revision 1.169 |
20 |
retrieving revision 1.170 |
21 |
diff -u -r1.169 -r1.170 |
22 |
--- ChangeLog 5 Apr 2010 14:57:39 -0000 1.169 |
23 |
+++ ChangeLog 8 May 2010 11:23:30 -0000 1.170 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-libs/libgphoto2 |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.169 2010/04/05 14:57:39 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.170 2010/05/08 11:23:30 pacho Exp $ |
29 |
+ |
30 |
+*libgphoto2-2.4.9 (08 May 2010) |
31 |
+ |
32 |
+ 08 May 2010; Pacho Ramos <pacho@g.o> +libgphoto2-2.4.9.ebuild: |
33 |
+ Version bump including updated drivers for ptp2, ST2205, AX203 and digita. |
34 |
+ Thanks to Lebedev Roman for reporting bug #318027 |
35 |
|
36 |
05 Apr 2010; Raúl Porcel <armin76@g.o> libgphoto2-2.4.8.ebuild: |
37 |
alpha/ia64/sparc stable wrt #308549 |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/libgphoto2/libgphoto2-2.4.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libgphoto2-2.4.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.9.ebuild,v 1.1 2010/05/08 11:23:30 pacho 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 autotools eutils multilib |
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 |
IUSE="bonjour doc examples exif hal nls kernel_linux" |
68 |
|
69 |
# ??? |
70 |
#RESTRICT="test" |
71 |
|
72 |
# By default, drivers for all supported cameras will be compiled. |
73 |
# If you want to only compile for specific camera(s), set CAMERAS |
74 |
# environment to a space-separated list (no commas) of drivers that |
75 |
# you want to build. |
76 |
IUSE_CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 |
77 |
digigr8 digita dimera3500 directory enigma13 fuji gsmart300 hp215 iclick |
78 |
jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 |
79 |
konica konica_qm150 largan lg_gsm mars dimagev mustek panasonic_coolshot |
80 |
panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 |
81 |
polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung |
82 |
sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 |
83 |
soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 |
84 |
topfield" |
85 |
|
86 |
# jl2005c is still experimental -> not enabled |
87 |
|
88 |
for camera in ${IUSE_CAMERAS}; do |
89 |
IUSE="${IUSE} cameras_${camera}" |
90 |
done |
91 |
|
92 |
# libgphoto2 actually links to libtool |
93 |
RDEPEND="virtual/libusb:0 |
94 |
bonjour? ( || ( |
95 |
net-dns/avahi[mdnsresponder-compat] |
96 |
net-misc/mDNSResponder ) ) |
97 |
exif? ( >=media-libs/libexif-0.5.9 ) |
98 |
hal? ( |
99 |
>=sys-apps/hal-0.5 |
100 |
>=sys-apps/dbus-1 )" |
101 |
DEPEND="${RDEPEND} |
102 |
dev-util/pkgconfig |
103 |
sys-devel/flex |
104 |
>=sys-devel/gettext-0.14.1 |
105 |
doc? ( app-doc/doxygen )" |
106 |
# FIXME: gtk-doc is broken |
107 |
# >=dev-util/gtk-doc-1.10 )" |
108 |
|
109 |
RDEPEND="${RDEPEND} |
110 |
!<sys-fs/udev-136" |
111 |
|
112 |
pkg_setup() { |
113 |
if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then |
114 |
einfo "libgphoto2 supports: all ${IUSE_CAMERAS}" |
115 |
einfo "All camera drivers will be built since you did not specify" |
116 |
einfo "via the CAMERAS variable what camera you use." |
117 |
einfo "NOTICE: Upstream will not support you if you do not compile all camera drivers first" |
118 |
fi |
119 |
|
120 |
if use cameras_template || use cameras_sipix_blink; then |
121 |
einfo "Upstream considers sipix_blink & template driver as obsolete" |
122 |
fi |
123 |
|
124 |
enewgroup plugdev |
125 |
} |
126 |
|
127 |
src_prepare() { |
128 |
# Handle examples ourselves |
129 |
sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' -i Makefile.am Makefile.in \ |
130 |
|| die "examples sed failed" |
131 |
|
132 |
# Fix pkgconfig file when USE="-exif" |
133 |
if ! use exif; then |
134 |
sed -i "s/, @REQUIREMENTS_FOR_LIBEXIF@//" libgphoto2.pc.in || die " libgphoto2.pc sed failed" |
135 |
fi |
136 |
|
137 |
# Fix USE=bonjour, bug #283332 |
138 |
epatch "${FILESDIR}/${PN}-2.4.7-respect-bonjour.patch" |
139 |
|
140 |
# Do not build test if not running make check, bug #226241 |
141 |
epatch "${FILESDIR}/${PN}-2.4.7-no-test-build.patch" |
142 |
|
143 |
# Increase max entries from 1024 to 8192 to fix bug #291049 |
144 |
epatch "${FILESDIR}/${PN}-2.4.8-increase_max_entries.patch" |
145 |
|
146 |
eautoreconf |
147 |
|
148 |
# Fix bug #216206, libusb detection |
149 |
sed -i "s:usb_busses:usb_find_busses:g" libgphoto2_port/configure || die "libusb sed failed" |
150 |
} |
151 |
|
152 |
src_configure() { |
153 |
local cameras |
154 |
local cam |
155 |
for cam in ${IUSE_CAMERAS} ; do |
156 |
use "cameras_${cam}" && cameras="${cameras},${cam}" |
157 |
done |
158 |
|
159 |
[ -z "${cameras}" ] \ |
160 |
&& cameras="all" \ |
161 |
|| cameras="${cameras:1}" |
162 |
|
163 |
einfo "Enabled camera drivers: ${cameras}" |
164 |
[ "${cameras}" != "all" ] && \ |
165 |
ewarn "Upstream will not support you if you do not compile all camera drivers first" |
166 |
|
167 |
econf \ |
168 |
--disable-docs \ |
169 |
--disable-gp2ddb \ |
170 |
$(use_with bonjour) \ |
171 |
$(use_with hal) \ |
172 |
$(use_enable nls) \ |
173 |
$(use_with exif libexif auto) \ |
174 |
--with-drivers=${cameras} \ |
175 |
--with-doc-dir=/usr/share/doc/${PF} \ |
176 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
177 |
--with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \ |
178 |
--with-rpmbuild=$(type -P true) \ |
179 |
udevscriptdir=/$(get_libdir)/udev |
180 |
|
181 |
# FIXME: gtk-doc is currently broken |
182 |
# $(use_enable doc docs) |
183 |
} |
184 |
|
185 |
src_compile() { |
186 |
emake || die "make failed" |
187 |
|
188 |
if use doc; then |
189 |
doxygen doc/Doxyfile || die "Documentation generation failed" |
190 |
fi |
191 |
} |
192 |
|
193 |
src_install() { |
194 |
emake DESTDIR="${D}" install || die "install failed" |
195 |
|
196 |
# Clean up unwanted files |
197 |
rm "${D}/usr/share/doc/${PF}/"{ABOUT-NLS,COPYING} || die "rm failed" |
198 |
dodoc ChangeLog NEWS* README* AUTHORS TESTERS MAINTAINERS HACKING || die "dodoc failed" |
199 |
|
200 |
if use examples; then |
201 |
insinto /usr/share/doc/${PF}/examples |
202 |
doins examples/README examples/*.c examples/*.h || die "examples installation failed" |
203 |
fi |
204 |
|
205 |
# FIXME: fixup autoconf bug |
206 |
if ! use doc && [ -d "${D}/usr/share/doc/${PF}/apidocs.html" ]; then |
207 |
rm -fr "${D}/usr/share/doc/${PF}/apidocs.html" |
208 |
fi |
209 |
# end fixup |
210 |
|
211 |
HAL_FDI="/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi" |
212 |
UDEV_RULES="/etc/udev/rules.d/70-libgphoto2.rules" |
213 |
CAM_LIST="/usr/$(get_libdir)/libgphoto2/print-camera-list" |
214 |
|
215 |
if [ -x "${D}"${CAM_LIST} ]; then |
216 |
# Let print-camera-list find libgphoto2.so |
217 |
export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
218 |
# Let libgphoto2 find its camera-modules |
219 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
220 |
|
221 |
if use hal && [ -n "$("${D}"${CAM_LIST} idlist)" ]; then |
222 |
einfo "Generating HAL FDI files ..." |
223 |
mkdir -p "${D}"/${HAL_FDI%/*} |
224 |
"${D}"${CAM_LIST} hal-fdi >> "${D}"/${HAL_FDI} \ |
225 |
|| die "failed to create hal-fdi" |
226 |
elif use hal; then |
227 |
ewarn "No HAL FDI file generated because no real camera driver enabled" |
228 |
fi |
229 |
|
230 |
einfo "Generating UDEV-rules ..." |
231 |
mkdir -p "${D}"/${UDEV_RULES%/*} |
232 |
echo -e "# do not edit this file, it will be overwritten on update\n#" \ |
233 |
> "${D}"/${UDEV_RULES} |
234 |
"${D}"${CAM_LIST} udev-rules version 136 group plugdev >> "${D}"/${UDEV_RULES} \ |
235 |
|| die "failed to create udev-rules" |
236 |
else |
237 |
eerror "Unable to find print-camera-list" |
238 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |
239 |
eerror "You will have to manually generate it by running:" |
240 |
eerror " ${CAM_LIST} udev-rules version 136 group plugdev > ${UDEV_RULES}" |
241 |
eerror " ${CAM_LIST} hal-fdi > ${HAL_FDI}" |
242 |
fi |
243 |
|
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
elog "Don't forget to add yourself to the plugdev group " |
248 |
elog "if you want to be able to access your camera." |
249 |
local OLD_UDEV_RULES="${ROOT}"etc/udev/rules.d/99-libgphoto2.rules |
250 |
if [[ -f ${OLD_UDEV_RULES} ]]; then |
251 |
rm -f "${OLD_UDEV_RULES}" |
252 |
fi |
253 |
} |