diff options
author | 2020-02-03 14:28:03 +0100 | |
---|---|---|
committer | 2020-02-03 14:28:27 +0100 | |
commit | 358d33a12dd75054b1acb64782dfd5cd427e41b6 (patch) | |
tree | 05ce0c5874da81912b7ec808da8abfee23afc607 /media-libs/libmtp | |
parent | app-emulation/docker-compose: 1.25.4 (diff) | |
download | gentoo-358d33a12dd75054b1acb64782dfd5cd427e41b6.tar.gz gentoo-358d33a12dd75054b1acb64782dfd5cd427e41b6.tar.bz2 gentoo-358d33a12dd75054b1acb64782dfd5cd427e41b6.zip |
media-libs/libmtp: Bump to version 1.1.17
Closes: https://bugs.gentoo.org/707994
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r-- | media-libs/libmtp/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libmtp/libmtp-1.1.17.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest index 09c2496b6610..1651a79b4bef 100644 --- a/media-libs/libmtp/Manifest +++ b/media-libs/libmtp/Manifest @@ -1 +1,2 @@ DIST libmtp-1.1.16.tar.gz 820516 BLAKE2B debc0755b91f44a878c4a5d4eb8d23c92ac17a80cf59ca13ada80bc1884ee7ab771153252258e33c834aba718a064d9e9a1b4618b3e0abe81bbffdfc7e5a2c88 SHA512 0540271930c1c932c5d06dcdd30142d407a4fadd022b195e8339d614fa3ec9b050605bf013b28ac6451f4dfcddf7add949c928acb1382802ab5fd6311c1628a0 +DIST libmtp-1.1.17.tar.gz 829529 BLAKE2B 7e7393aaf0e988029382d30e260d651ad1166a89a2af32a3da544cdb85eeec1a026eaa40d131096eaec0686b92c4e25663ec5cfbe3916a522ebafd38f107744e SHA512 f2648e259529bd3dfe74a7049a79c4b0042bcaf63cc1fec8b232b66312d62e9620280e4f725312c9ef8207f1f1ceac19f460a0a8772a3cc6c7f0b00ead01add2 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 +} |