Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cangjie/
Date: Tue, 04 Sep 2018 12:33:55
Message-Id: 1536064182.7b9489a6d3a54a3ee3e20d7b0d8cbb458da1872f.hattya@gentoo
1 commit: 7b9489a6d3a54a3ee3e20d7b0d8cbb458da1872f
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 4 12:29:42 2018 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 4 12:29:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b9489a6
7
8 dev-python/cangjie: tidy
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-python/cangjie/cangjie-1.2-r1.ebuild | 28 ++++++++++++----------------
13 dev-python/cangjie/metadata.xml | 14 +++++++-------
14 2 files changed, 19 insertions(+), 23 deletions(-)
15
16 diff --git a/dev-python/cangjie/cangjie-1.2-r1.ebuild b/dev-python/cangjie/cangjie-1.2-r1.ebuild
17 index d3daf09ed18..2c974fae5dd 100644
18 --- a/dev-python/cangjie/cangjie-1.2-r1.ebuild
19 +++ b/dev-python/cangjie/cangjie-1.2-r1.ebuild
20 @@ -1,15 +1,14 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 +# Copyright 1999-2018 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 -
27 +EAPI="6"
28 PYTHON_COMPAT=( python{3_4,3_5,3_6} )
29
30 inherit autotools python-r1
31
32 -DESCRIPTION="The Python bindings to libcangjie"
33 -HOMEPAGE="http://cangjians.github.io"
34 -SRC_URI="https://github.com/Cangjians/pycangjie/releases/download/v${PV}/cangjie-${PV}.tar.xz"
35 +DESCRIPTION="Python wrapper for libcangjie"
36 +HOMEPAGE="http://cangjians.github.io/"
37 +SRC_URI="https://github.com/Cangjians/py${PN}/releases/download/v${PV}/${P#py}.tar.xz"
38
39 LICENSE="LGPL-3+"
40 SLOT="0"
41 @@ -17,15 +16,13 @@ KEYWORDS="amd64 x86"
42 IUSE=""
43 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
44
45 -RDEPEND="
46 - app-i18n/libcangjie
47 - ${PYTHON_DEPS}"
48 -DEPEND="
49 - ${RDEPEND}
50 +RDEPEND="${PYTHON_DEPS}
51 + app-i18n/libcangjie"
52 +DEPEND="${RDEPEND}
53 dev-python/cython[${PYTHON_USEDEP}]
54 virtual/pkgconfig"
55
56 -PATCHES=( "${FILESDIR}/${P}-cython-022.patch" )
57 +PATCHES=( "${FILESDIR}"/${P}-cython-022.patch )
58
59 src_prepare() {
60 default
61 @@ -33,10 +30,10 @@ src_prepare() {
62 }
63
64 src_configure() {
65 - myeconf() {
66 - ECONF_SOURCE="${S}" econf PYTHON="${PYTHON}"
67 + python_configure() {
68 + ECONF_SOURCE="${S}" econf
69 }
70 - python_foreach_impl run_in_build_dir myeconf
71 + python_foreach_impl run_in_build_dir python_configure
72 }
73
74 src_compile() {
75 @@ -51,6 +48,5 @@ src_install() {
76 python_foreach_impl run_in_build_dir default
77 einstalldocs
78
79 - # package only installs python modules
80 find "${D}" -name '*.la' -delete || die
81 }
82
83 diff --git a/dev-python/cangjie/metadata.xml b/dev-python/cangjie/metadata.xml
84 index f725cd5af33..5249303a03c 100644
85 --- a/dev-python/cangjie/metadata.xml
86 +++ b/dev-python/cangjie/metadata.xml
87 @@ -1,11 +1,11 @@
88 <?xml version="1.0" encoding="UTF-8"?>
89 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
90 <pkgmetadata>
91 - <maintainer type="project">
92 - <email>cjk@g.o</email>
93 - <name>Cjk</name>
94 - </maintainer>
95 - <upstream>
96 - <remote-id type="github">Cangjians/pycangjie</remote-id>
97 - </upstream>
98 + <maintainer type="project">
99 + <email>cjk@g.o</email>
100 + <name>Cjk</name>
101 + </maintainer>
102 + <upstream>
103 + <remote-id type="github">Cangjians/pycangjie</remote-id>
104 + </upstream>
105 </pkgmetadata>