Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyxattr/
Date: Sun, 27 Mar 2016 19:04:15
Message-Id: 1459105442.cd3cb67c1a414f55c654393a5ae0124eb21001f8.soap@gentoo
1 commit: cd3cb67c1a414f55c654393a5ae0124eb21001f8
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 18:55:00 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 19:04:02 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd3cb67c
7
8 dev-python/pyxattr: Add python3_5 support
9
10 Package-Manager: portage-2.2.28
11
12 dev-python/pyxattr/pyxattr-0.5.5-r1.ebuild | 56 ++++++++++++++++++++++++++++++
13 1 file changed, 56 insertions(+)
14
15 diff --git a/dev-python/pyxattr/pyxattr-0.5.5-r1.ebuild b/dev-python/pyxattr/pyxattr-0.5.5-r1.ebuild
16 new file mode 100644
17 index 0000000..06f7f7b
18 --- /dev/null
19 +++ b/dev-python/pyxattr/pyxattr-0.5.5-r1.ebuild
20 @@ -0,0 +1,56 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
27 +
28 +inherit distutils-r1 eutils
29 +
30 +DESCRIPTION="Python interface to xattr"
31 +HOMEPAGE="http://pyxattr.k1024.org/"
32 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
33 + http://pyxattr.k1024.org/downloads/${P}.tar.gz"
34 +
35 +LICENSE="LGPL-2.1"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
38 +IUSE="doc test"
39 +
40 +RDEPEND="sys-apps/attr"
41 +DEPEND="${RDEPEND}
42 + dev-python/setuptools[${PYTHON_USEDEP}]
43 + doc? ( >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] )
44 + test? ( dev-python/nose[${PYTHON_USEDEP}] )"
45 +
46 +python_prepare_all() {
47 + sed -i -e 's:, "-Werror"::' setup.py || die
48 + # Bug 548486
49 + sed -e "s:html_theme = 'default':html_theme = 'classic':" \
50 + -i doc/conf.py || die
51 +
52 + distutils-r1_python_prepare_all
53 +}
54 +
55 +python_compile_all() {
56 + use doc && emake doc
57 +}
58 +
59 +src_test() {
60 + # Perform the tests in /var/tmp; that location is more likely
61 + # to have xattr support than /tmp which is often tmpfs.
62 + export TESTDIR=/var/tmp
63 +
64 + einfo 'Please note that the tests fail if xattrs are not supported'
65 + einfo 'by the filesystem used for /var/tmp.'
66 + distutils-r1_src_test
67 +}
68 +
69 +python_test() {
70 + nosetests || die "Tests fail with ${EPYTHON}"
71 +}
72 +
73 +python_install_all() {
74 + use doc && local HTML_DOCS=( doc/html/. )
75 + distutils-r1_python_install_all
76 +}