public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mrueg:master commit in: dev-python/pythondialog/
Date: Sat, 11 Jul 2015 14:02:30 +0000 (UTC)	[thread overview]
Message-ID: <1436623341.cc2002f6e0ac28f7ea2ebd86caa82ba6e9d1cc73.mrueg@gentoo> (raw)

commit:     cc2002f6e0ac28f7ea2ebd86caa82ba6e9d1cc73
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 11 14:02:21 2015 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer>
+		<email>mrueg@gentoo.org</email>
+		<name>Manuel Rüger</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="sourceforge">pythondialog</remote-id>
+	</upstream>
+</pkgmetadata>

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
+}


             reply	other threads:[~2015-07-11 14:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-11 14:02 Manuel Rüger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-07-11 14:07 [gentoo-commits] dev/mrueg:master commit in: dev-python/pythondialog/ Manuel Rüger
2015-07-11 15:00 Manuel Rüger
2015-10-11 11:44 Manuel Rüger
2015-11-25 21:40 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1436623341.cc2002f6e0ac28f7ea2ebd86caa82ba6e9d1cc73.mrueg@gentoo \
    --to=mrueg@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox