Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libgphoto2/
Date: Sun, 28 Feb 2016 16:32:28
Message-Id: 1456677132.893f2a2b6f05a60c3c86666c306bbfb9206b0e24.pacho@gentoo
1 commit: 893f2a2b6f05a60c3c86666c306bbfb9206b0e24
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 16:05:02 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 16:32:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893f2a2b
7
8 media-libs/libgphoto2: Drop old
9
10 Package-Manager: portage-2.2.27
11
12 media-libs/libgphoto2/Manifest | 1 -
13 media-libs/libgphoto2/libgphoto2-2.5.7.ebuild | 216 --------------------------
14 2 files changed, 217 deletions(-)
15
16 diff --git a/media-libs/libgphoto2/Manifest b/media-libs/libgphoto2/Manifest
17 index c2ccc3f..f48bfa2 100644
18 --- a/media-libs/libgphoto2/Manifest
19 +++ b/media-libs/libgphoto2/Manifest
20 @@ -1,3 +1,2 @@
21 -DIST libgphoto2-2.5.7.tar.bz2 6726164 SHA256 7260193277bdb4c319dd8f151224f87deac9fde64cbe5d2eb25d9c19e4d09894 SHA512 eaff704eb4ccfc6f7a2890c6583ece268005d91acbf8c5e192e2ac91e5a2f5f4f6c84b4dfc95773a6e6023fb12cb0e63d75eed8cd4f8a98019069ac6ab4e60f1 WHIRLPOOL 87a2fa5bbff780dce0131bcca90169bc4c273a42f4b99f2d614accba42284c1a6087ff4b1dbc6bdf139b88b95df6e4367404c873ac27b8388e594af2959dd563
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.7.ebuild b/media-libs/libgphoto2/libgphoto2-2.5.7.ebuild
26 deleted file mode 100644
27 index 9cc730a..0000000
28 --- a/media-libs/libgphoto2/libgphoto2-2.5.7.ebuild
29 +++ /dev/null
30 @@ -1,216 +0,0 @@
31 -# Copyright 1999-2015 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 -# http://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 zeroconf"
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 - zeroconf? ( >=net-dns/avahi-0.6.31-r2[mdnsresponder-compat,${MULTILIB_USEDEP}] )
95 - !<sys-fs/udev-175
96 - abi_x86_32? (
97 - !<=app-emulation/emul-linux-x86-medialibs-20140508
98 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
99 - )
100 -"
101 -DEPEND="${RDEPEND}
102 - dev-util/gtk-doc-am
103 - sys-devel/flex
104 - >=sys-devel/gettext-0.14.1
105 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
106 - doc? ( app-doc/doxygen )
107 -"
108 -
109 -MULTILIB_CHOST_TOOLS=(
110 - /usr/bin/gphoto2-port-config
111 - /usr/bin/gphoto2-config
112 -)
113 -
114 -pkg_pretend() {
115 - if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then
116 - einfo "No camera drivers will be built since you did not specify any."
117 - fi
118 -}
119 -
120 -pkg_setup() {
121 - enewgroup plugdev
122 -}
123 -
124 -src_prepare() {
125 - # Handle examples ourselves
126 - sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
127 - || die "examples sed failed"
128 -
129 - # If running eautoreconf
130 - # sed -e 's/sleep 2//' -i m4m/gp-camlibs.m4 || die
131 - sed -e 's/sleep 2//' -i configure || die
132 -}
133 -
134 -multilib_src_configure() {
135 - local cameras
136 - local cam
137 - local cam_warn=no
138 - for cam in ${IUSE_CAMERAS} ; do
139 - if use "cameras_${cam}"; then
140 - cameras="${cameras},${cam}"
141 - else
142 - cam_warn=yes
143 - fi
144 - done
145 -
146 - if [ "${cam_warn}" = "yes" ]; then
147 - [ -z "${cameras}" ] || cameras="${cameras:1}"
148 - einfo "Enabled camera drivers: ${cameras:-none}"
149 - ewarn "Upstream will not support you if you do not compile all camera drivers first"
150 - else
151 - cameras="all"
152 - einfo "Enabled camera drivers: all"
153 - fi
154 -
155 - local myconf
156 - use doc || myconf=( ac_cv_path_DOXYGEN=false )
157 -
158 - # Upstream doesn't default to --enable-option-checking due having another
159 - # configure in libgphoto2_port/ that also needs to be checked on every bump
160 - #
161 - # Serial port uses either lockdev or ttylock, but we don't have ttylock
162 - ECONF_SOURCE=${S} \
163 - econf \
164 - --disable-docs \
165 - --disable-gp2ddb \
166 - $(use_with zeroconf bonjour) \
167 - $(use_enable nls) \
168 - $(use_with exif libexif auto) \
169 - $(use_with gd) \
170 - $(use_with jpeg) \
171 - $(use_enable serial) \
172 - $(use_enable serial lockdev) \
173 - --with-libusb=no \
174 - --with-libusb-1.0=auto \
175 - --disable-ttylock \
176 - --with-camlibs=${cameras} \
177 - --with-doc-dir="${EPREFIX}"/usr/share/doc/${PF} \
178 - --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \
179 - --with-hotplug-doc-dir="${EPREFIX}"/usr/share/doc/${PF}/hotplug \
180 - --with-rpmbuild=$(type -P true) \
181 - udevscriptdir="$(get_udevdir)" \
182 - "${myconf[@]}"
183 -}
184 -
185 -multilib_src_compile() {
186 - default
187 -
188 - if multilib_is_native_abi && use doc; then
189 - doxygen doc/Doxyfile || die "Documentation generation failed"
190 - fi
191 -}
192 -
193 -multilib_src_install_all() {
194 - prune_libtool_files --modules
195 -
196 - # Clean up unwanted files
197 - rm "${ED}/usr/share/doc/${PF}/"{ABOUT-NLS,COPYING} || die "rm failed"
198 - dodoc ChangeLog NEWS* README* AUTHORS TESTERS MAINTAINERS HACKING
199 -
200 - if use examples; then
201 - insinto /usr/share/doc/${PF}/examples
202 - doins examples/README examples/*.c examples/*.h
203 - fi
204 -
205 - # FIXME: fixup autoconf bug #????
206 - if ! use doc && [ -d "${ED}/usr/share/doc/${PF}/apidocs.html" ]; then
207 - rm -fr "${ED}/usr/share/doc/${PF}/apidocs.html"
208 - fi
209 - # end fixup
210 -
211 - local udev_rules cam_list
212 - udev_rules="$(get_udevdir)/rules.d/70-libgphoto2.rules"
213 - cam_list="/usr/$(get_libdir)/libgphoto2/print-camera-list"
214 -
215 - if [ -x "${ED}"${cam_list} ]; then
216 - # Let print-camera-list find libgphoto2.so
217 - export LD_LIBRARY_PATH="${ED}/usr/$(get_libdir)"
218 - # Let libgphoto2 find its camera-modules
219 - export CAMLIBS="${ED}/usr/$(get_libdir)/libgphoto2/${PV}"
220 -
221 - einfo "Generating UDEV-rules ..."
222 - mkdir -p "${ED}"/${udev_rules%/*}
223 - echo -e "# do not edit this file, it will be overwritten on update\n#" \
224 - > "${ED}"/${udev_rules}
225 - "${ED}"${cam_list} udev-rules version 175 group plugdev >> "${ED}"/${udev_rules} \
226 - || die "failed to create udev-rules"
227 - else
228 - eerror "Unable to find print-camera-list"
229 - eerror "and therefore unable to generate hotplug usermap."
230 - eerror "You will have to manually generate it by running:"
231 - eerror " ${cam_list} udev-rules version 175 group plugdev > ${udev_rules}"
232 - fi
233 -
234 -}
235 -
236 -pkg_postinst() {
237 - if ! has_version "sys-auth/consolekit[acl]" && ! has_version "sys-apps/systemd[acl]" ; then
238 - elog "Don't forget to add yourself to the plugdev group "
239 - elog "if you want to be able to access your camera."
240 - fi
241 -
242 - local old_udev_rules="${EROOT}"etc/udev/rules.d/99-libgphoto2.rules
243 - if [[ -f ${old_udev_rules} ]]; then
244 - rm -f "${old_udev_rules}"
245 - fi
246 -}