1 |
commit: d46c97519f06e3883e271c4dfa908eaef5a30b55 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 30 20:17:28 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 20:37:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46c9751 |
7 |
|
8 |
media-libs/libgphoto2: Drop old |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
media-libs/libgphoto2/Manifest | 1 - |
13 |
media-libs/libgphoto2/libgphoto2-2.5.9.ebuild | 214 -------------------------- |
14 |
2 files changed, 215 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/libgphoto2/Manifest b/media-libs/libgphoto2/Manifest |
17 |
index a8e7ebc..de5f788 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.8.tar.bz2 6941251 SHA256 031a262e342fae43f724afe66787947ce1fb483277dfe5a8cf1fbe92c58e27b6 SHA512 142957ce3c80e8ac091005ba51b24fc0b199aa46f1a196cb0cfd71e0101d6020f4dd0ec2deb7209ef9ff7b946453b5fd9faf944047c07eb9962d8d52c876b1f4 WHIRLPOOL 0a214237cc646dcf3902e065eae862a4d9b8a9df533e39a5508e41dabd837060a135fac79edb28394ab4638e86513abdeee6ca940ca6fe744833c94432e336c1 |
23 |
-DIST libgphoto2-2.5.9.tar.bz2 6964578 SHA256 cdb0e8e3a93417eb25892c4b03e64c07e93488ce05072edb62e1b70ff3291f32 SHA512 72cfb7969394d767cbfc63829a53c11beb11391afc7c682ae3a3b05159568b5d2a77fe03c1fac5216cb1af5e7b3e6ac78286530bf2b7b4e5b7cfbe8fca05589f WHIRLPOOL aa25b4d2e549d32865d3dd71a19e693db8664d59121af1582c8546616d8bee7931d102d158914cae7c4d954f5dee06c529a0269dc4964d5ab83b4a691969d88b |
24 |
|
25 |
diff --git a/media-libs/libgphoto2/libgphoto2-2.5.9.ebuild b/media-libs/libgphoto2/libgphoto2-2.5.9.ebuild |
26 |
deleted file mode 100644 |
27 |
index b5806a0..0000000 |
28 |
--- a/media-libs/libgphoto2/libgphoto2-2.5.9.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,214 +0,0 @@ |
31 |
-# Copyright 1999-2016 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Id$ |
34 |
- |
35 |
-# TODO |
36 |
-# 1. Track upstream bug --disable-docs does not work. |
37 |
-# https://sourceforge.net/tracker/index.php?func=detail&aid=1643870&group_id=8874&atid=108874 |
38 |
- |
39 |
-EAPI="5" |
40 |
- |
41 |
-inherit eutils multilib multilib-minimal udev user |
42 |
- |
43 |
-DESCRIPTION="Library that implements support for numerous digital cameras" |
44 |
-HOMEPAGE="http://www.gphoto.org/" |
45 |
-SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2" |
46 |
- |
47 |
-LICENSE="GPL-2" |
48 |
- |
49 |
-# FIXME: should we also bump for libgphoto2_port.so soname version? |
50 |
-SLOT="0/6" # libgphoto2.so soname version |
51 |
- |
52 |
-KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux" |
53 |
-IUSE="doc examples exif gd jpeg nls serial" |
54 |
- |
55 |
-# By default, drivers for all supported cameras will be compiled. |
56 |
-# If you want to only compile for specific camera(s), set CAMERAS |
57 |
-# environment to a space-separated list (no commas) of drivers that |
58 |
-# you want to build. |
59 |
-IUSE_CAMERAS=" |
60 |
- adc65 agfa_cl20 aox ax203 |
61 |
- barbie |
62 |
- canon casio_qv clicksmart310 |
63 |
- digigr8 digita dimagev dimera3500 directory |
64 |
- enigma13 |
65 |
- fuji |
66 |
- gsmart300 |
67 |
- hp215 |
68 |
- iclick |
69 |
- jamcam jd11 jl2005a jl2005c |
70 |
- kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 |
71 |
- largan lg_gsm |
72 |
- mars mustek |
73 |
- panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 |
74 |
- ricoh ricoh_g3 |
75 |
- samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z |
76 |
- toshiba_pdrm11 topfield tp6801 |
77 |
-" |
78 |
- |
79 |
-for camera in ${IUSE_CAMERAS}; do |
80 |
- IUSE="${IUSE} cameras_${camera}" |
81 |
-done |
82 |
- |
83 |
-# libgphoto2 actually links to libltdl |
84 |
-RDEPEND=" |
85 |
- >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}] |
86 |
- dev-libs/libltdl:0[${MULTILIB_USEDEP}] |
87 |
- >=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}] |
88 |
- cameras_ax203? ( >=media-libs/gd-2.0.35-r4:=[${MULTILIB_USEDEP}] ) |
89 |
- cameras_st2205? ( >=media-libs/gd-2.0.35-r4:=[${MULTILIB_USEDEP}] ) |
90 |
- exif? ( >=media-libs/libexif-0.6.21-r1:=[${MULTILIB_USEDEP}] ) |
91 |
- gd? ( >=media-libs/gd-2.0.35-r4[jpeg=,${MULTILIB_USEDEP}] ) |
92 |
- jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
93 |
- serial? ( >=dev-libs/lockdev-1.0.3.1.2-r2[${MULTILIB_USEDEP}] ) |
94 |
- !<sys-fs/udev-201 |
95 |
- abi_x86_32? ( |
96 |
- !<=app-emulation/emul-linux-x86-medialibs-20140508 |
97 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] |
98 |
- ) |
99 |
-" |
100 |
-DEPEND="${RDEPEND} |
101 |
- dev-util/gtk-doc-am |
102 |
- sys-devel/flex |
103 |
- >=sys-devel/gettext-0.14.1 |
104 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
105 |
- doc? ( app-doc/doxygen ) |
106 |
-" |
107 |
- |
108 |
-MULTILIB_CHOST_TOOLS=( |
109 |
- /usr/bin/gphoto2-port-config |
110 |
- /usr/bin/gphoto2-config |
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 |
- # Handle examples ourselves |
125 |
- sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' -i Makefile.am Makefile.in \ |
126 |
- || die "examples sed failed" |
127 |
- |
128 |
- # If running eautoreconf |
129 |
- # sed -e 's/sleep 2//' -i m4m/gp-camlibs.m4 || die |
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 |
- ewarn "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-doc-dir="${EPREFIX}"/usr/share/doc/${PF} \ |
176 |
- --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
177 |
- --with-hotplug-doc-dir="${EPREFIX}"/usr/share/doc/${PF}/hotplug \ |
178 |
- --with-rpmbuild=$(type -P true) \ |
179 |
- udevscriptdir="$(get_udevdir)" \ |
180 |
- "${myconf[@]}" |
181 |
-} |
182 |
- |
183 |
-multilib_src_compile() { |
184 |
- default |
185 |
- |
186 |
- if multilib_is_native_abi && use doc; then |
187 |
- doxygen doc/Doxyfile || die "Documentation generation failed" |
188 |
- fi |
189 |
-} |
190 |
- |
191 |
-multilib_src_install_all() { |
192 |
- prune_libtool_files --modules |
193 |
- |
194 |
- # Clean up unwanted files |
195 |
- rm "${ED}/usr/share/doc/${PF}/"{ABOUT-NLS,COPYING} || die "rm failed" |
196 |
- dodoc ChangeLog NEWS* README* AUTHORS TESTERS MAINTAINERS HACKING |
197 |
- |
198 |
- if use examples; then |
199 |
- insinto /usr/share/doc/${PF}/examples |
200 |
- doins examples/README examples/*.c examples/*.h |
201 |
- fi |
202 |
- |
203 |
- # FIXME: fixup autoconf bug #???? |
204 |
- if ! use doc && [ -d "${ED}/usr/share/doc/${PF}/apidocs.html" ]; then |
205 |
- rm -fr "${ED}/usr/share/doc/${PF}/apidocs.html" |
206 |
- fi |
207 |
- # end fixup |
208 |
- |
209 |
- local udev_rules cam_list |
210 |
- udev_rules="$(get_udevdir)/rules.d/70-libgphoto2.rules" |
211 |
- cam_list="/usr/$(get_libdir)/libgphoto2/print-camera-list" |
212 |
- |
213 |
- if [ -x "${ED}"${cam_list} ]; then |
214 |
- # Let print-camera-list find libgphoto2.so |
215 |
- export LD_LIBRARY_PATH="${ED}/usr/$(get_libdir)" |
216 |
- # Let libgphoto2 find its camera-modules |
217 |
- export CAMLIBS="${ED}/usr/$(get_libdir)/libgphoto2/${PV}" |
218 |
- |
219 |
- einfo "Generating UDEV-rules ..." |
220 |
- mkdir -p "${ED}"/${udev_rules%/*} |
221 |
- echo -e "# do not edit this file, it will be overwritten on update\n#" \ |
222 |
- > "${ED}"/${udev_rules} |
223 |
- "${ED}"${cam_list} udev-rules version 201 group plugdev >> "${ED}"/${udev_rules} \ |
224 |
- || die "failed to create udev-rules" |
225 |
- else |
226 |
- eerror "Unable to find print-camera-list" |
227 |
- eerror "and therefore unable to generate hotplug usermap." |
228 |
- eerror "You will have to manually generate it by running:" |
229 |
- eerror " ${cam_list} udev-rules version 201 group plugdev > ${udev_rules}" |
230 |
- fi |
231 |
- |
232 |
-} |
233 |
- |
234 |
-pkg_postinst() { |
235 |
- if ! has_version "sys-auth/consolekit[acl]" && ! has_version "sys-apps/systemd[acl]" ; then |
236 |
- elog "Don't forget to add yourself to the plugdev group " |
237 |
- elog "if you want to be able to access your camera." |
238 |
- fi |
239 |
- |
240 |
- local old_udev_rules="${EROOT}"etc/udev/rules.d/99-libgphoto2.rules |
241 |
- if [[ -f ${old_udev_rules} ]]; then |
242 |
- rm -f "${old_udev_rules}" |
243 |
- fi |
244 |
-} |