1 |
commit: a05232376b0ec0ca84df3e1be97bf81375304690 |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Mar 6 09:34:14 2017 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 6 15:51:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0523237 |
7 |
|
8 |
net-p2p/torrentinfo: add myself as maintainer, fix tests, add py3.6, pypy{,3} |
9 |
|
10 |
Also update LICENSE to add later GPL versions. |
11 |
|
12 |
Gentoo-Bug: 493682 |
13 |
|
14 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
15 |
|
16 |
.../files/torrentinfo-1.8.6-fix-tests.patch | 23 ++++++++++++++++++ |
17 |
net-p2p/torrentinfo/metadata.xml | 9 +++++++- |
18 |
net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild | 27 ++++++++++++++++++++++ |
19 |
3 files changed, 58 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/net-p2p/torrentinfo/files/torrentinfo-1.8.6-fix-tests.patch b/net-p2p/torrentinfo/files/torrentinfo-1.8.6-fix-tests.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..1c9f5dfae4d |
24 |
--- /dev/null |
25 |
+++ b/net-p2p/torrentinfo/files/torrentinfo-1.8.6-fix-tests.patch |
26 |
@@ -0,0 +1,23 @@ |
27 |
+From 26ad58f68927186a1216ca8ae4596a8132191dcf Mon Sep 17 00:00:00 2001 |
28 |
+From: Louis Sautier <sautier.louis@×××××.com> |
29 |
+Date: Sat, 30 Jan 2016 15:06:35 +0100 |
30 |
+Subject: [PATCH] Fix #15 by making the output predictably sorted |
31 |
+ |
32 |
+Fixes https://github.com/Fuuzetsu/torrentinfo/issues/15 |
33 |
+--- |
34 |
+ src/torrentinfo.py | 2 +- |
35 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/src/torrentinfo.py b/src/torrentinfo.py |
38 |
+index a8ffea4..07b653b 100755 |
39 |
+--- a/src/torrentinfo.py |
40 |
++++ b/src/torrentinfo.py |
41 |
+@@ -569,7 +569,7 @@ def list_files(config, torrent, detailed=False): |
42 |
+ |
43 |
+ config.formatter.string_format(TextFormatter.NORMAL, config, '\n') |
44 |
+ if detailed: |
45 |
+- for kwrd in filestorrent[index]: |
46 |
++ for kwrd in sorted(filestorrent[index], reverse=True): |
47 |
+ start_line(config, kwrd, 3, postfix='\n') |
48 |
+ dump(filestorrent[index][kwrd], config, 4) |
49 |
+ else: |
50 |
|
51 |
diff --git a/net-p2p/torrentinfo/metadata.xml b/net-p2p/torrentinfo/metadata.xml |
52 |
index 24ba7699db2..2054982a1b7 100644 |
53 |
--- a/net-p2p/torrentinfo/metadata.xml |
54 |
+++ b/net-p2p/torrentinfo/metadata.xml |
55 |
@@ -1,7 +1,14 @@ |
56 |
<?xml version="1.0" encoding="UTF-8"?> |
57 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
58 |
<pkgmetadata> |
59 |
-<!-- maintainer-needed --> |
60 |
+ <maintainer type="person"> |
61 |
+ <email>sautier.louis@×××××.com</email> |
62 |
+ <name>Louis Sautier</name> |
63 |
+ </maintainer> |
64 |
+ <maintainer type="project"> |
65 |
+ <email>proxy-maint@g.o</email> |
66 |
+ <name>Proxy Maintainers</name> |
67 |
+ </maintainer> |
68 |
<upstream> |
69 |
<maintainer> |
70 |
<email>fuuzetsu@×××××××××××.uk</email> |
71 |
|
72 |
diff --git a/net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild b/net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild |
73 |
new file mode 100644 |
74 |
index 00000000000..5474e996bcb |
75 |
--- /dev/null |
76 |
+++ b/net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild |
77 |
@@ -0,0 +1,27 @@ |
78 |
+# Copyright 1999-2017 Gentoo Foundation |
79 |
+# Distributed under the terms of the GNU General Public License v2 |
80 |
+ |
81 |
+EAPI=6 |
82 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) |
83 |
+ |
84 |
+inherit distutils-r1 |
85 |
+ |
86 |
+DESCRIPTION="A torrent file parser" |
87 |
+HOMEPAGE="https://github.com/Fuuzetsu/torrentinfo" |
88 |
+SRC_URI="https://github.com/Fuuzetsu/torrentinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
89 |
+ |
90 |
+LICENSE="GPL-2+" |
91 |
+SLOT="0" |
92 |
+KEYWORDS="~amd64 ~x86" |
93 |
+IUSE="test" |
94 |
+ |
95 |
+DEPEND=" |
96 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
97 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
98 |
+" |
99 |
+ |
100 |
+PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" ) |
101 |
+ |
102 |
+python_test() { |
103 |
+ nosetests test/tests.py || die "tests failed with ${EPYTHON}" |
104 |
+} |