1 |
commit: 3ce78a257c860f6945d2d37b4bda210eb9e4d4a4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 25 19:16:04 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 25 19:16:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ce78a25 |
7 |
|
8 |
media-libs/libmtp: add 1.1.19 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-libs/libmtp/Manifest | 1 + |
13 |
media-libs/libmtp/libmtp-1.1.19.ebuild | 72 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest |
17 |
index 52cbb5cf764..168cf53153f 100644 |
18 |
--- a/media-libs/libmtp/Manifest |
19 |
+++ b/media-libs/libmtp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libmtp-1.1.18.tar.gz 832463 BLAKE2B 136033e9700fcce6d5092f8f5f896ce40b2ef659d638bd2e432fb7522c1c4e7e930171198ada5c67c0f5dc7c94ed36ec7d2ac8f4faa3bb335d4a8abb032ae2ef SHA512 1a8d503effd83217c339a1aea3a16954d718059edf3110cb2f21cff74cdd1243e7f4880d4e12f8fbdc9a5deed366c4151babe6ecd6f4cf4b7330a27e27bf7cc8 |
22 |
+DIST libmtp-1.1.19.tar.gz 855810 BLAKE2B 0c570284e06b4f0aacc3edf5d19a0fe3f9ac6598319e8c803db0c69b35541ce7b1ab7cfd211ca701c7c6a9df300b689ccb7341d9d24f053c14411d5e91298849 SHA512 3cd3b0ea5aecb25abf4267e301d5e82ad9f6253bfa5a3bc4c70645d3007c69b014d6407c6703665d987cce3a42bd2219abbf1972e5964b39e9e1329bf9091044 |
23 |
|
24 |
diff --git a/media-libs/libmtp/libmtp-1.1.19.ebuild b/media-libs/libmtp/libmtp-1.1.19.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..6a4e3f9455e |
27 |
--- /dev/null |
28 |
+++ b/media-libs/libmtp/libmtp-1.1.19.ebuild |
29 |
@@ -0,0 +1,72 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit udev |
36 |
+ |
37 |
+if [[ ${PV} == 9999* ]]; then |
38 |
+ EGIT_REPO_URI="https://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 ~riscv ~x86" |
43 |
+fi |
44 |
+ |
45 |
+DESCRIPTION="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=" |
53 |
+ acct-group/plugdev |
54 |
+ virtual/libiconv |
55 |
+ virtual/libusb:1 |
56 |
+ crypt? ( >=dev-libs/libgcrypt-1.5.4:0= )" |
57 |
+DEPEND="${RDEPEND}" |
58 |
+BDEPEND=" |
59 |
+ >sys-devel/gettext-0.18.3 |
60 |
+ virtual/pkgconfig |
61 |
+ doc? ( app-doc/doxygen )" |
62 |
+ |
63 |
+DOCS=( AUTHORS README TODO ) |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011) |
69 |
+ rm ChangeLog || die |
70 |
+ |
71 |
+ if [[ ${PV} == 9999* ]]; then |
72 |
+ if [[ -e /usr/share/gettext/config.rpath ]]; then |
73 |
+ cp /usr/share/gettext/config.rpath . || die |
74 |
+ else |
75 |
+ touch config.rpath || die # This is from upstream autogen.sh |
76 |
+ fi |
77 |
+ eautoreconf |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local myeconfargs=( |
83 |
+ $(use_enable crypt mtpz) |
84 |
+ $(use_enable doc doxygen) |
85 |
+ $(use_enable static-libs static) |
86 |
+ --with-udev="$(get_udevdir)" |
87 |
+ --with-udev-group=plugdev |
88 |
+ --with-udev-mode=0660 |
89 |
+ ) |
90 |
+ econf "${myeconfargs[@]}" |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ default |
95 |
+ find "${ED}" -name "*.la" -delete || die |
96 |
+ |
97 |
+ if use examples; then |
98 |
+ docinto examples |
99 |
+ dodoc examples/*.{c,h,sh} |
100 |
+ fi |
101 |
+} |