1 |
eva 07/09/24 22:46:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libgphoto2-2.4.0.ebuild |
5 |
Log: |
6 |
bump to 2.4.0 |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.106 media-libs/libgphoto2/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.106&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?rev=1.106&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/ChangeLog?r1=1.105&r2=1.106 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v |
19 |
retrieving revision 1.105 |
20 |
retrieving revision 1.106 |
21 |
diff -u -r1.105 -r1.106 |
22 |
--- ChangeLog 30 Aug 2007 12:44:30 -0000 1.105 |
23 |
+++ ChangeLog 24 Sep 2007 22:46:35 -0000 1.106 |
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.105 2007/08/30 12:44:30 phreak Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/ChangeLog,v 1.106 2007/09/24 22:46:35 eva Exp $ |
29 |
+ |
30 |
+*libgphoto2-2.4.0 (24 Sep 2007) |
31 |
+ |
32 |
+ 24 Sep 2007; Gilles Dartiguelongue <eva@g.o> |
33 |
+ +files/libgphoto2-2.4.0-as-needed.patch, |
34 |
+ +files/libgphoto2-2.4.0-rpm.patch, +libgphoto2-2.4.0.ebuild: |
35 |
+ bump to 2.4.0 |
36 |
|
37 |
30 Aug 2007; Christian Heim <phreak@g.o> metadata.xml: |
38 |
Removing liquidx from metadata due to his retirement (see #171155 for |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-libs/libgphoto2/libgphoto2-2.4.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.4.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: libgphoto2-2.4.0.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.ebuild,v 1.1 2007/09/24 22:46:35 eva 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 |
AT_M4DIR="${S}/auto-m4 ${S}/m4m" eautoreconf |
126 |
} |
127 |
|
128 |
src_compile() { |
129 |
local cameras |
130 |
local cam |
131 |
for cam in ${IUSE_CAMERAS} ; do |
132 |
use "cameras_${cam}" && cameras="${cameras},${cam}" |
133 |
done |
134 |
|
135 |
[ -z "${cameras}" ] \ |
136 |
&& cameras="all" \ |
137 |
|| cameras="${cameras:1}" |
138 |
|
139 |
einfo "Enabled camera drivers: ${cameras}" |
140 |
[ "${cameras}" != "all" ] && \ |
141 |
ewarn "Upstream will not support you if you do not compile all camera drivers first" |
142 |
|
143 |
local myconf |
144 |
|
145 |
use exif \ |
146 |
&& myconf="${myconf} --with-exif-prefix=/usr" \ |
147 |
|| myconf="${myconf} --without-exif" |
148 |
|
149 |
econf \ |
150 |
--with-drivers=${cameras} \ |
151 |
--with-doc-dir=/usr/share/doc/${PF} \ |
152 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
153 |
--with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \ |
154 |
$(use_enable nls) \ |
155 |
--with-rpmbuild=/bin/true \ |
156 |
--disable-docs \ |
157 |
udevscriptdir=/lib/udev \ |
158 |
GTKDOC=/bin/true \ |
159 |
${myconf} || die "econf failed" |
160 |
# $(use_enable doc docs) \ TODO |
161 |
|
162 |
emake || die "make failed" |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
emake DESTDIR="${D}" install || die "install failed" |
167 |
|
168 |
# fixup autoconf bug TODO |
169 |
if ! use doc && [ -d ${D}/usr/share/doc/${PF}/apidocs.html ]; then |
170 |
rm -fr "${D}/usr/share/doc/${PF}/apidocs.html" |
171 |
fi |
172 |
# end fixup |
173 |
|
174 |
dodoc ChangeLog NEWS* README AUTHORS TESTERS MAINTAINERS HACKING |
175 |
|
176 |
HAL_FDI="/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi" |
177 |
UDEV_RULES="/etc/udev/rules.d/99-libgphoto2.rules" |
178 |
|
179 |
if [ -x "${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list ]; then |
180 |
# Let print-camera-list find libgphoto2.so |
181 |
export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
182 |
# Let libgphoto2 find its camera-modules |
183 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
184 |
|
185 |
if use hal; then |
186 |
einfo "Generating HAL FDI files ..." |
187 |
mkdir -p "${D}"/${HAL_FDI%/*} |
188 |
"${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> "${D}"/${HAL_FDI} \ |
189 |
|| die "failed to create hal-fdi" |
190 |
fi |
191 |
|
192 |
einfo "Generating UDEV-rules ..." |
193 |
mkdir -p "${D}"/${UDEV_RULES%/*} |
194 |
"${D}"/usr/$(get_libdir)/libgphoto2/print-camera-list \ |
195 |
udev-rules version 0.98 group plugdev mode 0660 >> "${D}"/${UDEV_RULES} \ |
196 |
|| die "failed to create udev-rules" |
197 |
else |
198 |
eerror "Unable to find print-camera-list" |
199 |
eerror "and therefore unable to generate hotplug usermap or HAL FDI files." |
200 |
eerror "You will have to manually generate it by running:" |
201 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list udev-rules version 0.98 group plugdev mode 0660 > ${UDEV_RULES}" |
202 |
eerror " /usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi > ${HAL_FDI}" |
203 |
fi |
204 |
|
205 |
} |
206 |
|
207 |
pkg_postinst() { |
208 |
elog "Don't forget to add yourself to the plugdev group " |
209 |
elog "if you want to be able to access your camera." |
210 |
} |
211 |
|
212 |
|
213 |
|
214 |
-- |
215 |
gentoo-commits@g.o mailing list |