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 66B1458973 for ; Mon, 1 Feb 2016 15:44:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C1CFE0870; Mon, 1 Feb 2016 15:44:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 167C0E086F for ; Mon, 1 Feb 2016 15:44:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6FE1340D65 for ; Mon, 1 Feb 2016 15:44:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2254A8E2 for ; Mon, 1 Feb 2016 15:44:27 +0000 (UTC) From: "Justin Lecher" 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 Lecher" Message-ID: <1454341460.35a2a3ea05950687bec38ae26b83df0681c676e9.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mimeparse/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mimeparse/Manifest dev-python/mimeparse/mimeparse-1.5.ebuild X-VCS-Directories: dev-python/mimeparse/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 35a2a3ea05950687bec38ae26b83df0681c676e9 X-VCS-Branch: master Date: Mon, 1 Feb 2016 15:44:27 +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: fd9fcb66-0c2b-4eed-9220-543bb343d94f X-Archives-Hash: 084189972a234a0543db5ecd16624824 commit: 35a2a3ea05950687bec38ae26b83df0681c676e9 Author: Justin Lecher gentoo org> AuthorDate: Mon Feb 1 15:32:26 2016 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Feb 1 15:44:20 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35a2a3ea dev-python/mimeparse: Version Bump Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher gentoo.org> dev-python/mimeparse/Manifest | 1 + dev-python/mimeparse/mimeparse-1.5.ebuild | 49 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-python/mimeparse/Manifest b/dev-python/mimeparse/Manifest index 70a6600..451d25f 100644 --- a/dev-python/mimeparse/Manifest +++ b/dev-python/mimeparse/Manifest @@ -1 +1,2 @@ DIST python-mimeparse-0.1.4.tar.gz 5228 SHA256 3c69a21e37e77f754e6fc09ebda70acd92c90d8a58f29a41cc0248351378ddc3 SHA512 c8eeb298773a0eb36512b1d9a46dfc85423c0dab10b85ed94284bf1bf8dba8c34aeccefd8b6a187434789d5a160ab5d4af81659dd1808ea02078cc2b168e10b3 WHIRLPOOL f83328743b16ae46263e05055d6400617b7858e11837ce892919e26a36348650122b78ee366125a1793b20fa71c641b3606bf834d2936f98dab65b89b740385b +DIST python-mimeparse-1.5.tar.gz 5827 SHA256 9518ff1576d60e99f310116711beda6974f18caa3deb01c73d25bab409408878 SHA512 799b40c0128f22949869bc55f618b46f022bf937cd59be21343dab3d3d977cc24d84744dcbd23da4efb135e940a1373f064ec6e56e8bd4188fa54a3107d2718f WHIRLPOOL b9c9748c24ff931c2c3a2ae4da088818f9a7018be6450783c3ac0ff533e7292b23a5e94cff976b3209003a481240a5a4af65c7d6b81753b80e200b0fc5a0c03d diff --git a/dev-python/mimeparse/mimeparse-1.5.ebuild b/dev-python/mimeparse/mimeparse-1.5.ebuild new file mode 100644 index 0000000..0d1ed5a --- /dev/null +++ b/dev-python/mimeparse/mimeparse-1.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) + +inherit distutils-r1 + +MY_PN="python-${PN}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Basic functions for handling mime-types in python" +HOMEPAGE=" + https://code.google.com/p/mimeparse + https://github.com/dbtsai/python-mimeparse" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +RDEPEND="" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +python_test() { + "${PYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + if [[ ${EPYTHON} == pypy ]]; then + local pyver=2.7 + elif [[ ${EPYTHON} == pypy3 ]]; then + local pyver=3.2 + else + local pyver=${EPYTHON#python} + fi + python_export PYTHON_SITEDIR + + # Previous versions were just called 'mimeparse' + ln -sf python_mimeparse-${PV}-py${pyver}.egg-info \ + "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die +}