1 |
commit: f71f9e257156a178815f6729c85f2542b82bfb52 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 11 19:58:30 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 11 20:01:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f71f9e25 |
7 |
|
8 |
media-libs/libgphoto2: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
media-libs/libgphoto2/Manifest | 1 - |
14 |
media-libs/libgphoto2/libgphoto2-2.5.20.ebuild | 208 ------------------------- |
15 |
2 files changed, 209 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/libgphoto2/Manifest b/media-libs/libgphoto2/Manifest |
18 |
index a086177d4f0..21a70485e87 100644 |
19 |
--- a/media-libs/libgphoto2/Manifest |
20 |
+++ b/media-libs/libgphoto2/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST libgphoto2-2.5.20.tar.bz2 7290524 BLAKE2B 0b616863fa74430f16d96a37955f655620a88fb2df2220fbe9337eb0f61b7babd9d36e1f1d58f45ca617c57feab93e9714228eae54c742385c3e4b0fc3667ff5 SHA512 13364a8fdfe137a21ebf04dfd2b30b20c7fb652e11e1b98cd06176e9a1576ef8f67121523111395100ed39d1d3e6e5d6d458b86d58502f7056a1c06a5623640a |
23 |
DIST libgphoto2-2.5.22.tar.bz2 7169810 BLAKE2B d4947a4b5cf4a6f48ec619e0531ab29a035143031529436f566ade26d11b354328dc70e5d20533a3c023fd8b87afd0db9d85617fea9d06ee433137da6a1d9413 SHA512 8f02c460324c115810f56a9408ecba7aabb801947249c1ee79f0f0a1db1d785d34992508232bad7af112aed2dfc6b213365cee694dd0e7d5edf4072c63fa01cb |
24 |
|
25 |
diff --git a/media-libs/libgphoto2/libgphoto2-2.5.20.ebuild b/media-libs/libgphoto2/libgphoto2-2.5.20.ebuild |
26 |
deleted file mode 100644 |
27 |
index 45a8bc7ef47..00000000000 |
28 |
--- a/media-libs/libgphoto2/libgphoto2-2.5.20.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,208 +0,0 @@ |
31 |
-# Copyright 1999-2019 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-# TODO |
35 |
-# 1. Track upstream bug --disable-docs does not work. |
36 |
-# https://sourceforge.net/p/gphoto/bugs/643/ |
37 |
- |
38 |
-EAPI=6 |
39 |
-inherit eutils multilib multilib-minimal udev |
40 |
- |
41 |
-DESCRIPTION="Library that implements support for numerous digital cameras" |
42 |
-HOMEPAGE="http://www.gphoto.org/" |
43 |
-SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2" |
44 |
- |
45 |
-LICENSE="GPL-2" |
46 |
- |
47 |
-# FIXME: should we also bump for libgphoto2_port.so soname version? |
48 |
-SLOT="0/6" # libgphoto2.so soname version |
49 |
- |
50 |
-KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux" |
51 |
-IUSE="doc examples exif gd jpeg nls serial" |
52 |
- |
53 |
-# By default, drivers for all supported cameras will be compiled. |
54 |
-# If you want to only compile for specific camera(s), set CAMERAS |
55 |
-# environment to a space-separated list (no commas) of drivers that |
56 |
-# you want to build. |
57 |
-IUSE_CAMERAS=" |
58 |
- adc65 agfa_cl20 aox ax203 |
59 |
- barbie |
60 |
- canon casio_qv clicksmart310 |
61 |
- digigr8 digita dimagev dimera3500 directory |
62 |
- enigma13 |
63 |
- fuji |
64 |
- gsmart300 |
65 |
- hp215 |
66 |
- iclick |
67 |
- jamcam jd11 jl2005a jl2005c |
68 |
- kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 |
69 |
- largan lg_gsm |
70 |
- mars mustek |
71 |
- panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 |
72 |
- ricoh ricoh_g3 |
73 |
- samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z |
74 |
- toshiba_pdrm11 topfield tp6801 |
75 |
-" |
76 |
- |
77 |
-for camera in ${IUSE_CAMERAS}; do |
78 |
- IUSE="${IUSE} +cameras_${camera}" |
79 |
-done |
80 |
- |
81 |
-# libgphoto2 actually links to libltdl |
82 |
-RDEPEND=" |
83 |
- acct-group/plugdev |
84 |
- >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}] |
85 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
86 |
- >=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}] |
87 |
- cameras_ax203? ( >=media-libs/gd-2.0.35-r4:=[${MULTILIB_USEDEP}] ) |
88 |
- cameras_st2205? ( >=media-libs/gd-2.0.35-r4:=[${MULTILIB_USEDEP}] ) |
89 |
- exif? ( >=media-libs/libexif-0.6.21-r1:=[${MULTILIB_USEDEP}] ) |
90 |
- gd? ( >=media-libs/gd-2.0.35-r4:=[jpeg=,${MULTILIB_USEDEP}] ) |
91 |
- jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
92 |
- serial? ( >=dev-libs/lockdev-1.0.3.1.2-r2[${MULTILIB_USEDEP}] ) |
93 |
- !<sys-fs/udev-201 |
94 |
-" |
95 |
-DEPEND="${RDEPEND} |
96 |
- dev-util/gtk-doc-am |
97 |
- sys-devel/flex |
98 |
- >=sys-devel/gettext-0.14.1 |
99 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
100 |
- doc? ( app-doc/doxygen ) |
101 |
-" |
102 |
- |
103 |
-MULTILIB_CHOST_TOOLS=( |
104 |
- /usr/bin/gphoto2-port-config |
105 |
- /usr/bin/gphoto2-config |
106 |
-) |
107 |
- |
108 |
-pkg_pretend() { |
109 |
- if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then |
110 |
- einfo "No camera drivers will be built since you did not specify any." |
111 |
- fi |
112 |
-} |
113 |
- |
114 |
-src_prepare() { |
115 |
- default |
116 |
- |
117 |
- # Handle examples ourselves |
118 |
- sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' -i Makefile.am Makefile.in \ |
119 |
- || die "examples sed failed" |
120 |
- |
121 |
- sed -e 's/sleep 2//' -i configure || die |
122 |
-} |
123 |
- |
124 |
-multilib_src_configure() { |
125 |
- local myconf |
126 |
- use doc || myconf=( ac_cv_path_DOXYGEN=false ) |
127 |
- |
128 |
- # Upstream doesn't default to --enable-option-checking due having another |
129 |
- # configure in libgphoto2_port/ that also needs to be checked on every bump |
130 |
- # |
131 |
- # Serial port uses either lockdev or ttylock, but we don't have ttylock |
132 |
- # --with-doc-dir needed to prevent duplicate docs installation, bug #586842 |
133 |
- ECONF_SOURCE=${S} \ |
134 |
- econf \ |
135 |
- --with-doc-dir="${EPREFIX}"/usr/share/doc/${PF} \ |
136 |
- --disable-docs \ |
137 |
- --disable-gp2ddb \ |
138 |
- $(use_enable nls) \ |
139 |
- $(use_with exif libexif auto) \ |
140 |
- $(use_with gd) \ |
141 |
- $(use_with jpeg) \ |
142 |
- $(use_enable serial) \ |
143 |
- $(use_enable serial lockdev) \ |
144 |
- --with-libusb=no \ |
145 |
- --with-libusb-1.0=auto \ |
146 |
- --disable-ttylock \ |
147 |
- --with-camlibs=${cameras} \ |
148 |
- --with-hotplug-doc-dir="${EPREFIX}"/usr/share/doc/${PF}/hotplug \ |
149 |
- --with-rpmbuild=$(type -P true) \ |
150 |
- udevscriptdir="$(get_udevdir)" \ |
151 |
- "${myconf[@]}" |
152 |
-} |
153 |
- |
154 |
-src_configure() { |
155 |
- local cameras |
156 |
- local cam |
157 |
- local cam_warn=no |
158 |
- for cam in ${IUSE_CAMERAS} ; do |
159 |
- if use "cameras_${cam}"; then |
160 |
- cameras="${cameras},${cam}" |
161 |
- else |
162 |
- cam_warn=yes |
163 |
- fi |
164 |
- done |
165 |
- |
166 |
- if [ "${cam_warn}" = "yes" ]; then |
167 |
- [ -z "${cameras}" ] || cameras="${cameras:1}" |
168 |
- einfo "Enabled camera drivers: ${cameras:-none}" |
169 |
- einfo "Upstream will not support you if you do not compile all camera drivers first" |
170 |
- else |
171 |
- cameras="all" |
172 |
- einfo "Enabled camera drivers: all" |
173 |
- fi |
174 |
- |
175 |
- multilib-minimal_src_configure |
176 |
-} |
177 |
- |
178 |
-multilib_src_compile() { |
179 |
- default |
180 |
- |
181 |
- if multilib_is_native_abi && use doc; then |
182 |
- doxygen doc/Doxyfile || die "Documentation generation failed" |
183 |
- fi |
184 |
-} |
185 |
- |
186 |
-multilib_src_install_all() { |
187 |
- prune_libtool_files --modules |
188 |
- |
189 |
- einstalldocs |
190 |
- dodoc TESTERS MAINTAINERS HACKING |
191 |
- |
192 |
- if use examples; then |
193 |
- insinto /usr/share/doc/${PF}/examples |
194 |
- doins examples/README examples/*.c examples/*.h |
195 |
- fi |
196 |
- |
197 |
- # FIXME: fixup autoconf bug #???? |
198 |
- if ! use doc && [ -d "${ED}/usr/share/doc/${PF}/apidocs.html" ]; then |
199 |
- rm -fr "${ED}/usr/share/doc/${PF}/apidocs.html" |
200 |
- fi |
201 |
- # end fixup |
202 |
- |
203 |
- local udev_rules cam_list |
204 |
- udev_rules="$(get_udevdir)/rules.d/70-libgphoto2.rules" |
205 |
- cam_list="/usr/$(get_libdir)/libgphoto2/print-camera-list" |
206 |
- |
207 |
- if [ -x "${ED}"${cam_list} ]; then |
208 |
- # Let print-camera-list find libgphoto2.so |
209 |
- export LD_LIBRARY_PATH="${ED}/usr/$(get_libdir)" |
210 |
- # Let libgphoto2 find its camera-modules |
211 |
- export CAMLIBS="${ED}/usr/$(get_libdir)/libgphoto2/${PV}" |
212 |
- |
213 |
- einfo "Generating UDEV-rules ..." |
214 |
- mkdir -p "${ED}"/${udev_rules%/*} |
215 |
- echo -e "# do not edit this file, it will be overwritten on update\n#" \ |
216 |
- > "${ED}"/${udev_rules} |
217 |
- "${ED}"${cam_list} udev-rules version 201 group plugdev >> "${ED}"/${udev_rules} \ |
218 |
- || die "failed to create udev-rules" |
219 |
- else |
220 |
- eerror "Unable to find print-camera-list" |
221 |
- eerror "and therefore unable to generate hotplug usermap." |
222 |
- eerror "You will have to manually generate it by running:" |
223 |
- eerror " ${cam_list} udev-rules version 201 group plugdev > ${udev_rules}" |
224 |
- fi |
225 |
- |
226 |
-} |
227 |
- |
228 |
-pkg_postinst() { |
229 |
- if ! has_version "sys-auth/consolekit[acl]" && ! has_version "sys-apps/systemd[acl]" && ! has_version "sys-auth/elogind[acl]" ; then |
230 |
- elog "Don't forget to add yourself to the plugdev group " |
231 |
- elog "if you want to be able to access your camera." |
232 |
- fi |
233 |
- |
234 |
- local old_udev_rules="${EROOT}"etc/udev/rules.d/99-libgphoto2.rules |
235 |
- if [[ -f ${old_udev_rules} ]]; then |
236 |
- rm -f "${old_udev_rules}" |
237 |
- fi |
238 |
-} |