Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libmtp/
Date: Tue, 27 Mar 2018 06:41:34
Message-Id: 1522132859.1b162785fdd9c30575460b2ad7c8dde3dc26f17d.aballier@gentoo
1 commit: 1b162785fdd9c30575460b2ad7c8dde3dc26f17d
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 27 06:40:44 2018 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 27 06:40:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b162785
7
8 media-libs/libmtp: bump to 1.1.15
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 media-libs/libmtp/Manifest | 1 +
13 media-libs/libmtp/libmtp-1.1.15.ebuild | 70 ++++++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest
17 index 12dc8d8a291..d1dc153a44d 100644
18 --- a/media-libs/libmtp/Manifest
19 +++ b/media-libs/libmtp/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libmtp-1.1.13.tar.gz 801519 BLAKE2B f0452515f83d001a4e7a32528265d46814898fbaff5afd9a66c1a1fd85d78dae1b9ed9c057030849fd8fc0acec5f2ad012c0f098323d3596f6c38d5b01a9603a SHA512 99d5a277806f29f1d27a64a478e344916e8bfc9949a41a807c16d37bd29ec99dc3f36d504cfc6e67f1e91ee932a7cf82f13d4c9fe14b7e34333d9b12b04fff77
22 DIST libmtp-1.1.14.tar.gz 804354 BLAKE2B 8a5ec431b3a3c1445b3ae62dd0f6ebee36a473ce3d7da07400263434d6e1be49624b8c807bce015f9e55d450f9e25eb2dcf0831c639b97e39cb900ac4d62f81c SHA512 337d259462cf9700fe5a5f09b38f4652045ee71249d54562661362e6d0ec7fe087ab77ec68d443e4fb84839a8ad9dc686c207d723ab47bc1a542dd0a71b294b1
23 +DIST libmtp-1.1.15.tar.gz 805983 BLAKE2B f464c58a9844706ecc066a4a744b525ac6e8020ab80e35b01eab2813562ea1452deb5e6fb4477eb243b6631c24f8bc11887ec35279cb6cd89e1a459aca6b36cb SHA512 c85f47ef4e05d7f5b47d06463ca97c123fa068c4b7369aeba496cb1cfa03f0148b3ba73feed7da96269ba94b76b4b81858ee4bda5af67b0aac3b07fe39b5354a
24
25 diff --git a/media-libs/libmtp/libmtp-1.1.15.ebuild b/media-libs/libmtp/libmtp-1.1.15.ebuild
26 new file mode 100644
27 index 00000000000..abcb9e7c7fd
28 --- /dev/null
29 +++ b/media-libs/libmtp/libmtp-1.1.15.ebuild
30 @@ -0,0 +1,70 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit eutils udev user
36 +
37 +if [[ ${PV} == 9999* ]]; then
38 + EGIT_REPO_URI="git://git.code.sf.net/p/${PN}/code"
39 + inherit autotools git-r3
40 +else
41 + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
42 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
43 +fi
44 +
45 +DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)"
46 +HOMEPAGE="http://libmtp.sourceforge.net/"
47 +
48 +LICENSE="LGPL-2.1" # LGPL-2+ and LGPL-2.1+ ?
49 +SLOT="0/9" # Based on SONAME of libmtp shared library
50 +IUSE="+crypt doc examples static-libs"
51 +
52 +RDEPEND="virtual/libusb:1
53 + crypt? ( >=dev-libs/libgcrypt-1.5.4:0= )"
54 +DEPEND="${RDEPEND}
55 + virtual/pkgconfig
56 + doc? ( app-doc/doxygen )"
57 +
58 +DOCS="AUTHORS README TODO"
59 +
60 +pkg_setup() {
61 + enewgroup plugdev
62 +}
63 +
64 +src_prepare() {
65 + default
66 +
67 + # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011)
68 + rm -f ChangeLog
69 +
70 + if [[ ${PV} == 9999* ]]; then
71 + local crpthf=config.rpath
72 + local crpthd=/usr/share/gettext/${crpthf}
73 + if has_version '>sys-devel/gettext-0.18.3' && [[ -e ${crpthd} ]]; then
74 + cp "${crpthd}" .
75 + else
76 + touch ${crpthf} # This is from upstream autogen.sh
77 + fi
78 + eautoreconf
79 + fi
80 +}
81 +
82 +src_configure() {
83 + econf \
84 + $(use_enable static-libs static) \
85 + $(use_enable doc doxygen) \
86 + $(use_enable crypt mtpz) \
87 + --with-udev="$(get_udevdir)" \
88 + --with-udev-group=plugdev \
89 + --with-udev-mode=0660
90 +}
91 +
92 +src_install() {
93 + default
94 + prune_libtool_files --all
95 +
96 + if use examples; then
97 + docinto examples
98 + dodoc examples/*.{c,h,sh}
99 + fi
100 +}