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 BABDB138D03 for ; Sat, 11 Jul 2015 14:02:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6999E08CD; Sat, 11 Jul 2015 14:02:34 +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 4519AE08D3 for ; Sat, 11 Jul 2015 14:02:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3B9683409DB for ; Sat, 11 Jul 2015 14:02:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E6943755 for ; Sat, 11 Jul 2015 14:02:30 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1436623341.cc2002f6e0ac28f7ea2ebd86caa82ba6e9d1cc73.mrueg@gentoo> Subject: [gentoo-commits] dev/mrueg:master commit in: dev-python/pythondialog/ X-VCS-Repository: dev/mrueg X-VCS-Files: dev-python/pythondialog/Manifest dev-python/pythondialog/metadata.xml dev-python/pythondialog/pythondialog-3.3.0.ebuild X-VCS-Directories: dev-python/pythondialog/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: cc2002f6e0ac28f7ea2ebd86caa82ba6e9d1cc73 X-VCS-Branch: master Date: Sat, 11 Jul 2015 14:02:30 +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: 8190a97c-989a-4fe9-9b53-efad3d47ea6f X-Archives-Hash: fcac863a73952de7b5ce41e125312345 commit: cc2002f6e0ac28f7ea2ebd86caa82ba6e9d1cc73 Author: Manuel Rüger gentoo org> AuthorDate: Sat Jul 11 14:02:21 2015 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Sat Jul 11 14:02:21 2015 +0000 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=cc2002f6 [dev-python/pythondialog] Add python2 support. Package-Manager: portage-2.2.20 dev-python/pythondialog/Manifest | 2 + dev-python/pythondialog/metadata.xml | 11 ++++ dev-python/pythondialog/pythondialog-3.3.0.ebuild | 72 +++++++++++++++++++++++ 3 files changed, 85 insertions(+) diff --git a/dev-python/pythondialog/Manifest b/dev-python/pythondialog/Manifest new file mode 100644 index 0000000..faa90ff --- /dev/null +++ b/dev-python/pythondialog/Manifest @@ -0,0 +1,2 @@ +DIST python2-pythondialog-3.3.0.tar.gz 1906527 SHA256 3e6f593fead98f8a526bc3e306933533236e33729f552f52896ea504f55313fa SHA512 65ce7f9305e20b0c5e0d4588a241e0f14907ecad64f8a6bb3899a2d6e0245fdd848a8c4fb1da3465f03810a1e408fa97c46d9ec082c4ebba0c04a41293a23ea8 WHIRLPOOL 5fc43839b302956a42110e0d2e64bfb9f9b5ccada90cb69579afbb1211b7f117233a25f5bbb970c8b5033413c5c274e27c689e72c83a5887307fa11abc4dc6b8 +DIST python3-pythondialog-3.3.0.tar.bz2 1827891 SHA256 e4ace5b09d712992b7327249e375e49608127666679b2ca9fd48141e218ec998 SHA512 b651593f077f6679be030182ac5f14a02d8bad86206c2733ba8b655d346809a32ea391de91e35101d400c55d9e8ecefaf6f1ba25fec036246186e13530f43a1f WHIRLPOOL 267a2ee4215fd53d7faaf88a02ee544e88eafdd5b1f4c45c4ba535fe46dbed41a1ebae72b0dae00fedb30cfb1fcd245e0439077f538d128137e8c8caca6bba70 diff --git a/dev-python/pythondialog/metadata.xml b/dev-python/pythondialog/metadata.xml new file mode 100644 index 0000000..8d29f44 --- /dev/null +++ b/dev-python/pythondialog/metadata.xml @@ -0,0 +1,11 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + pythondialog + + diff --git a/dev-python/pythondialog/pythondialog-3.3.0.ebuild b/dev-python/pythondialog/pythondialog-3.3.0.ebuild new file mode 100644 index 0000000..e1f49ce --- /dev/null +++ b/dev-python/pythondialog/pythondialog-3.3.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A Python module for making simple text/console-mode user interfaces" +HOMEPAGE="http://pythondialog.sourceforge.net/ https://pypi.python.org/pypi/python2-pythondialog" +SRC_URI="mirror://sourceforge/pythondialog//${PV}/python3-${P}.tar.bz2 mirror://pypi/${PN:0:1}/python2-${PN}/python2-${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="doc examples" + +RDEPEND="dev-util/dialog" +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S=${WORKDIR} + +src_prepare() { + preparation() { + if python_is_python3; then + cp -r -l "${WORKDIR}/${P}" "${BUILD_DIR}" || die + pushd "${BUILD_DIR}" > /dev/null + else + cp -r -l "${WORKDIR}/python2-${P}" "${BUILD_DIR}" || die + pushd "${BUILD_DIR}" > /dev/null + fi + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die + popd > /dev/null + distutils-r1_python_prepare + } + python_foreach_impl preparation + distutils-r1_python_prepare_all +} + +src_compile() { + compile () { + if [[ -z $DOC_BUILT ]]; then + use doc && emake -C doc html + export DOC_BUILT=1 + fi + distutils-r1_python_compile + } + python_foreach_impl run_in_build_dir compile +} + +src_install() { + install () { + if [[ -z $EXAMPLES_INSTALLED ]]; then + use examples && local EXAMPLES=( examples/. ) + export EXAMPLES_INSTALLED=1 + fi + if [[ -z $DOCS_INSTALLED ]]; then + use doc && local HTML_DOCS=( doc/_build/html/. ) + export DOCS_INSTALLED=1 + fi + distutils-r1_python_install + distutils-r1_python_install_all + } + python_foreach_impl run_in_build_dir install +} + +run_in_build_dir() { + pushd "${BUILD_DIR}" > /dev/null || die + "$@" + popd > /dev/null || die +}