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/material-color-utilities/
Date: Sat, 26 Nov 2022 20:39:16
Message-Id: 1669494735.11bd1f0be672cf76b1eff9b7af84398556a399f0.ran.dall@gentoo
1 commit: 11bd1f0be672cf76b1eff9b7af84398556a399f0
2 Author: Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
3 AuthorDate: Sat Nov 26 20:32:15 2022 +0000
4 Commit: Randall Vasquez <ran.dall <AT> icloud <DOT> com>
5 CommitDate: Sat Nov 26 20:32:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=11bd1f0b
7
8 dev-python/material-color-utilities: fix and refactor ebuilds
9
10 Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>
11
12 dev-python/material-color-utilities/Manifest | 2 +-
13 .../material-color-utilities-0.1.5.ebuild | 32 +++++++++++++++-------
14 .../material-color-utilities-9999.ebuild | 32 ++++++++++++++++------
15 dev-python/material-color-utilities/metadata.xml | 11 +++++++-
16 4 files changed, 56 insertions(+), 21 deletions(-)
17
18 diff --git a/dev-python/material-color-utilities/Manifest b/dev-python/material-color-utilities/Manifest
19 index 5a202bca6..81cf2c70b 100644
20 --- a/dev-python/material-color-utilities/Manifest
21 +++ b/dev-python/material-color-utilities/Manifest
22 @@ -1 +1 @@
23 -DIST material-color-utilities-python-0.1.5.tar.gz 25702 BLAKE2B cf444831fec962caae3a1871b8331dcdd055f186754631185140842e49e1dc5526c5aedc021d28cd5e192e6f593774abce34e4a2853049e9ded2cf3ca9b79e3f SHA512 f3987da2723f9bc0a383d544868bd48b79c815c1ef3b601cf7daf711ae66ba2e20c38d272fff34b8fef724d202cdb71431d885d0fc86cf6b459a8735cd0751a4
24 +DIST material-color-utilities-0.1.5.tar.gz 25702 BLAKE2B cf444831fec962caae3a1871b8331dcdd055f186754631185140842e49e1dc5526c5aedc021d28cd5e192e6f593774abce34e4a2853049e9ded2cf3ca9b79e3f SHA512 f3987da2723f9bc0a383d544868bd48b79c815c1ef3b601cf7daf711ae66ba2e20c38d272fff34b8fef724d202cdb71431d885d0fc86cf6b459a8735cd0751a4
25
26 diff --git a/dev-python/material-color-utilities/material-color-utilities-0.1.5.ebuild b/dev-python/material-color-utilities/material-color-utilities-0.1.5.ebuild
27 index b29eb06e5..436351638 100644
28 --- a/dev-python/material-color-utilities/material-color-utilities-0.1.5.ebuild
29 +++ b/dev-python/material-color-utilities/material-color-utilities-0.1.5.ebuild
30 @@ -1,23 +1,35 @@
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} )
38 +PYTHON_COMPAT=(python3_{8..11})
39 DISTUTILS_USE_PEP517=poetry
40 inherit distutils-r1
41
42 +MY_PN="${PN}-python"
43 +MY_P="${MY_PN}-${PV}"
44 +
45 DESCRIPTION="Python port of material-color-utilities used for Material You colors"
46 -HOMEPAGE="https://python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
47 -SRC_URI="https://files.pythonhosted.org/packages/source/${PN::1}/${PN}-python/${PN}-python-${PV}.tar.gz"
48 +HOMEPAGE="
49 + https://pypi.org/project/material-color-utilities/
50 +"
51 +
52 +if [[ ${PV} == *9999 ]]; then
53 + inherit git-r3
54 + EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python.git"
55 +else
56 + SRC_URI="https://files.pythonhosted.org/packages/source/m/material-color-utilities-python/material-color-utilities-python-${PV}.tar.gz -> ${P}.tar.gz"
57 + KEYWORDS="~amd64 ~arm64"
58 + S="${WORKDIR}/${MY_P}"
59 +fi
60
61 LICENSE="Apache-2.0"
62 SLOT="0"
63 -KEYWORDS="~amd64"
64 -IUSE=""
65
66 -S=${WORKDIR}/${PN}-python-${PV}
67 +RDEPEND="
68 + dev-python/pillow[${PYTHON_USEDEP}]
69 + dev-python/regex[${PYTHON_USEDEP}]"
70 BDEPEND="
71 - ${PYTHON_DEPS}
72 - dev-python/poetry-core
73 -"
74 + dev-python/poetry-core[${PYTHON_USEDEP}]
75 + dev-python/build[${PYTHON_USEDEP}]"
76
77 diff --git a/dev-python/material-color-utilities/material-color-utilities-9999.ebuild b/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
78 index 4ed22ecc3..436351638 100644
79 --- a/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
80 +++ b/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
81 @@ -1,21 +1,35 @@
82 -# Copyright 1999-2022 Gentoo Authors
83 +# Copyright 2022 Gentoo Authors
84 # Distributed under the terms of the GNU General Public License v2
85
86 EAPI=8
87
88 -PYTHON_COMPAT=( python3_{8..11} )
89 +PYTHON_COMPAT=(python3_{8..11})
90 DISTUTILS_USE_PEP517=poetry
91 -inherit distutils-r1 git-r3
92 +inherit distutils-r1
93 +
94 +MY_PN="${PN}-python"
95 +MY_P="${MY_PN}-${PV}"
96
97 DESCRIPTION="Python port of material-color-utilities used for Material You colors"
98 -HOMEPAGE="https://python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
99 -EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python"
100 +HOMEPAGE="
101 + https://pypi.org/project/material-color-utilities/
102 +"
103 +
104 +if [[ ${PV} == *9999 ]]; then
105 + inherit git-r3
106 + EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python.git"
107 +else
108 + SRC_URI="https://files.pythonhosted.org/packages/source/m/material-color-utilities-python/material-color-utilities-python-${PV}.tar.gz -> ${P}.tar.gz"
109 + KEYWORDS="~amd64 ~arm64"
110 + S="${WORKDIR}/${MY_P}"
111 +fi
112
113 LICENSE="Apache-2.0"
114 SLOT="0"
115 -IUSE=""
116
117 +RDEPEND="
118 + dev-python/pillow[${PYTHON_USEDEP}]
119 + dev-python/regex[${PYTHON_USEDEP}]"
120 BDEPEND="
121 - ${PYTHON_DEPS}
122 - dev-python/poetry-core
123 -"
124 + dev-python/poetry-core[${PYTHON_USEDEP}]
125 + dev-python/build[${PYTHON_USEDEP}]"
126
127 diff --git a/dev-python/material-color-utilities/metadata.xml b/dev-python/material-color-utilities/metadata.xml
128 index 3771874aa..342607f86 100644
129 --- a/dev-python/material-color-utilities/metadata.xml
130 +++ b/dev-python/material-color-utilities/metadata.xml
131 @@ -1,8 +1,17 @@
132 <?xml version="1.0" encoding="UTF-8"?>
133 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
134 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
135 <pkgmetadata>
136 + <maintainer type="person">
137 + <email>ran.dall@××××××.com</email>
138 + <name>Randall T. Vasquez</name>
139 + </maintainer>
140 <maintainer type="person">
141 <email>pascal.jaeger@×××××××××.de</email>
142 <name>Pascal Jaeger</name>
143 </maintainer>
144 + <upstream>
145 + <remote-id type="github">avanishsubbiah/material-color-utilities-python"</remote-id>
146 + <remote-id type="pypi">material-color-utilities</remote-id>
147 + <bugs-to>https://github.com/avanishsubbiah/material-color-utilities-python/issues"</bugs-to>
148 + </upstream>
149 </pkgmetadata>