public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Randall Vasquez" <ran.dall@icloud.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/material-color-utilities/
Date: Sat, 26 Nov 2022 20:39:13 +0000 (UTC)	[thread overview]
Message-ID: <1669494735.11bd1f0be672cf76b1eff9b7af84398556a399f0.ran.dall@gentoo> (raw)

commit:     11bd1f0be672cf76b1eff9b7af84398556a399f0
Author:     Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
AuthorDate: Sat Nov 26 20:32:15 2022 +0000
Commit:     Randall Vasquez <ran.dall <AT> icloud <DOT> com>
CommitDate: Sat Nov 26 20:32:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=11bd1f0b

dev-python/material-color-utilities: fix and refactor ebuilds

Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>

 dev-python/material-color-utilities/Manifest       |  2 +-
 .../material-color-utilities-0.1.5.ebuild          | 32 +++++++++++++++-------
 .../material-color-utilities-9999.ebuild           | 32 ++++++++++++++++------
 dev-python/material-color-utilities/metadata.xml   | 11 +++++++-
 4 files changed, 56 insertions(+), 21 deletions(-)

diff --git a/dev-python/material-color-utilities/Manifest b/dev-python/material-color-utilities/Manifest
index 5a202bca6..81cf2c70b 100644
--- a/dev-python/material-color-utilities/Manifest
+++ b/dev-python/material-color-utilities/Manifest
@@ -1 +1 @@
-DIST material-color-utilities-python-0.1.5.tar.gz 25702 BLAKE2B cf444831fec962caae3a1871b8331dcdd055f186754631185140842e49e1dc5526c5aedc021d28cd5e192e6f593774abce34e4a2853049e9ded2cf3ca9b79e3f SHA512 f3987da2723f9bc0a383d544868bd48b79c815c1ef3b601cf7daf711ae66ba2e20c38d272fff34b8fef724d202cdb71431d885d0fc86cf6b459a8735cd0751a4
+DIST material-color-utilities-0.1.5.tar.gz 25702 BLAKE2B cf444831fec962caae3a1871b8331dcdd055f186754631185140842e49e1dc5526c5aedc021d28cd5e192e6f593774abce34e4a2853049e9ded2cf3ca9b79e3f SHA512 f3987da2723f9bc0a383d544868bd48b79c815c1ef3b601cf7daf711ae66ba2e20c38d272fff34b8fef724d202cdb71431d885d0fc86cf6b459a8735cd0751a4

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
index b29eb06e5..436351638 100644
--- 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
@@ -1,23 +1,35 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_COMPAT=(python3_{8..11})
 DISTUTILS_USE_PEP517=poetry
 inherit distutils-r1
 
+MY_PN="${PN}-python"
+MY_P="${MY_PN}-${PV}"
+
 DESCRIPTION="Python port of material-color-utilities used for Material You colors"
-HOMEPAGE="https://python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
-SRC_URI="https://files.pythonhosted.org/packages/source/${PN::1}/${PN}-python/${PN}-python-${PV}.tar.gz"
+HOMEPAGE="
+	https://pypi.org/project/material-color-utilities/
+"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python.git"
+else
+	SRC_URI="https://files.pythonhosted.org/packages/source/m/material-color-utilities-python/material-color-utilities-python-${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm64"
+	S="${WORKDIR}/${MY_P}"
+fi
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
 
-S=${WORKDIR}/${PN}-python-${PV}
+RDEPEND="
+	dev-python/pillow[${PYTHON_USEDEP}]
+	dev-python/regex[${PYTHON_USEDEP}]"
 BDEPEND="
-	${PYTHON_DEPS}
-	dev-python/poetry-core
-"
+	dev-python/poetry-core[${PYTHON_USEDEP}]
+	dev-python/build[${PYTHON_USEDEP}]"

diff --git a/dev-python/material-color-utilities/material-color-utilities-9999.ebuild b/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
index 4ed22ecc3..436351638 100644
--- a/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
+++ b/dev-python/material-color-utilities/material-color-utilities-9999.ebuild
@@ -1,21 +1,35 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_COMPAT=(python3_{8..11})
 DISTUTILS_USE_PEP517=poetry
-inherit distutils-r1 git-r3
+inherit distutils-r1
+
+MY_PN="${PN}-python"
+MY_P="${MY_PN}-${PV}"
 
 DESCRIPTION="Python port of material-color-utilities used for Material You colors"
-HOMEPAGE="https://python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
-EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python"
+HOMEPAGE="
+	https://pypi.org/project/material-color-utilities/
+"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/avanishsubbiah/material-color-utilities-python.git"
+else
+	SRC_URI="https://files.pythonhosted.org/packages/source/m/material-color-utilities-python/material-color-utilities-python-${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm64"
+	S="${WORKDIR}/${MY_P}"
+fi
 
 LICENSE="Apache-2.0"
 SLOT="0"
-IUSE=""
 
+RDEPEND="
+	dev-python/pillow[${PYTHON_USEDEP}]
+	dev-python/regex[${PYTHON_USEDEP}]"
 BDEPEND="
-	${PYTHON_DEPS}
-	dev-python/poetry-core
-"
+	dev-python/poetry-core[${PYTHON_USEDEP}]
+	dev-python/build[${PYTHON_USEDEP}]"

diff --git a/dev-python/material-color-utilities/metadata.xml b/dev-python/material-color-utilities/metadata.xml
index 3771874aa..342607f86 100644
--- a/dev-python/material-color-utilities/metadata.xml
+++ b/dev-python/material-color-utilities/metadata.xml
@@ -1,8 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+    <maintainer type="person">
+        <email>ran.dall@icloud.com</email>
+        <name>Randall T. Vasquez</name>
+    </maintainer>
 	<maintainer type="person">
 		<email>pascal.jaeger@leimstift.de</email>
 		<name>Pascal Jaeger</name>
 	</maintainer>
+    <upstream>
+        <remote-id type="github">avanishsubbiah/material-color-utilities-python"</remote-id>
+        <remote-id type="pypi">material-color-utilities</remote-id>
+        <bugs-to>https://github.com/avanishsubbiah/material-color-utilities-python/issues"</bugs-to>
+    </upstream>
 </pkgmetadata>


             reply	other threads:[~2022-11-26 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-26 20:39 Randall Vasquez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-15  0:45 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/material-color-utilities/ Julien Roy
2022-10-08 10:38 Pascal Jäger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1669494735.11bd1f0be672cf76b1eff9b7af84398556a399f0.ran.dall@gentoo \
    --to=ran.dall@icloud.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox