summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-11-23 13:42:18 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-11-23 13:42:18 +0000
commit69955cb992ba9a5e7a4ddcdec26e6013680809e2 (patch)
tree89a8cbf85a7397b31fdb74b86dd259de97669758 /media-libs/libmtp
parentRemove garbage from top of the udev rule wrt #481666 by Maxim Kammerer (diff)
downloadgentoo-2-69955cb992ba9a5e7a4ddcdec26e6013680809e2.tar.gz
gentoo-2-69955cb992ba9a5e7a4ddcdec26e6013680809e2.tar.bz2
gentoo-2-69955cb992ba9a5e7a4ddcdec26e6013680809e2.zip
Revision bump to propagate the change to the udev rule.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r--media-libs/libmtp/ChangeLog7
-rw-r--r--media-libs/libmtp/libmtp-1.1.6-r1.ebuild65
2 files changed, 71 insertions, 1 deletions
diff --git a/media-libs/libmtp/ChangeLog b/media-libs/libmtp/ChangeLog
index 93e8698cd723..db96d5e0c6bb 100644
--- a/media-libs/libmtp/ChangeLog
+++ b/media-libs/libmtp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-libs/libmtp
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/ChangeLog,v 1.137 2013/11/23 13:40:55 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/ChangeLog,v 1.138 2013/11/23 13:42:18 ssuominen Exp $
+
+*libmtp-1.1.6-r1 (23 Nov 2013)
+
+ 23 Nov 2013; Samuli Suominen <ssuominen@gentoo.org> +libmtp-1.1.6-r1.ebuild:
+ Revision bump to propagate the change to the udev rule.
23 Nov 2013; Samuli Suominen <ssuominen@gentoo.org> libmtp-1.1.6.ebuild,
libmtp-9999.ebuild:
diff --git a/media-libs/libmtp/libmtp-1.1.6-r1.ebuild b/media-libs/libmtp/libmtp-1.1.6-r1.ebuild
new file mode 100644
index 000000000000..ae0d24766ff0
--- /dev/null
+++ b/media-libs/libmtp/libmtp-1.1.6-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/libmtp-1.1.6-r1.ebuild,v 1.1 2013/11/23 13:42:18 ssuominen Exp $
+
+EAPI=5
+
+inherit autotools eutils udev user toolchain-funcs
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/libmtp/code"
+ EGIT_PROJECT="libmtp"
+ inherit git-2
+else
+ KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd"
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)."
+HOMEPAGE="http://libmtp.sourceforge.net/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="+crypt doc examples static-libs"
+
+RDEPEND="virtual/libusb:1
+ crypt? ( dev-libs/libgcrypt )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+DOCS="AUTHORS ChangeLog README TODO"
+
+pkg_setup() {
+ enewgroup plugdev
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fbsdlibusb.patch
+ if [[ ${PV} == *9999* ]]; then
+ touch config.rpath # This is from upstream autogen.sh
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ econf \
+ $(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
+}
+
+src_install() {
+ default
+ prune_libtool_files
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*.{c,h,sh}
+ fi
+
+ sed -i -e '/^Unable to open/d' "${ED}/$(get_udevdir)"/rules.d/*-libmtp.rules || die #481666
+}