diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-10-30 15:34:54 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-10-30 15:35:58 +0100 |
commit | f8a43826b49948fbec76d9617b142e5639e799e8 (patch) | |
tree | 217a5d910bcc3a603c7fb79411b435c019a273a7 | |
parent | sys-apps/systemd: remove old (diff) | |
download | gentoo-f8a43826b49948fbec76d9617b142e5639e799e8.tar.gz gentoo-f8a43826b49948fbec76d9617b142e5639e799e8.tar.bz2 gentoo-f8a43826b49948fbec76d9617b142e5639e799e8.zip |
media-libs/libmtp: Bump to version 1.1.16
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r-- | media-libs/libmtp/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libmtp/libmtp-1.1.16.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/media-libs/libmtp/Manifest b/media-libs/libmtp/Manifest index cc861154df1f..1d6a21a150a2 100644 --- a/media-libs/libmtp/Manifest +++ b/media-libs/libmtp/Manifest @@ -1,2 +1,3 @@ DIST libmtp-1.1.14.tar.gz 804354 BLAKE2B 8a5ec431b3a3c1445b3ae62dd0f6ebee36a473ce3d7da07400263434d6e1be49624b8c807bce015f9e55d450f9e25eb2dcf0831c639b97e39cb900ac4d62f81c SHA512 337d259462cf9700fe5a5f09b38f4652045ee71249d54562661362e6d0ec7fe087ab77ec68d443e4fb84839a8ad9dc686c207d723ab47bc1a542dd0a71b294b1 DIST libmtp-1.1.15.tar.gz 805983 BLAKE2B f464c58a9844706ecc066a4a744b525ac6e8020ab80e35b01eab2813562ea1452deb5e6fb4477eb243b6631c24f8bc11887ec35279cb6cd89e1a459aca6b36cb SHA512 c85f47ef4e05d7f5b47d06463ca97c123fa068c4b7369aeba496cb1cfa03f0148b3ba73feed7da96269ba94b76b4b81858ee4bda5af67b0aac3b07fe39b5354a +DIST libmtp-1.1.16.tar.gz 820516 BLAKE2B debc0755b91f44a878c4a5d4eb8d23c92ac17a80cf59ca13ada80bc1884ee7ab771153252258e33c834aba718a064d9e9a1b4618b3e0abe81bbffdfc7e5a2c88 SHA512 0540271930c1c932c5d06dcdd30142d407a4fadd022b195e8339d614fa3ec9b050605bf013b28ac6451f4dfcddf7add949c928acb1382802ab5fd6311c1628a0 diff --git a/media-libs/libmtp/libmtp-1.1.16.ebuild b/media-libs/libmtp/libmtp-1.1.16.ebuild new file mode 100644 index 000000000000..3dff728f84fe --- /dev/null +++ b/media-libs/libmtp/libmtp-1.1.16.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit udev user + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="git://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 ~amd64-fbsd ~x86-fbsd" +fi + +DESCRIPTION="An 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="virtual/libusb:1 + crypt? ( >=dev-libs/libgcrypt-1.5.4:0= )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +DOCS="AUTHORS README TODO" + +pkg_setup() { + enewgroup plugdev +} + +src_prepare() { + default + + # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011) + rm -f ChangeLog + + if [[ ${PV} == 9999* ]]; then + local crpthf=config.rpath + local crpthd=/usr/share/gettext/${crpthf} + if has_version '>sys-devel/gettext-0.18.3' && [[ -e ${crpthd} ]]; then + cp "${crpthd}" . + else + touch ${crpthf} # This is from upstream autogen.sh + fi + eautoreconf + fi +} + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + $(use_enable doc doxygen) + $(use_enable crypt mtpz) + --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 +} |