From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A23E9138252 for ; Thu, 12 May 2016 11:40:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B84ED21C043; Thu, 12 May 2016 11:40:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B5921E0833 for ; Thu, 12 May 2016 11:40:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 877BB3409A4 for ; Thu, 12 May 2016 11:40:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9A3A97C for ; Thu, 12 May 2016 11:40:08 +0000 (UTC) From: "Ian Delaney" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ian Delaney" Message-ID: <1463053176.4cf9d73e767e3b0619ede0230e9c7c315dbfadc0.idella4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/subliminal/Manifest media-video/subliminal/subliminal-1.1.1-r1.ebuild X-VCS-Directories: media-video/subliminal/ X-VCS-Committer: idella4 X-VCS-Committer-Name: Ian Delaney X-VCS-Revision: 4cf9d73e767e3b0619ede0230e9c7c315dbfadc0 X-VCS-Branch: master Date: Thu, 12 May 2016 11:40:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7d6a4e3f-320d-408f-8f20-6ff10c1f8bec X-Archives-Hash: d7c77f5a8b838df70432589ea486be35 commit: 4cf9d73e767e3b0619ede0230e9c7c315dbfadc0 Author: Ilya Tumaykin gmail com> AuthorDate: Wed May 11 06:17:16 2016 +0000 Commit: Ian Delaney gentoo org> CommitDate: Thu May 12 11:39:36 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cf9d73e media-video/subliminal: revbump to 1.1.1-r1 Bump EAPI to 6, add missing and fix existing deps, update HOMEPAGE, fetch tarball from GitHub to get tests, make testsuite functional. Package-Manager: portage-2.2.28 Signed-off-by: Ian Delaney gentoo.org> media-video/subliminal/Manifest | 1 + media-video/subliminal/subliminal-1.1.1-r1.ebuild | 62 +++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/media-video/subliminal/Manifest b/media-video/subliminal/Manifest index 9d67508..3f963e7 100644 --- a/media-video/subliminal/Manifest +++ b/media-video/subliminal/Manifest @@ -1 +1,2 @@ +DIST subliminal-1.1.1-r1.tar.gz 4117531 SHA256 fd02eec1206ab1ef0ce83b0e051b3e029d90348f7a06461b9b6cdc681cea7de6 SHA512 b00bb34def5982041b6eec1acba84b0c297ea1b909dc0b9fe7c290c20f0b00e17e19a847987f549a07e5edfe0fee92913f00396cb8abe26c1f86927e027bccf1 WHIRLPOOL 0d95103c6cca1d50d05b3cf3ae113fadf0a294569cac9e55c549357d16f7c77ce408e3914e2a2b9e3a837659924bd1ff47db4f3459c42b4892b823d0fcf87cce DIST subliminal-1.1.1.tar.gz 37871 SHA256 ab50cff2dcdc4c302f11074d22b2aa8b1c12bbd13e81ee7ad362947a18ad3fca SHA512 00f86944daf1054ac57cf90ea34d5d898fd25f9dbf0cecaf5fba7f3a3f8e63e20edb18d62f7a48403a4478c3df5f344c642e82f7e6bcf49625a867164dc7193a WHIRLPOOL 4d1adb859f32c14bce9ef874dc1cd5fd4981cb2d9379dc2ecab9c5198eda667379aff965b21b2b2c6a69c5a320d687f3345d8f37e41e0524c0b609e175b2a792 diff --git a/media-video/subliminal/subliminal-1.1.1-r1.ebuild b/media-video/subliminal/subliminal-1.1.1-r1.ebuild new file mode 100644 index 0000000..1fdb78b --- /dev/null +++ b/media-video/subliminal/subliminal-1.1.1-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="Python library to search and download subtitles" +HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.python.org/pypi/subliminal" +SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${PF}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/guessit-0.9.1[${PYTHON_USEDEP}] + =dev-python/babelfish-0.5.2[${PYTHON_USEDEP}] + >=dev-python/enzyme-0.4.1[${PYTHON_USEDEP}] + >=dev-python/beautifulsoup-4.2.0:4[${PYTHON_USEDEP}] + >=dev-python/requests-2.0.1[${PYTHON_USEDEP}] + >=dev-python/click-4.0[${PYTHON_USEDEP}] + >=dev-python/dogpile-cache-0.5.4[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}] + >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}] + >=dev-python/pysrt-1.0.1[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + >=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + ) +" + +# Tests require network. +RESTRICT=test + +python_prepare_all() { + # Disable code checkers as they require unavailable dependencies. + sed -i -e 's/--\(pep8\|flakes\)//g' pytest.ini || die + sed -i -e "s/'pytest-\(pep8\|flakes\)',//g" setup.py || die + + # Disable unconditional dependency on dev-python/pytest-runner. + sed -i -e "s|'pytest-runner'||g" setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +}