Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/pysmssend/
Date: Sat, 25 Jun 2016 08:26:46
Message-Id: 1466843190.893d8d8bc73a3dea9c8dfa06fc768597298f6580.mgorny@gentoo
1 commit: 893d8d8bc73a3dea9c8dfa06fc768597298f6580
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 07:46:19 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 08:26:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893d8d8b
7
8 app-misc/pysmssend: Update the live ebuild
9
10 app-misc/pysmssend/pysmssend-9999.ebuild | 46 +++++++++++++++-----------------
11 1 file changed, 22 insertions(+), 24 deletions(-)
12
13 diff --git a/app-misc/pysmssend/pysmssend-9999.ebuild b/app-misc/pysmssend/pysmssend-9999.ebuild
14 index eecb9e3..350d4ae 100644
15 --- a/app-misc/pysmssend/pysmssend-9999.ebuild
16 +++ b/app-misc/pysmssend/pysmssend-9999.ebuild
17 @@ -1,15 +1,14 @@
18 -# Copyright 1999-2012 Gentoo Foundation
19 +# Copyright 1999-2016 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 # $Id$
22
23 -EAPI="3"
24 -PYTHON_DEPEND="2:2.5"
25 -SUPPORT_PYTHON_ABIS="1"
26 -RESTRICT_PYTHON_ABIS="2.4 3.*"
27 +EAPI=5
28 +
29 +PYTHON_COMPAT=( python2_7 )
30 EGIT_REPO_URI="git://github.com/hwoarang/${PN}.git
31 https://github.com/hwoarang/${PN}.git"
32
33 -inherit distutils eutils git-2
34 +inherit distutils-r1 eutils git-r3
35
36 DESCRIPTION="Python Application for sending sms over multiple ISPs"
37 HOMEPAGE="http://pysmssend.silverarrow.org/"
38 @@ -19,36 +18,35 @@ SLOT="0"
39 KEYWORDS=""
40 IUSE="qt4"
41
42 -DEPEND=">=dev-python/mechanize-0.1.9
43 - qt4? ( >=dev-python/PyQt4-4.3[X] )"
44 +DEPEND=">=dev-python/mechanize-0.1.9[${PYTHON_USEDEP}]
45 + qt4? ( >=dev-python/PyQt4-4.3[X,${PYTHON_USEDEP}] )"
46 RDEPEND="${DEPEND}"
47
48 -S="${WORKDIR}/pysmssend"
49 -
50 -PYTHON_MODNAME="pysmssendmod"
51 +python_install() {
52 + distutils-r1_python_install
53
54 -src_prepare() {
55 - python_convert_shebangs -r 2 .
56 + python_doscript pysmssendcmd
57 + if use qt4; then
58 + python_doscript pysmssend
59 + else
60 + ln -s pysmssendcmd "${D}$(python_get_scriptdir)"/pysmssend || die
61 + fi
62 }
63
64 src_install() {
65 - distutils_src_install
66 + distutils-r1_src_install
67 if use qt4; then
68 - insinto /usr/share/${PN}/Icons || die "insinto failed"
69 - doins Icons/* || die "doins failed"
70 - doicon Icons/pysmssend.png || die "doicon failed"
71 - dobin pysmssend pysmssendcmd || die "failed to create executables"
72 - domenu ${PN}.desktop || die "make_desktop_entry failed"
73 + insinto /usr/share/${PN}/Icons
74 + doins Icons/*
75 + doicon Icons/pysmssend.png
76 + domenu ${PN}.desktop
77 else
78 - dobin pysmssendcmd || die "failed to create executable"
79 - dosym pysmssendcmd /usr/bin/pysmssend || die "dosym failed"
80 + dosym pysmssendcmd /usr/bin/pysmssend
81 fi
82 - dodoc README AUTHORS TODO || die "dodoc failed"
83 + dodoc README AUTHORS TODO
84 }
85
86 pkg_postinst() {
87 - distutils_pkg_postinst
88 - elog
89 elog "${PN} can use dev-python/python-gnupg"
90 elog "for keeping your account data encrypted"
91 elog "and secured. If you want to use it,"