diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-p2p/torrentinfo |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-p2p/torrentinfo')
-rw-r--r-- | net-p2p/torrentinfo/Manifest | 7 | ||||
-rw-r--r-- | net-p2p/torrentinfo/files/torrentinfo-1.8.6-fix-tests.patch | 23 | ||||
-rw-r--r-- | net-p2p/torrentinfo/metadata.xml | 20 | ||||
-rw-r--r-- | net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild | 27 | ||||
-rw-r--r-- | net-p2p/torrentinfo/torrentinfo-1.8.6.ebuild | 23 |
5 files changed, 100 insertions, 0 deletions
diff --git a/net-p2p/torrentinfo/Manifest b/net-p2p/torrentinfo/Manifest new file mode 100644 index 000000000000..3b30615569e7 --- /dev/null +++ b/net-p2p/torrentinfo/Manifest @@ -0,0 +1,7 @@ +AUX torrentinfo-1.8.6-fix-tests.patch 934 SHA256 f1fc8c405283f7a0acedf8470facaffeab1a8b9933b63a5a5906cccd43edbc1d SHA512 d878048fe01bea0260f6b3045e77f88a6fb94ed11e15996fa3389119d8315657f77d2434d2c67b3ab58c83d4741f11c22723f0e9abbd06f4ab0df82cffc1b064 WHIRLPOOL ee127fb839a84aab96a43b0bc4d1f9cc3fc5f193f75088504f2f8db262704dee834af3613bb17055868d15d6902421c124400a8e128f4516da19ecf98e03ad09 +DIST torrentinfo-1.8.6.tar.gz 22232 SHA256 8008d4933ba7e9f75a34318caeaceb58b56d7fd6c7d75fff70acea2716447582 SHA512 7f36f6c80876cbd70ea9e1331195c8a30a6546406f345402d4bec5c58afb9b03a3b60189b8d177a63a7047c3ede7fc18d8fc47ecb1bcbb726dd01b7cb2a6efb2 WHIRLPOOL 9a2acb0a979f518a94e6210cdcf9694b3b9e314d1b3dae0faeabb43fa604b1bfcd3fcc14719342b4e1e2b07f5f66cadfec603f52cf43c88fd8bcd11cee84350d +EBUILD torrentinfo-1.8.6-r1.ebuild 651 SHA256 10505459085fcf6bd24432f30f84e59880cc513ceaaffa8b729200e33e8c805b SHA512 5193fa2291a2fda3a509fa9ec74a83b1a6d8e0a40493fd876f3c71c2279101d00e05f333281e451044ad4ef5cd85deb29332bdf7eef98cd8ce5f7db739f0e797 WHIRLPOOL 5542787f49b472c71e3786856a580b662960ac9fbce0ec86c2cb1c0451ba969fd87a18010325676ec8d54a5b431331ed16439d0eda6db5992f2fe8387e3a86b1 +EBUILD torrentinfo-1.8.6.ebuild 588 SHA256 c2b4136d5fb693c4b670fdebf20b9bf72dffd5a4aac6aadd350838f085daf490 SHA512 d548e58d23b1db0621ee3bd48b2b56ac14a99bdf9c658cb203a9cd9d9962f9d168f94f99bf1bae911a513c195e4cce76c2da6096a1e0175c762055c2f68a2067 WHIRLPOOL 3bc2dcc126adfe13824c8155107234cf0e030880f65a7b6ac5004454df091cc8f8744949b168df8ae0e861801626b4208537e707a55ac1454b1fe9d488bbc901 +MISC ChangeLog 2706 SHA256 24d078e2fc4205696acf393cdd591f92db094d4b95febfdad3e36d587c074b05 SHA512 dc3896d1b55c224e2d3cb2f43a153ad37c6cbede714282ea0f56761bae0f9dbb3c44c6fcc7e9bdae23c390646e0698e5b51d2386cad0df6acc65f4197f8c82f7 WHIRLPOOL 7a9998784fa441d3895a681fba50b5d913f2bb3248bea94ea2b3ce66234dc1f9f56a96f5c8451eba895ea01ec08942d23b74dd20af59f1fc99bdaec0c3312d6f +MISC ChangeLog-2015 3001 SHA256 20d68fc300c23632c184757d48b5556671eef686cbfcba208f71c28dc5b384b2 SHA512 c49ef44a26f57308fb0e75faf78f6b0d8b201637b11f050abd19cfb156fa42b0932981568e98074f952b654b9154585f7e81acdb30bcddc0b56e8c5b9b7b4d45 WHIRLPOOL f4c3077fd4b8227f6aa960d38d43f1a33b6fbcae4c2e485b8d1b87fca4e121adc7b2f877f8c30e9cb63a5df6ace32ab37b6ce1b88149f1f5e1fa1e866bb07617 +MISC metadata.xml 638 SHA256 ad032aa3c972328004bf2bf1a8c5fd61f2be68e295faffed68eed9d0604b531c SHA512 117d1130ffe71504745527604412fbef33d597a921a28f4c354120448454c8e339396f5083d9f756c94a6cec897c2fe8135a2a8211a7ff9c9dc1c4ba8225668b WHIRLPOOL bf4e44dd4a403bd07930d31fc69ba1dcdd9bfbf37c71430d1c2a9047f4b22d74a663d7be776a00bd6d34c70919876f4d788d20cfe89dcafecbc10703fdf28190 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 new file mode 100644 index 000000000000..1c9f5dfae4dc --- /dev/null +++ b/net-p2p/torrentinfo/files/torrentinfo-1.8.6-fix-tests.patch @@ -0,0 +1,23 @@ +From 26ad58f68927186a1216ca8ae4596a8132191dcf Mon Sep 17 00:00:00 2001 +From: Louis Sautier <sautier.louis@gmail.com> +Date: Sat, 30 Jan 2016 15:06:35 +0100 +Subject: [PATCH] Fix #15 by making the output predictably sorted + +Fixes https://github.com/Fuuzetsu/torrentinfo/issues/15 +--- + src/torrentinfo.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/torrentinfo.py b/src/torrentinfo.py +index a8ffea4..07b653b 100755 +--- a/src/torrentinfo.py ++++ b/src/torrentinfo.py +@@ -569,7 +569,7 @@ def list_files(config, torrent, detailed=False): + + config.formatter.string_format(TextFormatter.NORMAL, config, '\n') + if detailed: +- for kwrd in filestorrent[index]: ++ for kwrd in sorted(filestorrent[index], reverse=True): + start_line(config, kwrd, 3, postfix='\n') + dump(filestorrent[index][kwrd], config, 4) + else: diff --git a/net-p2p/torrentinfo/metadata.xml b/net-p2p/torrentinfo/metadata.xml new file mode 100644 index 000000000000..2054982a1b7c --- /dev/null +++ b/net-p2p/torrentinfo/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sautier.louis@gmail.com</email> + <name>Louis Sautier</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <maintainer> + <email>fuuzetsu@fuuzetsu.co.uk</email> + <name>Mateusz Kowalczyk</name> + </maintainer> + <bugs-to>https://github.com/ShanaTsunTsunLove/torrentinfo/issues</bugs-to> + <remote-id type="github">Fuuzetsu/torrentinfo</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild b/net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild new file mode 100644 index 000000000000..5474e996bcb5 --- /dev/null +++ b/net-p2p/torrentinfo/torrentinfo-1.8.6-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="A torrent file parser" +HOMEPAGE="https://github.com/Fuuzetsu/torrentinfo" +SRC_URI="https://github.com/Fuuzetsu/torrentinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" + +PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" ) + +python_test() { + nosetests test/tests.py || die "tests failed with ${EPYTHON}" +} diff --git a/net-p2p/torrentinfo/torrentinfo-1.8.6.ebuild b/net-p2p/torrentinfo/torrentinfo-1.8.6.ebuild new file mode 100644 index 000000000000..fd8cc74b4ddc --- /dev/null +++ b/net-p2p/torrentinfo/torrentinfo-1.8.6.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +DESCRIPTION="A torrent file parser" +HOMEPAGE="https://github.com/Fuuzetsu/torrentinfo" +SRC_URI="https://github.com/Fuuzetsu/torrentinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +python_test() { + # tests sometimes fail, see bug #493682 + nosetests test/tests.py || die "tests failed with ${EPYTHON}" +} |