Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libgphoto2: libgphoto2-2.4.12.ebuild ChangeLog libgphoto2-2.4.10.ebuild libgphoto2-2.4.11.ebuild
Date: Tue, 31 Jan 2012 08:55:23
Message-Id: 20120131085514.B56602004B@flycatcher.gentoo.org
1 pacho 12/01/31 08:55:14
2
3 Modified: ChangeLog
4 Added: libgphoto2-2.4.12.ebuild
5 Removed: libgphoto2-2.4.10.ebuild libgphoto2-2.4.11.ebuild
6 Log:
7 Version bump, drop no longer needed libusb fix and automagic patch, empty dependency_libs in .la files (bug #386665 by Samuli Suominen). Drop old.
8
9 (Portage version: 2.1.10.44/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.200 media-libs/libgphoto2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.200&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.200&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libgphoto2/ChangeLog?r1=1.199&r2=1.200
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v
21 retrieving revision 1.199
22 retrieving revision 1.200
23 diff -u -r1.199 -r1.200
24 --- ChangeLog 8 Nov 2011 09:32:21 -0000 1.199
25 +++ ChangeLog 31 Jan 2012 08:55:14 -0000 1.200
26 @@ -1,6 +1,13 @@
27 # ChangeLog for media-libs/libgphoto2
28 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.199 2011/11/08 09:32:21 naota Exp $
30 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.200 2012/01/31 08:55:14 pacho Exp $
32 +
33 +*libgphoto2-2.4.12 (31 Jan 2012)
34 +
35 + 31 Jan 2012; Pacho Ramos <pacho@g.o> +libgphoto2-2.4.12.ebuild,
36 + -libgphoto2-2.4.10.ebuild, -libgphoto2-2.4.11.ebuild:
37 + Version bump, drop no longer needed libusb fix and automagic patch, empty
38 + dependency_libs in .la files (bug #386665 by Samuli Suominen). Drop old.
39
40 04 Nov 2011; Naohiro Aota <naota@g.o> libgphoto2-2.4.11-r1.ebuild:
41 Add ~x86-fbsd
42
43
44
45 1.1 media-libs/libgphoto2/libgphoto2-2.4.12.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.12.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.12.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libgphoto2-2.4.12.ebuild
51 ===================================================================
52 # Copyright 1999-2012 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.12.ebuild,v 1.1 2012/01/31 08:55:14 pacho Exp $
55
56 # TODO
57 # 1. Track upstream bug --disable-docs does not work.
58 # http://sourceforge.net/tracker/index.php?func=detail&aid=1643870&group_id=8874&atid=108874
59
60 EAPI="4"
61
62 inherit autotools eutils multilib
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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
71 IUSE="doc examples exif gd jpeg nls kernel_linux zeroconf"
72
73 # By default, drivers for all supported cameras will be compiled.
74 # If you want to only compile for specific camera(s), set CAMERAS
75 # environment to a space-separated list (no commas) of drivers that
76 # you want to build.
77 IUSE_CAMERAS="
78 adc65 agfa_cl20 aox ax203
79 barbie
80 canon casio_qv clicksmart310
81 digigr8 digita dimagev dimera3500 directory
82 enigma13
83 fuji
84 gsmart300
85 hp215
86 iclick
87 jamcam jd11 jl2005a jl2005c
88 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150
89 largan lg_gsm
90 mars mustek
91 panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2
92 ricoh ricoh_g3
93 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z
94 template toshiba_pdrm11 topfield tp6801
95 "
96
97 for camera in ${IUSE_CAMERAS}; do
98 IUSE="${IUSE} cameras_${camera}"
99 done
100
101 # libgphoto2 actually links to libtool
102 RDEPEND="virtual/libusb:0
103 cameras_ax203? ( media-libs/gd )
104 cameras_st2205? ( media-libs/gd )
105 zeroconf? ( || (
106 net-dns/avahi[mdnsresponder-compat]
107 net-misc/mDNSResponder ) )
108 exif? ( >=media-libs/libexif-0.5.9 )
109 gd? ( media-libs/gd[jpeg=] )
110 jpeg? ( virtual/jpeg )
111 sys-devel/libtool"
112 DEPEND="${RDEPEND}
113 dev-util/pkgconfig
114 sys-devel/flex
115 >=sys-devel/gettext-0.14.1
116 doc? ( app-doc/doxygen )"
117 # FIXME: gtk-doc is broken
118 # >=dev-util/gtk-doc-1.10 )"
119
120 RDEPEND="${RDEPEND}
121 !<sys-fs/udev-136"
122
123 pkg_setup() {
124 if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then
125 einfo "No camera drivers will be built since you did not specify any."
126 fi
127
128 if use cameras_template || use cameras_sipix_blink; then
129 einfo "Upstream considers sipix_blink & template driver as obsolete"
130 fi
131
132 enewgroup plugdev
133 }
134
135 src_prepare() {
136 # Handle examples ourselves
137 sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
138 || die "examples sed failed"
139
140 # Fix pkgconfig file when USE="-exif"
141 if ! use exif; then
142 sed -i "s/, @REQUIREMENTS_FOR_LIBEXIF@//" libgphoto2.pc.in || die " libgphoto2.pc sed failed"
143 fi
144
145 # Fix USE=zeroconf, bug #283332
146 epatch "${FILESDIR}/${PN}-2.4.7-respect-bonjour.patch"
147
148 # Do not build test if not running make check, bug #226241
149 epatch "${FILESDIR}/${PN}-2.4.7-no-test-build.patch"
150
151 # Increase max entries from 1024 to 8192 to fix bug #291049
152 epatch "${FILESDIR}/${PN}-2.4.8-increase_max_entries.patch"
153
154 eautoreconf
155 }
156
157 src_configure() {
158 local cameras
159 local cam
160 local cam_warn=no
161 for cam in ${IUSE_CAMERAS} ; do
162 if use "cameras_${cam}"; then
163 cameras="${cameras},${cam}"
164 else
165 cam_warn=yes
166 fi
167 done
168
169 if [ "${cam_warn}" = "yes" ]; then
170 [ -z "${cameras}" ] || cameras="${cameras:1}"
171 einfo "Enabled camera drivers: ${cameras:-none}"
172 ewarn "Upstream will not support you if you do not compile all camera drivers first"
173 else
174 cameras="all"
175 einfo "Enabled camera drivers: all"
176 fi
177
178 local myconf
179 use doc || myconf="ac_cv_path_DOXYGEN=false"
180 econf \
181 --disable-docs \
182 --disable-gp2ddb \
183 $(use_with zeroconf bonjour) \
184 --without-hal \
185 $(use_enable nls) \
186 $(use_with exif libexif auto) \
187 $(use_with gd) \
188 $(use_with jpeg) \
189 --with-drivers=${cameras} \
190 --with-doc-dir=/usr/share/doc/${PF} \
191 --with-html-dir=/usr/share/doc/${PF}/html \
192 --with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \
193 --with-rpmbuild=$(type -P true) \
194 udevscriptdir=/lib/udev \
195 ${myconf}
196
197 # FIXME: gtk-doc is currently broken
198 # $(use_enable doc docs)
199 }
200
201 src_compile() {
202 emake
203
204 if use doc; then
205 doxygen doc/Doxyfile || die "Documentation generation failed"
206 fi
207 }
208
209 src_install() {
210 emake DESTDIR="${D}" install
211
212 # Empty dependency_libs in .la files, bug #386665
213 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
214
215 # Clean up unwanted files
216 rm "${D}/usr/share/doc/${PF}/"{ABOUT-NLS,COPYING} || die "rm failed"
217 dodoc ChangeLog NEWS* README* AUTHORS TESTERS MAINTAINERS HACKING
218
219 if use examples; then
220 insinto /usr/share/doc/${PF}/examples
221 doins examples/README examples/*.c examples/*.h
222 fi
223
224 # FIXME: fixup autoconf bug
225 if ! use doc && [ -d "${D}/usr/share/doc/${PF}/apidocs.html" ]; then
226 rm -fr "${D}/usr/share/doc/${PF}/apidocs.html"
227 fi
228 # end fixup
229
230 UDEV_RULES="/lib/udev/rules.d/70-libgphoto2.rules"
231 CAM_LIST="/usr/$(get_libdir)/libgphoto2/print-camera-list"
232
233 if [ -x "${D}"${CAM_LIST} ]; then
234 # Let print-camera-list find libgphoto2.so
235 export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)"
236 # Let libgphoto2 find its camera-modules
237 export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}"
238
239 einfo "Generating UDEV-rules ..."
240 mkdir -p "${D}"/${UDEV_RULES%/*}
241 echo -e "# do not edit this file, it will be overwritten on update\n#" \
242 > "${D}"/${UDEV_RULES}
243 "${D}"${CAM_LIST} udev-rules version 136 group plugdev >> "${D}"/${UDEV_RULES} \
244 || die "failed to create udev-rules"
245 else
246 eerror "Unable to find print-camera-list"
247 eerror "and therefore unable to generate hotplug usermap."
248 eerror "You will have to manually generate it by running:"
249 eerror " ${CAM_LIST} udev-rules version 136 group plugdev > ${UDEV_RULES}"
250 fi
251
252 }
253
254 pkg_postinst() {
255 elog "Don't forget to add yourself to the plugdev group "
256 elog "if you want to be able to access your camera."
257 local OLD_UDEV_RULES="${ROOT}"etc/udev/rules.d/99-libgphoto2.rules
258 if [[ -f ${OLD_UDEV_RULES} ]]; then
259 rm -f "${OLD_UDEV_RULES}"
260 fi
261 }