Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mrueg:master commit in: dev-python/pythondialog/
Date: Sun, 11 Oct 2015 11:44:42
Message-Id: 1444563854.b17db84efded2f27adee63484a967951e2e1c41b.mrueg@gentoo
1 commit: b17db84efded2f27adee63484a967951e2e1c41b
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 11:44:14 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 11:44:14 2015 +0000
6 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=b17db84e
7
8 dev-python/pythondialog: Revbump to create python2 package
9
10 Upstream provides two separate packages for python2 and
11 python3. Of which the python2 might be the last release.
12 This makes it easier to maintain.
13
14 Thanks to Ian Delany
15
16 Package-Manager: portage-2.2.23
17
18 dev-python/pythondialog/Manifest | 1 -
19 .../pythondialog/pythondialog-3.3.0-r1.ebuild | 60 ----------------------
20 .../pythondialog/pythondialog-3.3.0-r200.ebuild | 38 ++++++++++++++
21 3 files changed, 38 insertions(+), 61 deletions(-)
22
23 diff --git a/dev-python/pythondialog/Manifest b/dev-python/pythondialog/Manifest
24 index faa90ff..6b36552 100644
25 --- a/dev-python/pythondialog/Manifest
26 +++ b/dev-python/pythondialog/Manifest
27 @@ -1,2 +1 @@
28 DIST python2-pythondialog-3.3.0.tar.gz 1906527 SHA256 3e6f593fead98f8a526bc3e306933533236e33729f552f52896ea504f55313fa SHA512 65ce7f9305e20b0c5e0d4588a241e0f14907ecad64f8a6bb3899a2d6e0245fdd848a8c4fb1da3465f03810a1e408fa97c46d9ec082c4ebba0c04a41293a23ea8 WHIRLPOOL 5fc43839b302956a42110e0d2e64bfb9f9b5ccada90cb69579afbb1211b7f117233a25f5bbb970c8b5033413c5c274e27c689e72c83a5887307fa11abc4dc6b8
29 -DIST python3-pythondialog-3.3.0.tar.bz2 1827891 SHA256 e4ace5b09d712992b7327249e375e49608127666679b2ca9fd48141e218ec998 SHA512 b651593f077f6679be030182ac5f14a02d8bad86206c2733ba8b655d346809a32ea391de91e35101d400c55d9e8ecefaf6f1ba25fec036246186e13530f43a1f WHIRLPOOL 267a2ee4215fd53d7faaf88a02ee544e88eafdd5b1f4c45c4ba535fe46dbed41a1ebae72b0dae00fedb30cfb1fcd245e0439077f538d128137e8c8caca6bba70
30
31 diff --git a/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild b/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild
32 deleted file mode 100644
33 index 3213edd..0000000
34 --- a/dev-python/pythondialog/pythondialog-3.3.0-r1.ebuild
35 +++ /dev/null
36 @@ -1,60 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -# $Id$
40 -
41 -EAPI=5
42 -PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy3 )
43 -
44 -inherit distutils-r1
45 -
46 -DESCRIPTION="A Python module for making simple text/console-mode user interfaces"
47 -HOMEPAGE="http://pythondialog.sourceforge.net/ https://pypi.python.org/pypi/python2-pythondialog"
48 -SRC_URI="mirror://sourceforge/pythondialog//${PV}/python3-${P}.tar.bz2 mirror://pypi/${PN:0:1}/python2-${PN}/python2-${P}.tar.gz"
49 -
50 -LICENSE="LGPL-2"
51 -SLOT="0"
52 -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
53 -IUSE="doc examples"
54 -
55 -RDEPEND="dev-util/dialog"
56 -DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
57 -
58 -S=${WORKDIR}
59 -
60 -src_prepare() {
61 - preparation() {
62 - if python_is_python3; then
63 - cp -r -l "${WORKDIR}/${P}" "${BUILD_DIR}" || die
64 - else
65 - cp -r -l "${WORKDIR}/python2-${P}" "${BUILD_DIR}" || die
66 - fi
67 - pushd "${BUILD_DIR}" > /dev/null
68 - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die
69 - popd > /dev/null
70 - }
71 - python_foreach_impl preparation
72 - distutils-r1_python_prepare_all
73 -}
74 -
75 -python_compile() {
76 - if [[ -z $DOC_BUILT ]]; then
77 - pushd "${BUILD_DIR}" > /dev/null || die
78 - use doc && emake -C doc html
79 - DOC_BUILT=1
80 - popd > /dev/null || die
81 - fi
82 -}
83 -
84 -python_install() {
85 - pushd "${BUILD_DIR}" > /dev/null || die
86 - if [[ -z $EXAMPLES_INSTALLED ]]; then
87 - use examples && local EXAMPLES=( examples/. )
88 - EXAMPLES_INSTALLED=1
89 - fi
90 - if [[ -z $DOCS_INSTALLED ]]; then
91 - use doc && local HTML_DOCS=( doc/_build/html/. )
92 - DOCS_INSTALLED=1
93 - fi
94 - distutils-r1_python_install_all
95 - popd > /dev/null || die
96 -}
97
98 diff --git a/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild b/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild
99 new file mode 100644
100 index 0000000..e1f504e
101 --- /dev/null
102 +++ b/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild
103 @@ -0,0 +1,38 @@
104 +# Copyright 1999-2015 Gentoo Foundation
105 +# Distributed under the terms of the GNU General Public License v2
106 +# $Id$
107 +
108 +EAPI=5
109 +PYTHON_COMPAT=( python2_7 pypy )
110 +
111 +inherit distutils-r1
112 +
113 +DESCRIPTION="A Python module for making simple text/console-mode user interfaces"
114 +HOMEPAGE="http://pythondialog.sourceforge.net/ https://pypi.python.org/pypi/python2-pythondialog"
115 +SRC_URI="mirror://pypi/${PN:0:1}/python2-${PN}/python2-${P}.tar.gz"
116 +
117 +LICENSE="LGPL-2"
118 +SLOT="python-2"
119 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
120 +IUSE="doc examples"
121 +
122 +RDEPEND="dev-util/dialog"
123 +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
124 +
125 +S=${WORKDIR}/python2-${P}
126 +
127 +python_prepare_all() {
128 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die
129 + distutils-r1_python_prepare_all
130 +}
131 +
132 +python_compile_all() {
133 + use doc && emake -C doc html
134 +}
135 +
136 +python_install_all() {
137 + use examples && local EXAMPLES=( examples/. )
138 + use doc && local HTML_DOCS=( doc/_build/html/. )
139 +
140 + distutils-r1_python_install_all
141 +}