summaryrefslogtreecommitdiff
path: root/media-libs/libmtp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /media-libs/libmtp
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r--media-libs/libmtp/Manifest2
-rw-r--r--media-libs/libmtp/libmtp-1.1.17.ebuild71
2 files changed, 73 insertions, 0 deletions
diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest
index 780e42114aa8..2296a61ac229 100644
--- a/media-libs/libmtp/Manifest
+++ b/media-libs/libmtp/Manifest
@@ -1,4 +1,6 @@
DIST libmtp-1.1.16.tar.gz 820516 BLAKE2B debc0755b91f44a878c4a5d4eb8d23c92ac17a80cf59ca13ada80bc1884ee7ab771153252258e33c834aba718a064d9e9a1b4618b3e0abe81bbffdfc7e5a2c88 SHA512 0540271930c1c932c5d06dcdd30142d407a4fadd022b195e8339d614fa3ec9b050605bf013b28ac6451f4dfcddf7add949c928acb1382802ab5fd6311c1628a0
+DIST libmtp-1.1.17.tar.gz 829529 BLAKE2B 7e7393aaf0e988029382d30e260d651ad1166a89a2af32a3da544cdb85eeec1a026eaa40d131096eaec0686b92c4e25663ec5cfbe3916a522ebafd38f107744e SHA512 f2648e259529bd3dfe74a7049a79c4b0042bcaf63cc1fec8b232b66312d62e9620280e4f725312c9ef8207f1f1ceac19f460a0a8772a3cc6c7f0b00ead01add2
EBUILD libmtp-1.1.16.ebuild 1581 BLAKE2B ec0a0cd75ee28b4cf6f9a342ecb17b4132139a644be348eb52ea7361509da804c42ea8e96801088b53819fe60f1b146fbccfef7c2fe231a523425590d2eace05 SHA512 4d7a94107cdd6c220a5f9e739f3c4f399e83109c1a72f2ad3dff93fdf88ac3c9b50bb4ed346359d6da3c6a7303f4f4f5fe131ab7b93e6ebb19e77bc9946a03e1
+EBUILD libmtp-1.1.17.ebuild 1587 BLAKE2B e76c9874b13d9681d48b48237de230b642133a8948fd0e8ae380f197bcfd8f84b29f960d4785ea56000c8b85b1c22e41ef8bfe9c21907a2bc75289c50ea92d29 SHA512 28c04af5d34ac81e2ce4e3d5874c7c71d0579f29890cd0b0221381bdc62cb94e770dda5b3553890d9eaf68b29618abed509e404050bebdae078e262e500316be
EBUILD libmtp-9999.ebuild 1587 BLAKE2B db65f8bbe716f8ecc2b2700c56b430fe239230e2950acca1f6f732d3d92c25e2f2d8a77f55735ece0b31075b1e131d9704f39d1e5865ff60de6edd37791c8218 SHA512 c35a6b0fc775992d78b84e6028c6480e7744e400b1543c25f64936c4b46816aa63104f82602e00f7af25705e9d7832b7f049a36ea6edc739e672ad57649a837c
MISC metadata.xml 394 BLAKE2B bf7cc1e63c4f81e160cdb34f21a1c9412f917c3183d3728da53c11830413ccc23c835d13798fd4c09d5b9d5424d8e711f13a0d3dd39acea3e5370dd26beca355 SHA512 48695d6eda543de340c36dc778647b753cce9000fde558de1932cf8a0533266d2300993c605d2d340c96f665e4782f62aefca45390322c1614a9dbdcbab44e35
diff --git a/media-libs/libmtp/libmtp-1.1.17.ebuild b/media-libs/libmtp/libmtp-1.1.17.ebuild
new file mode 100644
index 000000000000..6bd41c26145b
--- /dev/null
+++ b/media-libs/libmtp/libmtp-1.1.17.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit udev
+
+if [[ ${PV} == 9999* ]]; then
+ EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code"
+ inherit autotools git-r3
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+fi
+
+DESCRIPTION="Implementation of Microsoft's Media Transfer Protocol (MTP)"
+HOMEPAGE="http://libmtp.sourceforge.net/"
+
+LICENSE="LGPL-2.1" # LGPL-2+ and LGPL-2.1+ ?
+SLOT="0/9" # Based on SONAME of libmtp shared library
+IUSE="+crypt doc examples static-libs"
+
+RDEPEND="
+ acct-group/plugdev
+ virtual/libusb:1
+ crypt? ( >=dev-libs/libgcrypt-1.5.4:0= )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ >sys-devel/gettext-0.18.3
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+DOCS=( AUTHORS README TODO )
+
+src_prepare() {
+ default
+
+ # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011)
+ rm ChangeLog || die
+
+ if [[ ${PV} == 9999* ]]; then
+ if [[ -e /usr/share/gettext/config.rpath ]]; then
+ cp /usr/share/gettext/config.rpath . || die
+ else
+ touch config.rpath || die # This is from upstream autogen.sh
+ fi
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable crypt mtpz)
+ $(use_enable doc doxygen)
+ $(use_enable static-libs static)
+ --with-udev="$(get_udevdir)"
+ --with-udev-group=plugdev
+ --with-udev-mode=0660
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ find "${ED}" -name "*.la" -delete || die
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*.{c,h,sh}
+ fi
+}