1 |
commit: ae5279aa36bc80c9205567a6f422573bb20dc951 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 30 21:10:49 2017 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 30 22:25:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae5279aa |
7 |
|
8 |
media-libs/libgphoto2: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.2 |
11 |
|
12 |
media-libs/libgphoto2/Manifest | 1 - |
13 |
media-libs/libgphoto2/libgphoto2-2.5.10.ebuild | 211 ------------------------- |
14 |
2 files changed, 212 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/libgphoto2/Manifest b/media-libs/libgphoto2/Manifest |
17 |
index 260e4c349ac..6afd5fa40a0 100644 |
18 |
--- a/media-libs/libgphoto2/Manifest |
19 |
+++ b/media-libs/libgphoto2/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
-DIST libgphoto2-2.5.10.tar.bz2 6992591 SHA256 8d8668d432ba595c7466442aec2cf553bdf8782ec171291dbc65717c633a4ef2 SHA512 13f593e09e8428bf72fc783b4ddfd5fc418fcf42ebe17d05b44255458dbac956293fb189c48b609fba5586f39771d148a3541fa484ac51fd68c921f2f05ca18a WHIRLPOOL 9a1a87450cda0321ebc20d3a95d50ae1ab5a6f2a6083346cba15b9d5d4276e6ce1a84a6198f70d3cfa42cfacd3fe004a41dd7dd866047094ae6e9e54520883ef |
22 |
DIST libgphoto2-2.5.12.tar.bz2 6974928 SHA256 b9bb28990fde45ac385e4851a07dbad2e1250404b535b0a3a3b898bb431e4e2e SHA512 aa47e9be64579e0691f58b775ca4d80f3ed65763e6d832cba9fd28603ba2dce4c9b5b3291f38dad399b69393d325896f67f2bde622062ca38b9b138f48f12336 WHIRLPOOL b690d5b55a7dc11cdd04e694e4ec4a44c0b3801c3e778610c32b414fd7e6e89f1ef49ac1c9b5f36a57d35afbb94c08e4e4f8cb9663c4106658eaaeaea1ddf5bd |
23 |
DIST libgphoto2-2.5.14.tar.bz2 6992238 SHA256 d3ce70686fb87d6791b9adcbb6e5693bfbe1cfef9661c23c75eb8a699ec4e274 SHA512 6dd75700e2b2afdf87f7eab4c62fbbe2c42f9154d644edfae25e3d5fbe5ed0894be832cc1367933fc6c113a1cc379d1956fecf108d6ee240935b9d7e2f614688 WHIRLPOOL 45a8cb9380f96da0fb680be95db3c028c07d7cc5f66126609f7a6539a5b5fd7e4edb45d00c43cb9c491e026311cd6161666280eb93ea784538c90297fbc1cc9c |
24 |
|
25 |
diff --git a/media-libs/libgphoto2/libgphoto2-2.5.10.ebuild b/media-libs/libgphoto2/libgphoto2-2.5.10.ebuild |
26 |
deleted file mode 100644 |
27 |
index 1fd7ff3a1a4..00000000000 |
28 |
--- a/media-libs/libgphoto2/libgphoto2-2.5.10.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,211 +0,0 @@ |
31 |
-# Copyright 1999-2017 Gentoo Foundation |
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/tracker/index.php?func=detail&aid=1643870&group_id=8874&atid=108874 |
37 |
- |
38 |
-EAPI=6 |
39 |
-inherit eutils multilib multilib-minimal udev user |
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 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~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 |
- >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}] |
84 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
85 |
- >=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}] |
86 |
- cameras_ax203? ( >=media-libs/gd-2.0.35-r4:=[${MULTILIB_USEDEP}] ) |
87 |
- cameras_st2205? ( >=media-libs/gd-2.0.35-r4:=[${MULTILIB_USEDEP}] ) |
88 |
- exif? ( >=media-libs/libexif-0.6.21-r1:=[${MULTILIB_USEDEP}] ) |
89 |
- gd? ( >=media-libs/gd-2.0.35-r4[jpeg=,${MULTILIB_USEDEP}] ) |
90 |
- jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
91 |
- serial? ( >=dev-libs/lockdev-1.0.3.1.2-r2[${MULTILIB_USEDEP}] ) |
92 |
- !<sys-fs/udev-201 |
93 |
-" |
94 |
-DEPEND="${RDEPEND} |
95 |
- dev-util/gtk-doc-am |
96 |
- sys-devel/flex |
97 |
- >=sys-devel/gettext-0.14.1 |
98 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
99 |
- doc? ( app-doc/doxygen ) |
100 |
-" |
101 |
- |
102 |
-MULTILIB_CHOST_TOOLS=( |
103 |
- /usr/bin/gphoto2-port-config |
104 |
- /usr/bin/gphoto2-config |
105 |
-) |
106 |
- |
107 |
-PATCHES=( |
108 |
- # Fix building with latest jpeg-turbo, bug #586336, fixed in the |
109 |
- # next version |
110 |
- "${FILESDIR}"/${P}-jpeg.patch |
111 |
-) |
112 |
- |
113 |
-pkg_pretend() { |
114 |
- if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then |
115 |
- einfo "No camera drivers will be built since you did not specify any." |
116 |
- fi |
117 |
-} |
118 |
- |
119 |
-pkg_setup() { |
120 |
- enewgroup plugdev |
121 |
-} |
122 |
- |
123 |
-src_prepare() { |
124 |
- default |
125 |
- |
126 |
- # Handle examples ourselves |
127 |
- sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' -i Makefile.am Makefile.in \ |
128 |
- || die "examples sed failed" |
129 |
- |
130 |
- sed -e 's/sleep 2//' -i configure || die |
131 |
-} |
132 |
- |
133 |
-multilib_src_configure() { |
134 |
- local cameras |
135 |
- local cam |
136 |
- local cam_warn=no |
137 |
- for cam in ${IUSE_CAMERAS} ; do |
138 |
- if use "cameras_${cam}"; then |
139 |
- cameras="${cameras},${cam}" |
140 |
- else |
141 |
- cam_warn=yes |
142 |
- fi |
143 |
- done |
144 |
- |
145 |
- if [ "${cam_warn}" = "yes" ]; then |
146 |
- [ -z "${cameras}" ] || cameras="${cameras:1}" |
147 |
- einfo "Enabled camera drivers: ${cameras:-none}" |
148 |
- einfo "Upstream will not support you if you do not compile all camera drivers first" |
149 |
- else |
150 |
- cameras="all" |
151 |
- einfo "Enabled camera drivers: all" |
152 |
- fi |
153 |
- |
154 |
- local myconf |
155 |
- use doc || myconf=( ac_cv_path_DOXYGEN=false ) |
156 |
- |
157 |
- # Upstream doesn't default to --enable-option-checking due having another |
158 |
- # configure in libgphoto2_port/ that also needs to be checked on every bump |
159 |
- # |
160 |
- # Serial port uses either lockdev or ttylock, but we don't have ttylock |
161 |
- ECONF_SOURCE=${S} \ |
162 |
- econf \ |
163 |
- --disable-docs \ |
164 |
- --disable-gp2ddb \ |
165 |
- $(use_enable nls) \ |
166 |
- $(use_with exif libexif auto) \ |
167 |
- $(use_with gd) \ |
168 |
- $(use_with jpeg) \ |
169 |
- $(use_enable serial) \ |
170 |
- $(use_enable serial lockdev) \ |
171 |
- --with-libusb=no \ |
172 |
- --with-libusb-1.0=auto \ |
173 |
- --disable-ttylock \ |
174 |
- --with-camlibs=${cameras} \ |
175 |
- --with-hotplug-doc-dir="${EPREFIX}"/usr/share/doc/${PF}/hotplug \ |
176 |
- --with-rpmbuild=$(type -P true) \ |
177 |
- udevscriptdir="$(get_udevdir)" \ |
178 |
- "${myconf[@]}" |
179 |
-} |
180 |
- |
181 |
-multilib_src_compile() { |
182 |
- default |
183 |
- |
184 |
- if multilib_is_native_abi && use doc; then |
185 |
- doxygen doc/Doxyfile || die "Documentation generation failed" |
186 |
- fi |
187 |
-} |
188 |
- |
189 |
-multilib_src_install_all() { |
190 |
- prune_libtool_files --modules |
191 |
- |
192 |
- einstalldocs |
193 |
- dodoc TESTERS MAINTAINERS HACKING |
194 |
- |
195 |
- if use examples; then |
196 |
- insinto /usr/share/doc/${PF}/examples |
197 |
- doins examples/README examples/*.c examples/*.h |
198 |
- fi |
199 |
- |
200 |
- # FIXME: fixup autoconf bug #???? |
201 |
- if ! use doc && [ -d "${ED}/usr/share/doc/${PF}/apidocs.html" ]; then |
202 |
- rm -fr "${ED}/usr/share/doc/${PF}/apidocs.html" |
203 |
- fi |
204 |
- # end fixup |
205 |
- |
206 |
- local udev_rules cam_list |
207 |
- udev_rules="$(get_udevdir)/rules.d/70-libgphoto2.rules" |
208 |
- cam_list="/usr/$(get_libdir)/libgphoto2/print-camera-list" |
209 |
- |
210 |
- if [ -x "${ED}"${cam_list} ]; then |
211 |
- # Let print-camera-list find libgphoto2.so |
212 |
- export LD_LIBRARY_PATH="${ED}/usr/$(get_libdir)" |
213 |
- # Let libgphoto2 find its camera-modules |
214 |
- export CAMLIBS="${ED}/usr/$(get_libdir)/libgphoto2/${PV}" |
215 |
- |
216 |
- einfo "Generating UDEV-rules ..." |
217 |
- mkdir -p "${ED}"/${udev_rules%/*} |
218 |
- echo -e "# do not edit this file, it will be overwritten on update\n#" \ |
219 |
- > "${ED}"/${udev_rules} |
220 |
- "${ED}"${cam_list} udev-rules version 201 group plugdev >> "${ED}"/${udev_rules} \ |
221 |
- || die "failed to create udev-rules" |
222 |
- else |
223 |
- eerror "Unable to find print-camera-list" |
224 |
- eerror "and therefore unable to generate hotplug usermap." |
225 |
- eerror "You will have to manually generate it by running:" |
226 |
- eerror " ${cam_list} udev-rules version 201 group plugdev > ${udev_rules}" |
227 |
- fi |
228 |
- |
229 |
-} |
230 |
- |
231 |
-pkg_postinst() { |
232 |
- if ! has_version "sys-auth/consolekit[acl]" && ! has_version "sys-apps/systemd[acl]" ; then |
233 |
- elog "Don't forget to add yourself to the plugdev group " |
234 |
- elog "if you want to be able to access your camera." |
235 |
- fi |
236 |
- |
237 |
- local old_udev_rules="${EROOT}"etc/udev/rules.d/99-libgphoto2.rules |
238 |
- if [[ -f ${old_udev_rules} ]]; then |
239 |
- rm -f "${old_udev_rules}" |
240 |
- fi |
241 |
-} |