From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 41725139695 for ; Wed, 7 Jun 2017 21:56:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FA9C21C07C; Wed, 7 Jun 2017 21:56:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 0132D21C07C for ; Wed, 7 Jun 2017 21:56:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FBBA341A5F for ; Wed, 7 Jun 2017 21:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD2C24C92 for ; Wed, 7 Jun 2017 21:56:22 +0000 (UTC) From: "Justin Bronder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Bronder" Message-ID: <1496872570.eb697a36540a1c28319b96b92bf165cc003d53f4.jsbronder@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sabyenc/files/, dev-python/sabyenc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sabyenc/Manifest dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch dev-python/sabyenc/metadata.xml dev-python/sabyenc/sabyenc-3.0.2.ebuild X-VCS-Directories: dev-python/sabyenc/files/ dev-python/sabyenc/ X-VCS-Committer: jsbronder X-VCS-Committer-Name: Justin Bronder X-VCS-Revision: eb697a36540a1c28319b96b92bf165cc003d53f4 X-VCS-Branch: master Date: Wed, 7 Jun 2017 21:56:22 +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: 5dcb1392-9182-4f0c-a56f-c6404bc9c135 X-Archives-Hash: 7cb061a514b2beb8fba665c12000699d commit: eb697a36540a1c28319b96b92bf165cc003d53f4 Author: Justin Bronder gentoo org> AuthorDate: Wed Jun 7 21:31:16 2017 +0000 Commit: Justin Bronder gentoo org> CommitDate: Wed Jun 7 21:56:10 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb697a36 dev-python/sabyenc: initial import Replacment of dev-python/yenc for net-nntp/sabnzbd. Package-Manager: Portage-2.3.5, Repoman-2.3.1 dev-python/sabyenc/Manifest | 1 + .../files/0001-remove-hardcoded-cflags.patch | 25 ++++++++++++++++++++++ dev-python/sabyenc/metadata.xml | 7 ++++++ dev-python/sabyenc/sabyenc-3.0.2.ebuild | 25 ++++++++++++++++++++++ 4 files changed, 58 insertions(+) diff --git a/dev-python/sabyenc/Manifest b/dev-python/sabyenc/Manifest new file mode 100644 index 00000000000..38bcbe670d8 --- /dev/null +++ b/dev-python/sabyenc/Manifest @@ -0,0 +1 @@ +DIST sabyenc-3.0.2.tar.gz 16081020 SHA256 fd49ebf56a391dca0cd5b42c185329218e21e9fb53130cab7111f7e3fed98a42 SHA512 70890421e87f9829b1ceacc11b7d1059f29e7fb1f33470b50088b38e05ce4d2433c9fda40532a4308bfbc1f01f1bde1670fa993ab7601b81133049a1b45798d5 WHIRLPOOL 4e2ed0dbe5ad14d940f556d2b66714c5e2e7db501a0b41189d5115ecd87357130d07796a9f1f74dc86d026061c2e5190e7564f0ca94f7b2ec16b87e5ffd53cc5 diff --git a/dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch b/dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch new file mode 100644 index 00000000000..8ec43317f44 --- /dev/null +++ b/dev-python/sabyenc/files/0001-remove-hardcoded-cflags.patch @@ -0,0 +1,25 @@ +From 3f70d3f955048e31ccac668caa59199d8cb71b50 Mon Sep 17 00:00:00 2001 +From: Justin Bronder +Date: Wed, 7 Jun 2017 17:23:37 -0400 +Subject: [PATCH] remove hardcoded cflags + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index d198eac..e2d8f1a 100644 +--- a/setup.py ++++ b/setup.py +@@ -32,7 +32,7 @@ setup( + url = "https://github.com/sabnzbd/sabnzbd-yenc", + license = "LGPLv3", + package_dir = {'sabyenc': 'src'}, +- ext_modules = [Extension("sabyenc", ["src/sabyenc.c"], extra_compile_args=["-O2"])], ++ ext_modules = [Extension("sabyenc", ["src/sabyenc.c"])], + classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", +-- +2.10.2 + diff --git a/dev-python/sabyenc/metadata.xml b/dev-python/sabyenc/metadata.xml new file mode 100644 index 00000000000..664b1a9c9e0 --- /dev/null +++ b/dev-python/sabyenc/metadata.xml @@ -0,0 +1,7 @@ + + + + + jsbronder@gentoo.org + + diff --git a/dev-python/sabyenc/sabyenc-3.0.2.ebuild b/dev-python/sabyenc/sabyenc-3.0.2.ebuild new file mode 100644 index 00000000000..bb1f9b3cee1 --- /dev/null +++ b/dev-python/sabyenc/sabyenc-3.0.2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: f817d96e09d5ad0b706abaadace1af19614d1acd $ + +EAPI="6" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 vcs-snapshot + +DESCRIPTION="Module providing raw yEnc encoding/decoding for SABnzbd" +HOMEPAGE="https://github.com/sabnzbd/sabyenc/" +SRC_URI="https://github.com/sabnzbd/${PN}/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Remove forced CFLAG on setup.py +PATCHES=( "${FILESDIR}"/0001-remove-hardcoded-cflags.patch ) +DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt ) + +python_test() { + "${PYTHON}" test/test.py || die "Test failed." +}