diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-22 03:03:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-22 03:03:01 +0000 |
commit | c7a7ec40cf928d8fc6a8241aa208272c008c7b4d (patch) | |
tree | 72e31c496e32182b70cfe385fbf03517b43bdddb /media-libs/libmtp | |
parent | 9db1279f804d62da2c61cfb39fc2e62b9faf56dd (diff) |
gentoo auto-resync : 22:11:2024 - 03:03:01
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r-- | media-libs/libmtp/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libmtp/libmtp-1.1.22.ebuild | 87 |
2 files changed, 89 insertions, 0 deletions
diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest index 8074e3408844..d1f5e46123f4 100644 --- a/media-libs/libmtp/Manifest +++ b/media-libs/libmtp/Manifest @@ -1,5 +1,7 @@ AUX libmtp-1.1.19-fix-docdir.patch 462 BLAKE2B 5c23a2b98a138fb6bc51d49c07d556cff17357ce604cc7e11bf652e180d560cfc1befb2957629a5bb9e46876721fa62d186dd7e0a4dc0e95b74f41a3d5620f9c SHA512 50e15c26fe110d551c350ec11e9fc2309f8dfb26039e824e7d59aa1e5b5250e012397ed30278578524eb579132b0206fae8d5c40f387dd71b93ac7fc261ac2e7 DIST libmtp-1.1.21.tar.gz 862703 BLAKE2B c6067d0e9c7e2410b950715d1f02243c835afacfb3eef2f250361d4075d378b2754dceadf5120c9a646413ea826f42291c530590861420f56140458558dccc8e SHA512 510f01f75de37a07c8ce54957a8fb74724538a7cfbdf1a86c201fda68573ef23fa578ff7baf2d9df938703b5776ded4ab1057c617125f3539e594bb5a1f3146f +DIST libmtp-1.1.22.tar.gz 900914 BLAKE2B 5032cbe430bc0ff870f1a88e5b484e6fbe59fd4d7fabd842a1e982b47cd5207e799d2dc1b410b232fc58e2b0c7ba5ca99af71eaaef3beb8849e34a51cf6c3003 SHA512 97094b29073681da0c714b6c4aea2e5f35253a8d06229e60c0af46727413470e9da6be422d873449fc4dec6f9b8efce6d3edc657b9251182cc0a709859e99baa EBUILD libmtp-1.1.21.ebuild 1938 BLAKE2B be6ccb9e7107a503765c540cdce76710cc70e793115bd7e051c55ba4841ddf7ff79a6a34201511b985d81137ce6cef5266a2c7664f19a19ba342277b764386ee SHA512 a233464c9f59aafcf83796aa4435e9806f108a2cfc3bc84737d9bf544a8e69a1a84e7ab904f2e359afd113a3c5e973d5ec0686a461b9312bb406c209c53f75f2 +EBUILD libmtp-1.1.22.ebuild 1878 BLAKE2B 06667177b54842a6dfd403fc7e8f3bd4708bde420fbae981812ace49a11db7e7a86a0effab3730402ab89e24a093f9ebc4ba1532f62fc52ebf962e81aba1300c SHA512 abc65b734ac890a44200c9a4a2276df1f7c7c87ab03b17fa7f24907a06ab42bf94d6096a07e5857531a64d2247d09d4d78af7e9ee1642e20e7486ea31a01f029 EBUILD libmtp-9999.ebuild 1878 BLAKE2B 06667177b54842a6dfd403fc7e8f3bd4708bde420fbae981812ace49a11db7e7a86a0effab3730402ab89e24a093f9ebc4ba1532f62fc52ebf962e81aba1300c SHA512 abc65b734ac890a44200c9a4a2276df1f7c7c87ab03b17fa7f24907a06ab42bf94d6096a07e5857531a64d2247d09d4d78af7e9ee1642e20e7486ea31a01f029 MISC metadata.xml 448 BLAKE2B 4470bd44e384c19a8b2d1f75adfabecb196c26de90006c0929ac3598a8589759749b9f976a55b97ff124f65c405709c6dc83de9fbedfd3de73ff1a0f7ff9f4df SHA512 578112f8279c9b2497323891dbed49f025905004ca24f53f5cc2e62503861add2f0322886ba0762742939388dce7015825f3a69bcd48a41f96c0e7cfbc7e90be diff --git a/media-libs/libmtp/libmtp-1.1.22.ebuild b/media-libs/libmtp/libmtp-1.1.22.ebuild new file mode 100644 index 000000000000..850e3a37b359 --- /dev/null +++ b/media-libs/libmtp/libmtp-1.1.22.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 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 + inherit libtool + SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="Implementation of Microsoft's Media Transfer Protocol (MTP)" +HOMEPAGE="https://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-text/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 + else + # Needed to fix -fuse-ld=* filtering (e.g. lld) + # Can drop this once copyright year in libtool file included + # says >= 2021 (was 2014 at time of writing). + elibtoolize + fi +} + +src_configure() { + local myeconfargs=( + $(use_enable crypt mtpz) + $(use_enable doc doxygen) + $(use_enable static-libs static) + --with-udev="${EPREFIX}$(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 +} |