1 |
eva 08/03/30 21:16:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libgphoto2-2.4.1.ebuild |
5 |
Log: |
6 |
* bump to 2.4.1 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.115 media-libs/libgphoto2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.115&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.115&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?r1=1.114&r2=1.115 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v |
19 |
retrieving revision 1.114 |
20 |
retrieving revision 1.115 |
21 |
diff -u -r1.114 -r1.115 |
22 |
--- ChangeLog 22 Mar 2008 03:08:42 -0000 1.114 |
23 |
+++ ChangeLog 30 Mar 2008 21:16:36 -0000 1.115 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-libs/libgphoto2 |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.114 2008/03/22 03:08:42 dang Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.115 2008/03/30 21:16:36 eva Exp $ |
29 |
+ |
30 |
+*libgphoto2-2.4.1 (30 Mar 2008) |
31 |
+ |
32 |
+ 30 Mar 2008; Gilles Dartiguelongue <eva@g.o> |
33 |
+ +libgphoto2-2.4.1.ebuild: |
34 |
+ bump to 2.4.1 |
35 |
|
36 |
22 Mar 2008; Daniel Gryniewicz <dang@g.o> |
37 |
libgphoto2-2.4.0-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/libgphoto2/libgphoto2-2.4.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libgphoto2-2.4.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 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.1.ebuild,v 1.1 2008/03/30 21:16:36 eva 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 |
# 3. Track upstream bug regarding rpm usage. |
56 |
# http://sourceforge.net/tracker/index.php?func=detail&aid=1643813&group_id=8874&atid=358874 |
57 |
|
58 |
inherit eutils autotools |
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 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
|
68 |
IUSE="nls doc exif hal 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 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 |
|
84 |
for camera in ${IUSE_CAMERAS}; do |
85 |
IUSE="${IUSE} cameras_${camera}" |
86 |
done |
87 |
|
88 |
RDEPEND=">=dev-libs/libusb-0.1.8 |
89 |
exif? ( >=media-libs/libexif-0.5.9 ) |
90 |
hal? ( >=sys-apps/hal-0.5 ) |
91 |
sys-devel/libtool" |
92 |
DEPEND="${RDEPEND} |
93 |
dev-util/pkgconfig |
94 |
doc? ( app-doc/doxygen )" |
95 |
|
96 |
RDEPEND="${RDEPEND} |
97 |
!<sys-fs/udev-114" |
98 |
|
99 |
pkg_setup() { |
100 |
if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then |
101 |
einfo "libgphoto2 supports: all ${IUSE_CAMERAS}" |
102 |
einfo "All camera drivers will be built since you did not specify" |
103 |
einfo "via the CAMERAS variable what camera you use." |
104 |
ewarn "NOTICE: Upstream will not support you if you do not compile all camera drivers first" |
105 |
fi |
106 |
|
107 |
if use cameras_template || use cameras_sipix_blink; then |
108 |
einfo "Upstream considers sipix_blink & template driver as obsolete" |
109 |
fi |
110 |
|
111 |
enewgroup plugdev || die "Error creating plugdev group" |
112 |
} |
113 |
|
114 |
src_unpack() { |
115 |
unpack ${A} |
116 |
cd "${S}" |
117 |
epatch "${FILESDIR}"/${PN}-2.4.0-rpm.patch |
118 |
|
119 |
# Fix pkgconfig file when USE="-exif" |
120 |
use exif || sed -i "s/, @REQUIREMENTS_FOR_LIBEXIF@//" libgphoto2.pc.in |
121 |
} |
122 |
|
123 |
src_compile() { |
124 |
local cameras |
125 |
local cam |
126 |
for cam in ${IUSE_CAMERAS} ; do |
127 |
use "cameras_${cam}" && cameras="${cameras},${cam}" |
128 |
done |
129 |
|
130 |
[ -z "${cameras}" ] \ |
131 |
&& cameras="all" \ |
132 |
|| cameras="${cameras:1}" |
133 |
|
134 |
einfo "Enabled camera drivers: ${cameras}" |
135 |
[ "${cameras}" != "all" ] && \ |
136 |
ewarn "Upstream will not support you if you do not compile all camera drivers first" |
137 |
|
138 |
local myconf |
139 |
|
140 |
use exif \ |
141 |
&& myconf="${myconf} --with-libexif=/usr" \ |
142 |
|| myconf="${myconf} --with-libexif=no" |
143 |
|
144 |
econf \ |
145 |
--with-drivers=${cameras} \ |
146 |
--with-doc-dir=/usr/share/doc/${PF} \ |
147 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
148 |
--with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \ |
149 |
$(use_enable nls) \ |
150 |
--with-rpmbuild=/bin/true \ |
151 |
--disable-docs \ |
152 |
udevscriptdir=/lib/udev \ |
153 |
GTKDOC=/bin/true \ |
154 |
${myconf} || die "econf failed" |
155 |
# FIXME: $(use_enable doc docs) \ |
156 |
|
157 |
emake || die "make failed" |
158 |
} |
159 |
|
160 |
src_install() { |
161 |
emake DESTDIR="${D}" install || die "install failed" |
162 |
|
163 |
# FIXME: fixup autoconf bug |
164 |
if ! use doc && [ -d "${D}/usr/share/doc/${PF}/apidocs.html" ]; then |
165 |
rm -fr "${D}/usr/share/doc/${PF}/apidocs.html" |
166 |
fi |
167 |
# end fixup |
168 |
|
169 |
dodoc ChangeLog NEWS* README AUTHORS TESTERS MAINTAINERS HACKING |
170 |
|
171 |
HAL_FDI="/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi" |
172 |
UDEV_RULES="/etc/udev/rules.d/70-libgphoto2.rules" |
173 |
|
174 |
if [ -x "${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list ]; then |
175 |
# Let print-camera-list find libgphoto2.so |
176 |
export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
177 |
# Let libgphoto2 find its camera-modules |
178 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
179 |
|
180 |
if use hal; then |
181 |
einfo "Generating HAL FDI files ..." |
182 |
mkdir -p "${D}"/${HAL_FDI%/*} |
183 |
"${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> "${D}"/${HAL_FDI} \ |
184 |
|| die "failed to create hal-fdi" |
185 |
fi |
186 |
|
187 |
einfo "Generating UDEV-rules ..." |
188 |
mkdir -p "${D}"/${UDEV_RULES%/*} |
189 |
echo -e "# do not edit this file, it will be overwritten on update\n#" \ |
190 |
> "${D}"/${UDEV_RULES} |
191 |
"${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list \ |
192 |
udev-rules version 0.98 group plugdev \ |
193 |
>> "${D}"/${UDEV_RULES} \ |
194 |
|| die "failed to create udev-rules" |
195 |
else |
196 |
eerror "Unable to find print-camera-list" |
197 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |
198 |
eerror "You will have to manually generate it by running:" |
199 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list udev-rules version 0.98 group plugdev > ${UDEV_RULES}" |
200 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi > ${HAL_FDI}" |
201 |
fi |
202 |
|
203 |
} |
204 |
|
205 |
pkg_postinst() { |
206 |
elog "Don't forget to add yourself to the plugdev group " |
207 |
elog "if you want to be able to access your camera." |
208 |
local OLD_UDEV_RULES="${ROOT}"etc/udev/rules.d/99-libgphoto2.rules |
209 |
if [[ -f ${OLD_UDEV_RULES} ]]; then |
210 |
rm -f "${OLD_UDEV_RULES}" |
211 |
fi |
212 |
} |
213 |
|
214 |
|
215 |
|
216 |
-- |
217 |
gentoo-commits@l.g.o mailing list |