1 |
commit: 3e8002ff85bff8975f3beb446ea3e1bb7ef43144 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 20:11:35 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 24 21:10:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8002ff |
7 |
|
8 |
dev-python/colour: new package; add version 0.1.5 |
9 |
|
10 |
for sys-apps/polychromatic |
11 |
|
12 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
13 |
|
14 |
dev-python/colour/Manifest | 1 + |
15 |
dev-python/colour/colour-0.1.5.ebuild | 25 +++++++++++++++++++++++++ |
16 |
dev-python/colour/files/colour-setup.patch | 8 ++++++++ |
17 |
dev-python/colour/metadata.xml | 24 ++++++++++++++++++++++++ |
18 |
4 files changed, 58 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/colour/Manifest b/dev-python/colour/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000000..137909571b6b |
23 |
--- /dev/null |
24 |
+++ b/dev-python/colour/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST colour-0.1.5.tar.gz 24776 BLAKE2B 71e2b44c6379f73fa1a70781ae2559e37122e2db982d1f98ab5c4432b4e95a2c60d6489a88025499c36d288f3e9269e65caf9560d7772e2c1c050266c284816f SHA512 09a5160862bf10cd5f4a94e43c63d6f2a5db43bcaae0e9d8f66900113ec04471e22d0bec7412f0289c6f1e6871c1a544f5be36266aa8d6fd5ec274bd461d9df8 |
27 |
|
28 |
diff --git a/dev-python/colour/colour-0.1.5.ebuild b/dev-python/colour/colour-0.1.5.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..210b23fa944c |
31 |
--- /dev/null |
32 |
+++ b/dev-python/colour/colour-0.1.5.ebuild |
33 |
@@ -0,0 +1,25 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+DISTUTILS_USE_PEP517=setuptools |
40 |
+PYTHON_COMPAT=( python3_{8..10} ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Python color representations manipulation library" |
45 |
+HOMEPAGE="https://github.com/vaab/colour/" |
46 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+LICENSE="GPL-3+" |
50 |
+SLOT="0" |
51 |
+ |
52 |
+PATCHES=( "${FILESDIR}"/${PN}-setup.patch ) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ rm setup.cfg || die |
56 |
+ |
57 |
+ distutils-r1_src_prepare |
58 |
+} |
59 |
|
60 |
diff --git a/dev-python/colour/files/colour-setup.patch b/dev-python/colour/files/colour-setup.patch |
61 |
new file mode 100644 |
62 |
index 000000000000..833a045fbf82 |
63 |
--- /dev/null |
64 |
+++ b/dev-python/colour/files/colour-setup.patch |
65 |
@@ -0,0 +1,8 @@ |
66 |
+--- a/setup.py |
67 |
++++ b/setup.py |
68 |
+@@ -60,5 +60,4 @@ if "0.1.5".startswith("%%"): |
69 |
+ |
70 |
+ setup( |
71 |
+ extras_require={'test': ['nose', ]}, |
72 |
+- d2to1=True |
73 |
+ ) |
74 |
|
75 |
diff --git a/dev-python/colour/metadata.xml b/dev-python/colour/metadata.xml |
76 |
new file mode 100644 |
77 |
index 000000000000..044ffd6b7fa3 |
78 |
--- /dev/null |
79 |
+++ b/dev-python/colour/metadata.xml |
80 |
@@ -0,0 +1,24 @@ |
81 |
+<?xml version="1.0" encoding="UTF-8"?> |
82 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
83 |
+ |
84 |
+<pkgmetadata> |
85 |
+ <maintainer type="person"> |
86 |
+ <email>xgqt@g.o</email> |
87 |
+ <name>Maciej Barć</name> |
88 |
+ </maintainer> |
89 |
+ <longdescription> |
90 |
+ Converts and manipulates common color representation (RGB, HSL, web, ...). |
91 |
+ Full conversion between RGB, HSL, 6-digit hex, 3-digit hex, human color. |
92 |
+ One object (Color) or bunch of single purpose function (rgb2hex, hsl2rgb |
93 |
+ ...). Web format that use the smallest representation between 6-digit (e.g. |
94 |
+ #fa3b2c), 3-digit (e.g. #fbb), fully spelled color (e.g. white), following |
95 |
+ W3C color naming for compatible CSS or HTML color specifications. Smooth |
96 |
+ intuitive color scale generation choosing N color gradients. Can pick |
97 |
+ colors for you to identify objects of your application. |
98 |
+ </longdescription> |
99 |
+ <stabilize-allarches /> |
100 |
+ <upstream> |
101 |
+ <remote-id type="github">vaab/colour</remote-id> |
102 |
+ <remote-id type="pypi">colour</remote-id> |
103 |
+ </upstream> |
104 |
+</pkgmetadata> |