Gentoo Archives: gentoo-commits

From: Randall Vasquez <ran.dall@××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/anyascii/
Date: Sat, 26 Nov 2022 20:39:16
Message-Id: 1669494828.1012de5930754592b2878be71bd77f41666102b3.ran.dall@gentoo
1 commit: 1012de5930754592b2878be71bd77f41666102b3
2 Author: Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
3 AuthorDate: Sat Nov 26 20:33:48 2022 +0000
4 Commit: Randall Vasquez <ran.dall <AT> icloud <DOT> com>
5 CommitDate: Sat Nov 26 20:33:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1012de59
7
8 dev-python/anyascii: fix and refactor ebuilds
9
10 Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>
11
12 dev-python/anyascii/Manifest | 2 +-
13 dev-python/anyascii/anyascii-0.3.1.ebuild | 45 ++++++++++++++++++++++--------
14 dev-python/anyascii/anyascii-9999.ebuild | 46 +++++++++++++++++++++++++++++++
15 dev-python/anyascii/metadata.xml | 11 +++++++-
16 4 files changed, 90 insertions(+), 14 deletions(-)
17
18 diff --git a/dev-python/anyascii/Manifest b/dev-python/anyascii/Manifest
19 index 2181622c8..47730721f 100644
20 --- a/dev-python/anyascii/Manifest
21 +++ b/dev-python/anyascii/Manifest
22 @@ -1 +1 @@
23 -DIST anyascii-0.3.1.tar.gz 8943636 BLAKE2B 0659ee933bb43e72f39106b799f03524f0a6e4d89b312aae497c62a43107984f6862a02603b82c08fbe2697a1f3835cad005979974df8d719215bd08d2ed0b6e SHA512 4f836dcb09bfec55b40068c962ebda535c7c7ab37ad0ce71021bedc0248f3a70ae46398df033704a3944cf9d645ac9aa03f4e8764791d5f576eacd449f426815
24 +DIST anyascii-0.3.1.tar.gz 212676 BLAKE2B fcb2c637a94308a8b144442012a29728a62738eff31e0c3f5db4adfea859868061215a5c045da0828e3783b44148b697ef73ab250780426b4428b2782d5f1168 SHA512 f6e6ef9bb48622bf5c6854551413ba97e90943e72c896e2dd4c43eed7e9aef731bd6fe76f2816f8a86bfa04de7a89c7188ead349499f055d8d243522e79ddde6
25
26 diff --git a/dev-python/anyascii/anyascii-0.3.1.ebuild b/dev-python/anyascii/anyascii-0.3.1.ebuild
27 index bb1baf0b1..bf309d69b 100644
28 --- a/dev-python/anyascii/anyascii-0.3.1.ebuild
29 +++ b/dev-python/anyascii/anyascii-0.3.1.ebuild
30 @@ -1,25 +1,46 @@
31 -# Copyright 1999-2022 Gentoo Authors
32 +# Copyright 2022 Gentoo Authors
33 # Distributed under the terms of the GNU General Public License v2
34
35 EAPI=8
36
37 -PYTHON_COMPAT=( python3_{8..11} ) # pypy3 )
38 -# DISTUTILS_USE_PEP517=setuptools
39 -# inherit distutils-r1
40 +DISTUTILS_USE_PEP517=flit
41 +PYTHON_COMPAT=(python3_{8..11})
42 inherit distutils-r1
43
44 DESCRIPTION="Unicode to ASCII transliteration"
45 -HOMEPAGE="https://github.com/anyascii/anyascii/"
46 -SRC_URI="https://github.com/anyascii/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +HOMEPAGE="
48 + https://pypi.org/project/anyascii/
49 +"
50 +
51 +if [[ ${PV} == *9999 ]]; then
52 + inherit git-r3
53 + EGIT_REPO_URI="https://github.com/anyascii/anyascii.git"
54 +else
55 + SRC_URI="https://files.pythonhosted.org/packages/source/a/anyascii/${P}.tar.gz"
56 + KEYWORDS="~amd64 ~arm64"
57 +fi
58
59 LICENSE="ISC"
60 -KEYWORDS="~amd64"
61 SLOT="0"
62
63 -DEPEND="
64 - ${PYTHON_DEPS}
65 -"
66 +distutils_enable_tests pytest
67
68 -S=${WORKDIR}/${P}/impl/python
69 +src_compile() {
70 + if [[ ${PV} == *9999 ]]; then
71 + pushd "${S}/impl/python" || die
72 + distutils-r1_src_compile
73 + popd || die
74 + else
75 + distutils-r1_src_compile
76 + fi
77 +}
78
79 -distutils_enable_tests pytest
80 +src_install() {
81 + if [[ ${PV} == *9999 ]]; then
82 + pushd "${S}/impl/python" || die
83 + distutils-r1_src_install
84 + popd || die
85 + else
86 + distutils-r1_src_install
87 + fi
88 +}
89
90 diff --git a/dev-python/anyascii/anyascii-9999.ebuild b/dev-python/anyascii/anyascii-9999.ebuild
91 new file mode 100644
92 index 000000000..bf309d69b
93 --- /dev/null
94 +++ b/dev-python/anyascii/anyascii-9999.ebuild
95 @@ -0,0 +1,46 @@
96 +# Copyright 2022 Gentoo Authors
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI=8
100 +
101 +DISTUTILS_USE_PEP517=flit
102 +PYTHON_COMPAT=(python3_{8..11})
103 +inherit distutils-r1
104 +
105 +DESCRIPTION="Unicode to ASCII transliteration"
106 +HOMEPAGE="
107 + https://pypi.org/project/anyascii/
108 +"
109 +
110 +if [[ ${PV} == *9999 ]]; then
111 + inherit git-r3
112 + EGIT_REPO_URI="https://github.com/anyascii/anyascii.git"
113 +else
114 + SRC_URI="https://files.pythonhosted.org/packages/source/a/anyascii/${P}.tar.gz"
115 + KEYWORDS="~amd64 ~arm64"
116 +fi
117 +
118 +LICENSE="ISC"
119 +SLOT="0"
120 +
121 +distutils_enable_tests pytest
122 +
123 +src_compile() {
124 + if [[ ${PV} == *9999 ]]; then
125 + pushd "${S}/impl/python" || die
126 + distutils-r1_src_compile
127 + popd || die
128 + else
129 + distutils-r1_src_compile
130 + fi
131 +}
132 +
133 +src_install() {
134 + if [[ ${PV} == *9999 ]]; then
135 + pushd "${S}/impl/python" || die
136 + distutils-r1_src_install
137 + popd || die
138 + else
139 + distutils-r1_src_install
140 + fi
141 +}
142
143 diff --git a/dev-python/anyascii/metadata.xml b/dev-python/anyascii/metadata.xml
144 index 3771874aa..a60356128 100644
145 --- a/dev-python/anyascii/metadata.xml
146 +++ b/dev-python/anyascii/metadata.xml
147 @@ -1,8 +1,17 @@
148 <?xml version="1.0" encoding="UTF-8"?>
149 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
150 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
151 <pkgmetadata>
152 + <maintainer type="person">
153 + <email>ran.dall@××××××.com</email>
154 + <name>Randall T. Vasquez</name>
155 + </maintainer>
156 <maintainer type="person">
157 <email>pascal.jaeger@×××××××××.de</email>
158 <name>Pascal Jaeger</name>
159 </maintainer>
160 + <upstream>
161 + <remote-id type="github">anyascii/anyascii"</remote-id>
162 + <remote-id type="pypi">anyascii</remote-id>
163 + <bugs-to> https://github.com/anyascii/anyascii/issues"</bugs-to>
164 + </upstream>
165 </pkgmetadata>