diff options
author | Sam James <sam@gentoo.org> | 2022-07-02 20:07:23 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-02 20:30:46 +0000 |
commit | ecc781805ca397903ab06ced0d19371fccd80bef (patch) | |
tree | 2e268d8e919dd25b5553c3fc61a24dce67d85f19 /media-libs/libmtp | |
parent | sys-apps/bubblewrap: 0.8.2-r1: default to no suid. (diff) | |
download | gentoo-ecc781805ca397903ab06ced0d19371fccd80bef.tar.gz gentoo-ecc781805ca397903ab06ced0d19371fccd80bef.tar.bz2 gentoo-ecc781805ca397903ab06ced0d19371fccd80bef.zip |
media-libs/libmtp: add 1.1.20
Signed-off-by: Sam James <sam@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.20.ebuild | 85 | ||||
-rw-r--r-- | media-libs/libmtp/libmtp-9999.ebuild | 2 |
3 files changed, 88 insertions, 0 deletions
diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest index b10f5bdacd7d..cbaa77f4298f 100644 --- a/media-libs/libmtp/Manifest +++ b/media-libs/libmtp/Manifest @@ -1 +1,2 @@ DIST libmtp-1.1.19.tar.gz 855810 BLAKE2B 0c570284e06b4f0aacc3edf5d19a0fe3f9ac6598319e8c803db0c69b35541ce7b1ab7cfd211ca701c7c6a9df300b689ccb7341d9d24f053c14411d5e91298849 SHA512 3cd3b0ea5aecb25abf4267e301d5e82ad9f6253bfa5a3bc4c70645d3007c69b014d6407c6703665d987cce3a42bd2219abbf1972e5964b39e9e1329bf9091044 +DIST libmtp-1.1.20.tar.gz 860941 BLAKE2B f30dddf6fb2b4c17e7792412787f65d369f811741e64a77b781a50e70161f0047e53c7e9d9e70621f98482d6fd430c71bd46188df894ef76109c9cb3d9c02f19 SHA512 d0892909eb9b001b727690b991c7effd8c4b78054ba07d06e060979ff2fd78d0d6303d46906d3bc86e4edba6f8a8d3c970eb875372f572ed84019bc717f74018 diff --git a/media-libs/libmtp/libmtp-1.1.20.ebuild b/media-libs/libmtp/libmtp-1.1.20.ebuild new file mode 100644 index 000000000000..5e6a85f46c71 --- /dev/null +++ b/media-libs/libmtp/libmtp-1.1.20.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~riscv ~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/libiconv + virtual/libusb:1 + crypt? ( dev-libs/libgcrypt:0= )" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +DOCS=( AUTHORS README TODO ) + +PATCHES=( + "${FILESDIR}/${PN}-1.1.19-fix-docdir.patch" +) + +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 +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/media-libs/libmtp/libmtp-9999.ebuild b/media-libs/libmtp/libmtp-9999.ebuild index d0c62a952673..ab7478bda189 100644 --- a/media-libs/libmtp/libmtp-9999.ebuild +++ b/media-libs/libmtp/libmtp-9999.ebuild @@ -22,6 +22,7 @@ IUSE="+crypt doc examples static-libs" RDEPEND=" acct-group/plugdev + virtual/libiconv virtual/libusb:1 crypt? ( dev-libs/libgcrypt:0= )" DEPEND="${RDEPEND}" @@ -57,6 +58,7 @@ src_configure() { --with-udev-group=plugdev --with-udev-mode=0660 ) + econf "${myeconfargs[@]}" } |